/* ===== Quiz page styles — scoped to .quiz-shell ===== */

.quiz-shell {
  --bg: #030322; --bg2: #070732;
  --blue: #0068ff; --blue-hover: #2a82ff; --blue-100: #7fb0ff; --blue-300: #3d8bff;
  --green: #21c08a; --amber: #f0a23b; --red: #fc6565;
  --surface: rgba(255,255,255,.045); --surface-hover: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.20);
  --text: #fff; --text-2: #c2c8e0; --text-3: #7f87a8;
  --r-md: 12px; --r-lg: 16px; --r-2xl: 24px; --r-full: 999px;
  --grad-hero: radial-gradient(1100px 600px at 50% -10%, #11206e 0%, #030322 60%);
  --grad-panel: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  --shadow-cta: 0 14px 34px rgba(0,104,255,.36);
  --shadow-panel: 0 30px 80px rgba(0,0,0,.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1); --dur: .45s; --dur-fast: .18s;

  font-family: var(--font);
  background: var(--grad-hero);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

.quiz-shell .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(800px 600px at 50% 0, #000, transparent 75%);
}

.quiz-shell .wrap {
  position: relative; max-width: 880px; margin: 0 auto; padding: 24px 22px 64px;
  min-height: 100vh; display: flex; flex-direction: column;
}

.quiz-shell .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.quiz-shell .logo { display: flex; align-items: center; }
.quiz-shell .topbar .site { font-size: 13px; color: var(--text-3); }
.quiz-shell .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* progress */
.quiz-shell .progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz-shell .progress span { height: 4px; flex: 1; max-width: 46px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background var(--dur) var(--ease); }
.quiz-shell .progress span.on { background: var(--blue); }

/* typography */
.quiz-shell .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-100); }
.quiz-shell h1 { font-size: clamp(30px,5.2vw,50px); line-height: 1.06; letter-spacing: -.02em; margin: 14px 0 16px; max-width: 720px; }
.quiz-shell h2 { font-size: clamp(22px,3.5vw,31px); font-weight: 600; line-height: 1.16; letter-spacing: -.01em; margin: 0 0 8px; }
.quiz-shell .lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 640px; }
.quiz-shell .hint { font-size: 14px; color: var(--text-3); }

.quiz-shell .chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 26px 0 30px; }
.quiz-shell .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

