/* Course check (/course-check/): mobile-first single column in the site's
   navy and white, system font, no external assets. Shared by index.php and
   result.php. */
:root {
  --cc-navy: #194a7a; --cc-navy-2: #476f95; --cc-navy-dark: #123a61;
  --cc-ink: #1e293b; --cc-muted: #64748b; --cc-line: #e2e8f0;
  --cc-bg: #f4f7fb; --cc-white: #ffffff; --cc-tint: #eef4fb;
  --cc-gold: #f5c518; --cc-gold-ink: #3d3000;
  --cc-note: #fff8e1; --cc-note-line: #f0d98a; --cc-red: #b42318;
  --cc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cc-bg); color: var(--cc-ink); font-family: var(--cc-font); font-size: 17px; line-height: 1.6; }
body.cc-noscroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--cc-navy); }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--cc-navy); text-wrap: balance; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
h1:focus, .cc-q:focus { outline: none; }

.cc-top { padding: 14px 16px 0; max-width: 640px; margin: 0 auto; }
.cc-top a { font-weight: 700; color: var(--cc-navy); text-decoration: none; letter-spacing: .01em; }
.cc-wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 56px; display: grid; gap: 18px; }
.cc-wrap.is-result { max-width: 640px; }
.cc-card { background: var(--cc-white); border: 1px solid var(--cc-line); border-radius: 16px; padding: 24px 20px; display: grid; gap: 16px; box-shadow: 0 10px 30px -22px rgba(25, 74, 122, .5); min-width: 0; }
.cc-muted { color: var(--cc-muted); }
.cc-small { font-size: .9rem; }

.cc-who { display: flex; gap: 12px; align-items: center; }
.cc-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.cc-who div { font-size: .9rem; line-height: 1.35; color: var(--cc-muted); }
.cc-who b { display: block; color: var(--cc-ink); }

.cc-count { font-size: .82rem; color: var(--cc-muted); letter-spacing: .03em; }
.cc-progress { display: flex; gap: 6px; margin-top: 6px; }
.cc-progress i { flex: 1; height: 6px; border-radius: 9px; background: var(--cc-line); transition: background .2s; }
.cc-progress i.on { background: var(--cc-navy); }

.cc-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.cc-js .cc-step:not(.is-active) { display: none; }
html:not(.cc-js) [data-action], html:not(.cc-js) .cc-progress-wrap { display: none; }
html:not(.cc-js) .cc-step + .cc-step { border-top: 1px solid var(--cc-line); padding-top: 18px; margin-top: 4px; }

