/* Empty and end states from the Nov 24 design audit: no video yet, no calendar yet, the "not yet" quiz result, form errors. New class names only. */

/* A heading that screen readers get and the eye does not (the video section has no visible heading). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The quiz is a dialog while it is open: scrolling it to its end must not start scrolling the page behind. */
.quiz.is-open { overscroll-behavior: contain; }

/* Results screen. main.js sets data-result on [data-quiz-cal]: qualified, early or out. */
/* the read of his answers, in the page's serif at its paragraph weight (the same as .lede) */
.quiz__cal .quiz__read { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--strong); }
/* "You qualify" is the news on this screen, so it is a solid badge with a check mark, not the small label
   that says "Question 2 of 8". */
.quiz__cal[data-result="qualified"] .quiz__count { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 17px; font-weight: 700; line-height: 1.2; }
.quiz__cal[data-result="qualified"] .quiz__count::before { content: ''; width: 7px; height: 13px; margin: -3px 3px 0 5px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
/* no booking link yet: what happens next, as a finished card */
.qr-card { max-width: 60ch; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.qr-card p { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.qr-done { margin-top: 24px; }
.quiz__cal[data-result="out"] .qr-done { margin-top: 0; }

/* Contact form: one message under each field, and the field itself marked. */
.quiz__form .quiz__ferr { margin: -8px 0 16px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.quiz__form input[aria-invalid="true"] { border-color: var(--err); background: var(--err-soft); }
.quiz__form input[aria-invalid="true"]:focus { outline-color: var(--err); }

@media (max-width: 760px) {
  .quiz__cal .quiz__read { font-size: 18.5px; }
  .qr-card { padding: 18px 18px; }
  .qr-card p { font-size: 18.5px; }
  .qr-done { width: 100%; }
}