/* buttons */
.quiz-shell .btn { font-family: var(--font); font-weight: 600; font-size: 15.5px; border: 1px solid transparent; border-radius: var(--r-full); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 28px; transition: all var(--dur-fast) var(--ease); }
.quiz-shell .btn.primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-cta); }
.quiz-shell .btn.primary:hover { background: var(--blue-hover); }
.quiz-shell .btn.ghost { background: transparent; color: var(--text-2); border-color: transparent; font-size: 14.5px; padding: 12px 16px; }
.quiz-shell .btn.ghost:hover { color: #fff; }
.quiz-shell .btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.quiz-shell .btn.block { width: 100%; }
.quiz-shell .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-shell .arrow { font-size: 18px; line-height: 1; }

/* question head */
.quiz-shell .qhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quiz-shell .qicon { width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.quiz-shell .qcount { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* options */
.quiz-shell .opts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
.quiz-shell .opts.two { grid-template-columns: 1fr 1fr; }
.quiz-shell .opt { display: flex; align-items: flex-start; gap: 13px; width: 100%; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: var(--r-md); font-family: var(--font); font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); transition: all var(--dur-fast) var(--ease); }
.quiz-shell .opt:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.quiz-shell .opt .box { width: 23px; height: 23px; flex-shrink: 0; border-radius: 7px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; margin-top: 1px; }
.quiz-shell .opt.on { color: #fff; background: rgba(0,104,255,.16); border-color: var(--blue); box-shadow: 0 12px 30px rgba(0,104,255,.20); }
.quiz-shell .opt.on .box { background: var(--blue); border-color: var(--blue); }
.quiz-shell .opt.ready.on { background: rgba(33,192,138,.15); border-color: var(--green); box-shadow: 0 12px 30px rgba(33,192,138,.16); }
.quiz-shell .opt.ready.on .box { background: var(--green); border-color: var(--green); }
.quiz-shell .opt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.quiz-shell .opt.on small { color: var(--text-2); }

/* why box */
.quiz-shell .why { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: rgba(0,104,255,.09); border: 1px solid var(--line); margin-bottom: 8px; }
.quiz-shell .why .i { color: var(--blue-100); font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.quiz-shell .why p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.quiz-shell .why b { color: #fff; }

/* card */
.quiz-shell .card { background: var(--grad-panel); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 34px; box-shadow: var(--shadow-panel); }
@media (max-width: 560px) { .quiz-shell .card { padding: 26px 22px; } }

.quiz-shell .badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; white-space: nowrap; }
.quiz-shell .badge .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* regulatory timeline */
.quiz-shell .tl { margin: 26px 0 4px; }
.quiz-shell .tl .h { font-size: 12px; color: var(--text-3); letter-spacing: .04em; margin-bottom: 12px; }
.quiz-shell .tl-track { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.quiz-shell .tl-node { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quiz-shell .tl-node .when { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.quiz-shell .tl-node .what { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.quiz-shell .tl-node .tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.quiz-shell .tl-node.past { border-color: rgba(252,101,101,.4); }
.quiz-shell .tl-node.past .tag { color: var(--red); }
.quiz-shell .tl-node.now { border-color: rgba(240,162,59,.45); }
.quiz-shell .tl-node.now .tag { color: var(--amber); }
.quiz-shell .tl-node.next { border-color: rgba(127,176,255,.4); }
.quiz-shell .tl-node.next .tag { color: var(--blue-100); }
@media (max-width: 560px) { .quiz-shell .tl-track { grid-template-columns: 1fr; } }

/* findings */
.quiz-shell .findings { margin: 24px 0 4px; }
.quiz-shell .findings .h { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.quiz-shell .finding { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.quiz-shell .finding:first-of-type { border-top: none; }
.quiz-shell .finding .m { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.quiz-shell .finding.bad .m { color: var(--red); }
.quiz-shell .finding.warn .m { color: var(--amber); }
.quiz-shell .finding.ok .m { color: var(--green); }
.quiz-shell .finding .t { font-size: 14px; color: var(--text); line-height: 1.45; }
.quiz-shell .finding .t span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.quiz-shell .flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 26px; }
.quiz-shell .flow b { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.quiz-shell .flow i { color: var(--blue-300); align-self: center; font-style: normal; }

.quiz-shell .cta-note { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; line-height: 1.5; }

/* form */
.quiz-shell .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .quiz-shell .grid2 { grid-template-columns: 1fr; } }
.quiz-shell label.fld { display: block; }
.quiz-shell label.fld span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 7px; }
.quiz-shell input,
.quiz-shell select { width: 100%; box-sizing: border-box; padding: 13px 15px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: #fff; font-family: var(--font); font-size: 15px; outline: none; transition: all var(--dur-fast) var(--ease); }
.quiz-shell select { appearance: none; cursor: pointer; }
.quiz-shell input::placeholder { color: var(--text-3); }
.quiz-shell input:focus,
.quiz-shell select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,104,255,.18); }
.quiz-shell input:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz-shell .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.quiz-shell .pill { padding: 9px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: all var(--dur-fast) var(--ease); }
.quiz-shell .pill.on { background: rgba(0,104,255,.2); border-color: var(--blue); color: #fff; }

/* thank-you steps */
.quiz-shell .steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 560px) { .quiz-shell .steps { grid-template-columns: 1fr; } }
.quiz-shell .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-align: left; }
.quiz-shell .step .n { width: 30px; height: 30px; border-radius: 9px; background: rgba(0,104,255,.18); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--blue-100); font-size: 13px; font-weight: 800; margin-bottom: 12px; }
.quiz-shell .step .st { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.quiz-shell .step .sd { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.quiz-shell .ok-mark { width: 64px; height: 64px; border-radius: 20px; background: rgba(33,192,138,.16); border: 1px solid var(--green); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 30px; margin: 0 auto 20px; }
.quiz-shell .foot { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 20px; }

.quiz-shell .fade { animation: quizFadeUp .5s var(--ease) both; }
@keyframes quizFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .quiz-shell .fade { animation: none; }
  .quiz-shell * { transition: none !important; }
}

.quiz-shell :focus-visible { outline: 2px solid var(--blue-100); outline-offset: 2px; }

/* INN lookup status */
.quiz-shell .quiz-inn-status { display: block; font-size: 12.5px; margin-top: 5px; min-height: 18px; line-height: 1.4; }
.quiz-shell .quiz-inn-status[data-type="ok"] { color: var(--green); }
.quiz-shell .quiz-inn-status[data-type="error"] { color: var(--red); }
.quiz-shell .quiz-inn-status[data-type="info"] { color: var(--text-3); }
