/* Quiz — self-qualifying questionnaire.
   One question at a time, because a page of twenty options is the same wall
   of choice that puts this audience off gyms. */

.quiz-shell { max-width: 44rem; margin-inline: auto; }

.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.quiz-bar {
  flex: 1 1 auto;
  height: 4px;
  background: var(--grey-200);
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.quiz-step { display: none; }
.quiz-step.is-on { display: block; }

/* Questions sit on the body face in sentence case. A gentle question about
   whether you have enjoyed exercise in the last decade should not be shouted
   in condensed capitals at somebody who is already nervous. */
.quiz-step h2,
#quizGate h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.35rem, 1.05rem + 1.5vw, 1.95rem);
  margin-bottom: var(--space-2);
}

.quiz-hint {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.quiz-options {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-card);
  border: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 56px;                 /* comfortable tap target */
  transition: border-color var(--transition), background-color var(--transition);
}

.quiz-option:hover { border-color: var(--grey-400); }

.quiz-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--red);
}

.quiz-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--grey-400);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}

.quiz-option[aria-pressed="true"] .quiz-mark {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.quiz-mark svg { width: 12px; height: 12px; opacity: 0; }
.quiz-option[aria-pressed="true"] .quiz-mark svg { opacity: 1; }

.quiz-nav { display: flex; gap: var(--space-3); align-items: center; }
.quiz-back {
  background: none;
  border: 0;
  padding: var(--space-2) 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-back:hover { color: var(--ink); }

/* --- Result ------------------------------------------------------------- */
.quiz-result h2 { margin-bottom: var(--space-4); }

.quiz-verdict {
  border-left: 0;
  border-top: 3px solid var(--red);
  background: var(--surface-card);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.quiz-verdict p { font-size: var(--text-lg); color: var(--ink); }
.quiz-verdict p + p { margin-top: var(--space-3); font-size: var(--text-base); color: var(--text-muted); }

.quiz-venue { border: var(--hairline); padding: var(--space-6); background: var(--surface-card); }
.quiz-venue h3 { margin-bottom: var(--space-2); }
.quiz-venue p { color: var(--text-muted); font-size: var(--text-sm); }

.quiz-points { display: grid; gap: var(--space-4); margin-block: var(--space-6); }
.quiz-point { display: flex; gap: var(--space-4); align-items: flex-start; }
.quiz-point .n {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
  flex: none;
  min-width: 1.6rem;
}
.quiz-point p { margin: 0; font-size: var(--text-base); }

@media (max-width: 620px) {
  .quiz-step h2 { font-size: 1.6rem; }
  .quiz-option { padding: var(--space-4); }
}

/* The heading is focused on each step so a screen reader announces the new
   question. It is not interactive, so the visible ring would just look like a
   rendering fault. Keyboard focus on the buttons is unaffected. */
.quiz-step h2:focus,
#quizGate h2:focus { outline: none; }

/* Softer, 1 Oct 2026: the quiz never used the radius tokens, so it stayed
   square when the rest of the site was rounded. */
.quiz-option,
.quiz-verdict,
.quiz-venue { border-radius: var(--radius-card); }
.quiz-option { border-radius: var(--radius-btn); }
.quiz-bar,
.quiz-bar span { border-radius: var(--radius-full); }

/* A left stripe does not sit well inside a rounded box; the chosen answer
   gets a red outline instead. */
.quiz-option[aria-pressed="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

/* --- What's really holding you back? (4 Oct 2026) ------------------------ */
.quiz-intro {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.quiz-intro p:first-child { font-size: var(--text-lg); color: var(--ink); max-width: 52ch; }
.quiz-intro .btn { margin-top: var(--space-6); }
.quiz-intro .form-note { margin-top: var(--space-3); }

.quiz-count { white-space: nowrap; }

/* Skip is a quiet text link, the same weight as Back */
.quiz-skip {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz-skip:hover { color: var(--ink); }

.quiz-result .quiz-venue { margin-bottom: var(--space-4); border-radius: var(--radius-card); }
.quiz-subhead { margin-top: var(--space-8); }
.quiz-next-step { margin-block: var(--space-6) var(--space-6); }
.quiz-next-step h3 { margin-bottom: var(--space-2); }
.quiz-result #quizCta { flex-wrap: wrap; }
