/* Quiz-specific styles — extends shared/brand.css */

/* ── Shell ───────────────────────────────────────── */
.quiz-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(70,18,32,.1);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}

.quiz-brand { text-decoration: none; color: var(--plum); }

.quiz-main {
  padding: 2.5rem 0 5rem;
  min-height: 80dvh;
}

.quiz-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(70,18,32,.1);
}

/* ── Screens ─────────────────────────────────────── */
.quiz-screen { animation: fadeUp 280ms ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Lead capture ────────────────────────────────── */
.quiz-intro {
  font-size: .9375rem;
  line-height: 1.75;
  color: rgba(70,18,32,.8);
}

/* ── Question ────────────────────────────────────── */
.quiz-progress { margin-bottom: .25rem; }

.quiz-question {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.choices { display: flex; flex-direction: column; gap: .625rem; }

.quiz-nav {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}

.quiz-nav .btn { flex: 1 1 0; }
.quiz-nav .btn--ghost { flex: 0 0 auto; min-width: 100px; }

/* ── Loading ─────────────────────────────────────── */
.quiz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40dvh;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(70,18,32,.15);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result ──────────────────────────────────────── */
.quiz-result {
  padding-bottom: 3rem;
}

.result-body {
  font-size: .9375rem;
  line-height: 1.75;
}

.result-body p + p { margin-top: 1rem; }

.result-gap {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.result-gap .t-eyebrow { color: var(--blush); }
.result-gap p { color: var(--peach); margin-top: .5rem; }

.result-actions ol {
  list-style: none;
  counter-reset: actions;
}

.result-action {
  counter-increment: actions;
  padding-left: 2.25rem;
  position: relative;
}

.result-action::before {
  content: counter(actions);
  position: absolute;
  left: 0;
  top: .125rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--crimson);
  color: var(--cream);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-action strong {
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.result-cta {
  text-align: center;
}

.result-cta p {
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(70,18,32,.85);
}

/* ── Turnstile wrapper ───────────────────────────── */
#turnstile-widget-lead { min-height: 65px; }
