/* MHH clinic-match quiz styles (shared/mhh-quiz.js). Used by every page with the quiz.
   Needs the page to define the color tokens (--navy, --navy-2, --coral, --tint, --line, --ink,
   --muted, --yes, --no) and the .cta button class. */
body.quiz-mode main, body.quiz-mode footer, body.quiz-mode .nav-links { display: none; }
.quiz { background: var(--tint); min-height: 100vh; padding-block: 28px 64px; }
.quiz-inner { max-width: 640px; margin-inline: auto; padding-inline: 20px; }
.quiz-timer { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.quiz-timer svg { color: var(--coral); flex: none; }
.stages { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; }
.stage { display: grid; justify-items: center; gap: 4px; }
.stage-ico { width: 28px; height: 28px; display: grid; place-items: center; color: #a3a8c3; transition: color .2s; }
.stage-ico svg { width: 26px; height: 26px; }
.stage.active .stage-ico { color: var(--coral); }
.stage.done .stage-ico { color: var(--navy-2); }
.stage-line { height: 4px; border-radius: 99px; background: #dfe2ef; overflow: hidden; }
.stages.green .stage.done .stage-ico, .stages.green .stage.active .stage-ico { color: var(--yes); }
.stages.green .stage-line i { background: var(--yes); }
.stage-line i { display: block; height: 100%; width: 0; background: var(--coral); transition: width .3s ease; }
.q-count { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.q-title { margin-top: 6px; font-size: clamp(26px, 4vw, 34px); color: var(--ink); }
.stages + .q-title { margin-top: 30px; }
.q-sub { margin-top: 8px; color: var(--muted); font-size: 16px; }
.opts { margin-top: 22px; display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 2px solid transparent; border-radius: 16px; padding: 16px 18px; font-size: 17px; font-weight: 500; cursor: pointer; box-shadow: 0 2px 10px rgba(19, 32, 92, 0.08); transition: border-color .15s, background .15s; }
.opt:hover { border-color: #b9c0e6; }
.opt[aria-pressed="true"] { border-color: var(--navy-2); background: #f2f4ff; }
.opt .oi { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); color: var(--navy-2); display: grid; place-items: center; }
.opt[aria-pressed="true"] .oi { background: var(--navy-2); color: #fff; }
.opt .oi svg { width: 22px; height: 22px; }
.opt .tick { margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #c9cde6; display: grid; place-items: center; }
.opt.multi .tick { border-radius: 6px; }
.opt[aria-pressed="true"] .tick { background: var(--navy-2); border-color: var(--navy-2); }
.opt[aria-pressed="true"] .tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.q-nav { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-back { background: none; border: 0; color: var(--navy-2); font-weight: 700; font-size: 16px; cursor: pointer; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; }
.q-back[hidden] { display: none; }
.cta:disabled { background: #ffc3b4; cursor: not-allowed; }
.quiz-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.matching { margin-top: 60px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #dfe2ef; border-top-color: var(--coral); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-clinics { margin-top: 20px; display: grid; gap: 12px; }
.result-clinic { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(19, 32, 92, 0.08); display: grid; gap: 4px; border: 2px solid transparent; }
.result-clinic.best { border-color: var(--coral); }
.result-clinic .row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.result-clinic b { font-size: 17px; }
.next-box { margin-top: 22px; background: var(--navy); color: #fff; border-radius: 18px; padding: 22px; display: grid; gap: 10px; }
.next-box h3 { font-size: 20px; }
.next-box p { color: #d6daf3; }
.next-box .cta { justify-self: start; }
.cform { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cform .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input { width: 100%; background: #fff; border: 2px solid #dfe2ef; border-radius: 12px; padding: 14px 14px; font-size: 17px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--navy-2); }
.field.bad input { border-color: var(--no); }
.field .err { font-size: 13px; color: var(--no); min-height: 1em; }
[hidden] { display: none !important; }
.zip-note { font-size: 15px; color: var(--muted); }
.zip-note b { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-2); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.checks { display: grid; gap: 14px; margin-top: 4px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--muted); font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy-2); cursor: pointer; }
.check a { color: var(--navy-2); font-weight: 600; }
.field.bad .check input { outline: 2px solid var(--no); outline-offset: 1px; }
.consent { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.secure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) { .cform { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }

/* Consent checkboxes: both the same size and style. (The HIPAA one sits inside a .field, which would
   otherwise give it the text-box padding/border and the bold field-label font.) */
.checks .check input { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; margin: 1px 0 0; flex: none; }
.checks .field label.check { font-size: 13.5px; font-weight: 400; color: var(--muted); }

/* Phones: the Next / submit button is fixed to the bottom of the screen (like Insurify), on its own
   (no Back button). Same buttons and behavior; the quiz just leaves room at the bottom so nothing is hidden. */
@media (max-width: 760px) {
  .quiz { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .q-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -6px 24px rgba(19, 32, 92, 0.12); }
  .q-nav #q-next { flex: 1; }
  .q-nav .q-back { display: none; } /* the sticky bar holds only the Next / submit button */
}
