/* ════════════════════════════════════════════════════════
   Quiz Funnel — Keystone VSL-matched styling
   Tokens: --black #11131a  --blue #167ef7  --footer-bg #010d32
   Font:   Inter (same weights as VSL pages)
   ════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ── Variables ──────────────────────────────────────── */
:root {
  --black: #11131a;
  --black-light: #181b24;
  --blue: #167ef7;
  --blue-hover: #1268d4;
  --blue-glow: rgba(22, 126, 247, 0.15);
  --blue-glow-strong: rgba(22, 126, 247, 0.30);
  --footer-bg: #010d32;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.25);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Page wrapper ───────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Progress Bar ───────────────────────────────────── */
.progress-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.progress-text {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ── Quiz Container ─────────────────────────────────── */
.quiz-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 60px;
}

.quiz-step {
  display: none;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 0.35s ease;
}

.quiz-step.active {
  display: block;
}

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

.step-content {
  text-align: center;
}

/* ── Welcome Step ───────────────────────────────────── */
.welcome-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-glow);
  border: 1px solid rgba(22, 126, 247, 0.3);
  border-radius: 100px;
  padding: 6px 20px;
  margin-bottom: 24px;
}

.quiz-heading {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.blue-highlight {
  color: var(--blue);
}

.quiz-subtext {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}

.welcome-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Questions ──────────────────────────────────────── */
.question-text {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.question-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Answer Buttons ─────────────────────────────────── */
.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--black-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
  cursor: pointer;
}

.quiz-answer:hover {
  border-color: var(--border-hover);
  background: rgba(22, 126, 247, 0.04);
  transform: translateY(-1px);
}

.quiz-answer.selected {
  border-color: var(--blue);
  background: var(--blue-glow);
  box-shadow: 0 0 0 1px var(--blue), 0 4px 20px var(--blue-glow);
}

.answer-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.answer-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  display: block;
  line-height: 1.3;
}

.answer-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Primary Button (VSL-matched) ───────────────────── */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-align: center;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background-color: var(--blue);
  border-radius: 1000px;
  padding: 20px 56px 14px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  transition: background-color var(--transition), transform 0.15s ease, box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(22, 126, 247, 0.25);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(22, 126, 247, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-subtext {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.85;
}

.btn-submit {
  width: 100%;
  margin-top: 8px;
}

/* ── Results Step ───────────────────────────────────── */
.results-step {
  max-width: 560px;
  margin: 0 auto;
}

.results-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  padding: 8px 24px;
  margin-bottom: 20px;
}

.results-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.results-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 32px;
}

.disclaimer-box p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Lead Form ──────────────────────────────────────── */
.lead-form-wrapper {
  background: var(--black-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
}

.form-heading {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.field-error {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 0;
}

.tcpa-group {
  text-align: left;
}

.tcpa-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.tcpa-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tcpa-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* ── Success / Error ────────────────────────────────── */
.form-success, .form-error {
  text-align: center;
  padding: 20px 0;
}

.success-check {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #22c55e;
  margin: 0 auto 16px;
}

.success-heading {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-error p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-booking {
  font-size: 18px;
}

/* ── Back Navigation ────────────────────────────────── */
.nav-back {
  display: flex;
  justify-content: center;
  padding: 0 24px 32px;
}

.btn-back {
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.btn-back:hover {
  color: var(--white);
}

/* ── Consent Banner ─────────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--black-light);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.consent-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-inner p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
}

.consent-accept {
  background: var(--blue);
  color: var(--white);
}

.consent-accept:hover {
  background: var(--blue-hover);
}

.consent-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.consent-decline:hover {
  border-color: var(--border-hover);
  color: var(--white);
}

/* ── Footer ─────────────────────────────────────────── */
.quiz-footer {
  background: var(--footer-bg);
  padding: 32px 24px;
  text-align: center;
}

.quiz-footer .footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-disclaimer-mini {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--blue);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .quiz-heading {
    font-size: 28px;
  }

  .quiz-subtext {
    font-size: 16px;
  }

  .question-text {
    font-size: 22px;
  }

  .welcome-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 18px;
  }

  .btn-primary {
    padding: 18px 36px 12px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
  }

  .consent-inner {
    flex-direction: column;
    text-align: center;
  }

  .results-heading {
    font-size: 26px;
  }

  .lead-form-wrapper {
    padding: 20px 16px 24px;
  }

  .form-heading {
    font-size: 20px;
  }
}

@media (max-width: 479px) {
  .quiz-heading {
    font-size: 24px;
  }

  .question-text {
    font-size: 20px;
  }

  .quiz-container {
    padding: 24px 16px 40px;
  }

  .quiz-answer {
    padding: 14px 16px;
    gap: 12px;
  }

  .answer-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .answer-label {
    font-size: 15px;
  }

  .answer-desc {
    font-size: 12px;
  }

  .welcome-stats {
    gap: 16px;
  }

  .stat-divider {
    height: 28px;
  }

  .btn-primary {
    font-size: 16px;
    padding: 16px 28px 10px;
  }
}


/* --------------------------------------------------------
   BRAND HEADER + AS FEATURED IN (VSL-matched)
   -------------------------------------------------------- */

.quiz-header {
  padding: 24px 24px 0;
}

.quiz-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-logo {
  width: 200px;
  margin-bottom: 18px;
}

.featured-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-top: 1.5px solid rgba(255,255,255,0.25);
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  padding: 12px 0 16px;
}

.featured-label {
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4em;
  color: var(--white);
}

.featured-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 860px;
}