.cc-q { font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: var(--cc-ink); padding: 0; }
.cc-hint { color: var(--cc-muted); font-size: .95rem; margin-top: -6px; }
.cc-opts { display: grid; gap: 10px; }
.cc-opt { position: relative; display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--cc-line); border-radius: 12px; background: var(--cc-white); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-opt:hover { border-color: var(--cc-navy-2); }
.cc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cc-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--cc-navy-2); flex: none; display: grid; place-items: center; }
.cc-opt input[type="checkbox"] + .cc-mark { border-radius: 5px; }
.cc-opt:has(input:checked) { border-color: var(--cc-navy); background: var(--cc-tint); }
.cc-opt input:checked + .cc-mark { background: var(--cc-navy); border-color: var(--cc-navy); }
.cc-opt input:checked + .cc-mark::after { content: ""; width: 6px; height: 10px; border: solid var(--cc-white); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cc-opt input:focus-visible + .cc-mark { outline: 3px solid var(--cc-gold); outline-offset: 2px; }

.cc-note { background: var(--cc-note); border: 1px solid var(--cc-note-line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.cc-note ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.cc-error { color: var(--cc-red); font-weight: 600; font-size: .95rem; }
.cc-nav { display: flex; gap: 10px; align-items: center; justify-content: space-between; }

.cc-btn { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 13px 20px; min-height: 48px; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.cc-btn:focus-visible, .cc-video:focus-visible, .cc-modal-close:focus-visible, .cc-callbox a:focus-visible { outline: 3px solid var(--cc-gold); outline-offset: 2px; }
.cc-btn-primary { background: var(--cc-navy); color: var(--cc-white); }
.cc-btn-primary:hover { background: var(--cc-navy-dark); }
.cc-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.cc-btn-gold { background: var(--cc-gold); color: var(--cc-gold-ink); }
.cc-btn-gold:disabled { opacity: .6; cursor: wait; }
.cc-btn-ghost { background: transparent; color: var(--cc-navy); padding-inline: 4px; }
.cc-btn-block { width: 100%; }

.cc-field { display: grid; gap: 6px; }
.cc-field label { font-weight: 600; font-size: .95rem; }
.cc-field input { font: inherit; padding: 12px 14px; border: 1.5px solid var(--cc-line); border-radius: 10px; background: var(--cc-white); color: var(--cc-ink); width: 100%; }
.cc-field input:focus { outline: none; border-color: var(--cc-navy); box-shadow: 0 0 0 3px rgba(25, 74, 122, .15); }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-privacy { font-size: .82rem; color: var(--cc-muted); text-align: center; }

/* Result page */
.cc-tick { width: 44px; height: 44px; border-radius: 50%; background: var(--cc-tint); color: var(--cc-navy); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }
.cc-video { position: relative; display: block; width: 100%; max-width: 300px; margin: 0 auto; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--cc-navy); cursor: pointer; aspect-ratio: 600 / 1072; }
.cc-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s; }
.cc-play::after { content: ""; position: absolute; left: 28px; top: 21px; border-left: 22px solid var(--cc-navy); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.cc-video:hover .cc-play { transform: scale(1.06); }
.cc-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; background: linear-gradient(transparent, rgba(10, 25, 45, .85)); color: var(--cc-white); font-weight: 600; font-size: .92rem; text-align: left; }

.cc-ws { display: grid; gap: 10px; }
.cc-w { border: 1px solid var(--cc-line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.cc-w.is-match { border-color: var(--cc-navy-2); background: var(--cc-tint); }
.cc-w-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cc-tag { font-size: .75rem; font-weight: 600; background: var(--cc-navy); color: var(--cc-white); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.cc-w p { font-size: .95rem; color: var(--cc-muted); }
.cc-w p b { color: var(--cc-ink); }

.cc-course { border: 1px solid var(--cc-line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.cc-course.is-feature { border: 2px solid var(--cc-navy); }
.cc-course-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-price { font-weight: 700; color: var(--cc-navy); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cc-meta { font-size: .95rem; color: var(--cc-muted); font-variant-numeric: tabular-nums; }
.cc-places { font-size: .88rem; font-weight: 600; color: var(--cc-navy-2); }
.cc-places.is-low { color: var(--cc-red); }
.cc-link { font-weight: 600; text-decoration: none; justify-self: start; }
.cc-link:hover { text-decoration: underline; }

.cc-callbox { background: var(--cc-navy); color: var(--cc-white); border-radius: 16px; padding: 24px 20px; display: grid; gap: 14px; text-align: center; }
.cc-callbox h2 { color: var(--cc-white); }
.cc-callbox p { color: #d6e2f0; }
.cc-contact { display: grid; gap: 8px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 14px; }
.cc-contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.cc-contact a { color: var(--cc-white); font-weight: 600; overflow-wrap: anywhere; }

/* Video pop-up (same behaviour as the homepage player) */
.cc-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 15, 30, .9); display: flex; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.cc-modal[hidden] { display: none; }
.cc-video-frame { position: relative; width: min(100%, calc((100vh - 96px) * 9 / 16)); width: min(100%, calc((100dvh - 96px) * 9 / 16)); max-width: 420px; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; }
.cc-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cc-modal-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (min-width: 720px) {
  .cc-top { padding-top: 22px; }
  .cc-wrap { padding-top: 28px; }
  h1 { font-size: 1.8rem; }
  .cc-card, .cc-callbox { padding: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cc-js .cc-step.is-active { animation: cc-in .22s ease-out; }
  @keyframes cc-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
