/* Multi-step quiz form (used with quiz.js). Needs tokens.css + base.css first. */
.quiz-page { padding: 8px 0 40px; text-align: center; }
/* Smaller than the shared h1 so a long ad headline still leaves the quiz in the first phone screen. */
.quiz-page h1 { font-size: clamp(1.6rem, 6.2vw, 2.75rem); max-width: 17em; margin: 0 auto 20px; text-wrap: balance; }
@media (min-width: 700px) { .quiz-page { padding-top: 24px; } .quiz-page h1 { margin-bottom: 28px; } }

/* Snappier taps on phones: no 300ms delay, no grey flash. */
.quiz button, .quiz .option { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.quiz { max-width: 640px; margin: 0 auto; text-align: left; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 479px) { .quiz { padding: 18px; } }
.quiz-progress { height: 6px; background: var(--color-border); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--color-accent); transition: width 0.25s ease; }
.quiz-count { font: 500 0.78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 0 0 12px; min-height: 1em; }

.step[hidden] { display: none; }
.step h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 0.4em; outline: none; }
.step .sub { font-style: italic; color: var(--color-text-secondary); margin: 0 0 16px; }
.step .lede { font-size: 1rem; margin-bottom: 18px; }

.tiles { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .tiles.cols3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  min-height: 68px; padding: 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius);
  background: #fff; color: var(--color-text); font: 700 1.05rem var(--font-sans); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.tile:hover, .tile:focus-visible { border-color: var(--color-accent); background: var(--color-accent-subtle); outline: none; }
.tile:active { transform: translateY(1px); }

.options { display: grid; gap: 10px; margin: 16px 0; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius); background: #fff; font-weight: 600; cursor: pointer;
}
.option:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-subtle); }
.option input { width: 20px; height: 20px; accent-color: var(--color-accent); flex: none; }

.quiz .btn[hidden] { display: none; }
.quiz .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.quiz .back { display: inline-block; margin-top: 16px; padding: 4px 0; border: 0; background: none; color: var(--color-text-muted); font: 600 0.9rem var(--font-sans); cursor: pointer; text-decoration: underline; }

.phone-wrap { position: relative; }
.phone-wrap .cc { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 500 0.95rem var(--font-mono); color: var(--color-text-muted); pointer-events: none; }
.phone-wrap input { padding-left: 46px; }