.featured-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-img {
  height: 22px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.featured-img.is-lg {
  height: 26px;
}

/* --------------------------------------------------------
   SOCIAL PROOF (members + Trustpilot, VSL-matched)
   -------------------------------------------------------- */

.social-proof-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.proof-above-form {
  margin-top: 4px;
  margin-bottom: 24px;
}

.members-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.members-img {
  width: 190px;
}

.member-text {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3em;
  text-align: left;
}

.member-bold {
  color: var(--white);
  font-weight: 700;
}

.trustpilot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.trustpilot-text {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4em;
}

.trustpilot-bold {
  font-weight: 700;
}

.trustpilot-logo {
  width: 96px;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .quiz-logo {
    width: 160px;
  }

  .featured-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .featured-img {
    height: 18px;
  }

  .featured-img.is-lg {
    height: 22px;
  }

  .members-row {
    flex-direction: column;
    gap: 8px;
  }

  .member-text {
    text-align: center;
  }

  .members-img {
    width: 160px;
  }
}


/* --------------------------------------------------------
   APPLICATION FORM SEQUENCE (DM-style steps)
   -------------------------------------------------------- */

.answer-key {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  background: var(--blue-glow);
}

.answer-compact {
  padding: 16px 20px;
}

.required-star {
  color: var(--blue);
  margin-left: 4px;
}

.input-step {
  max-width: 520px;
  margin: 0 auto;
}

.input-row {
  margin-bottom: 18px;
}

.step-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  transition: border-color var(--transition);
  outline: none;
  text-align: center;
}

.step-input:focus {
  border-color: var(--blue);
}

.step-input::placeholder {
  color: var(--text-dim);
}

.btn-next {
  padding: 14px 44px 10px;
  font-size: 17px;
}

.commit-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

.submit-error {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

.input-step .tcpa-group {
  margin-bottom: 18px;
  text-align: left;
}

@media (max-width: 767px) {
  .commit-text {
    font-size: 17px;
  }

  .step-input {
    font-size: 16px;
  }
}


/* --------------------------------------------------------
   STEP NAVIGATION ARROWS (fixed, bottom-right)
   -------------------------------------------------------- */

.nav-arrows {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 4px;
}

.nav-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
}

.nav-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.nav-arrow-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.nav-arrow-primary:hover:not(:disabled) {
  background: var(--blue-hover);
}

.nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .nav-arrows {
    bottom: 16px;
    right: 16px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }
}


/* Snapshot title + textarea */
.snapshot-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.step-textarea {
  resize: vertical;
  min-height: 110px;
  text-align: left;
  line-height: 1.5;
}
