:root {
  --primary-navy: #123c69;
  --deep-teal: #0f6b78;
  --soft-aqua: #e8f7f8;
  --warm-cream: #fff8ef;
  --gold: #d8a84e;
  --charcoal: #263238;
  --muted: #64748b;
  --border: #dde7ea;
  --success: #2e8b57;
  --warning: #c98500;
  --soft-red: #b94a48;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(18, 60, 105, 0.13);
  --soft-shadow: 0 12px 30px rgba(15, 107, 120, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(232, 247, 248, 0.9), transparent 34rem),
    linear-gradient(145deg, var(--warm-cream) 0%, #ffffff 45%, var(--soft-aqua) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 3px solid rgba(216, 168, 78, 0.85);
  outline-offset: 3px;
}

.pathfinder-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.is-hidden {
  display: none !important;
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.quiz-card,
.lead-card,
.result-report {
  border: 1px solid rgba(221, 231, 234, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow,
.question-count {
  margin: 0 0 12px;
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(221, 231, 234, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(18, 60, 105, 0.07);
}

.brand-mark img {
  display: block;
  width: 74px;
  height: auto;
  object-fit: contain;
}

.brand-mark span {
  color: var(--primary-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-brand {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.result-brand .brand-mark {
  margin-bottom: 0;
  padding: 7px 10px;
}

.result-brand .brand-mark img {
  width: 62px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--primary-navy);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-subhead {
  max-width: 710px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.trust-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--charcoal);
  line-height: 1.45;
}

.trust-list span {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--primary-navy);
  background: var(--soft-aqua);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.primary-btn,
.secondary-btn,
.text-btn {
  min-height: 50px;
  border-radius: 999px;
  border: 0;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-navy), var(--deep-teal));
  box-shadow: 0 12px 22px rgba(18, 60, 105, 0.24);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--deep-teal), var(--gold));
  box-shadow: 0 14px 26px rgba(15, 107, 120, 0.22);
}

.secondary-btn {
  color: var(--primary-navy);
  background: var(--white);
  border: 1px solid var(--border);
}

.secondary-btn:hover:not(:disabled),
.text-btn:hover {
  color: var(--deep-teal);
  border-color: rgba(15, 107, 120, 0.35);
  box-shadow: var(--soft-shadow);
}

.text-btn {
  color: var(--primary-navy);
  background: transparent;
  border: 1px solid transparent;
}

.quiet-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(232, 247, 248, 0.86), rgba(255, 248, 239, 0.72));
}

.family-visual {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(rgba(18, 60, 105, 0.28), rgba(15, 107, 120, 0.08)),
    url("https://images.unsplash.com/photo-1542037104857-ffbb0b9155fb?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.family-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  color: var(--primary-navy);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.family-card small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.4;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--deep-teal);
  font-weight: 800;
}

.credential-grid {
  display: grid;
  gap: 12px;
}

.credential-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(221, 231, 234, 0.85);
}

.credential-grid strong {
  display: block;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.credential-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.quiz-area {
  max-width: 850px;
  margin: 0 auto;
}

.sticky-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(221, 231, 234, 0.9);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deep-teal), var(--gold));
  transition: width 260ms ease;
}

.quiz-card,
.lead-card,
.result-report {
  padding: clamp(22px, 5vw, 42px);
}

.quiz-card {
  animation: fadeUp 260ms ease both;
}

.quiz-topline {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.privacy-pill {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-navy);
  background: var(--warm-cream);
  border: 1px solid rgba(216, 168, 78, 0.3);
  font-size: 0.84rem;
  font-weight: 700;
}

.helper-text {
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--charcoal);
  background: var(--white);
  text-align: left;
  box-shadow: 0 8px 18px rgba(18, 60, 105, 0.05);
}

.option-card:hover {
  border-color: rgba(15, 107, 120, 0.45);
  transform: translateY(-1px);
}

.option-card.is-selected {
  border-color: var(--deep-teal);
  background: linear-gradient(135deg, rgba(232, 247, 248, 0.95), rgba(255, 248, 239, 0.65));
  box-shadow: 0 14px 28px rgba(15, 107, 120, 0.14);
}

.option-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft-aqua);
  font-weight: 800;
}

.option-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.option-card.is-selected .option-check {
  border-color: var(--deep-teal);
  background: radial-gradient(circle, var(--deep-teal) 42%, transparent 46%);
}

.quiz-actions,
.form-actions,
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}

.lead-section,
.result-section {
  max-width: 950px;
  margin: 0 auto;
}

.lead-card p {
  color: var(--muted);
  line-height: 1.65;
}

.lead-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--primary-navy);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--charcoal);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.success-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  color: #155f3a;
  background: rgba(46, 139, 87, 0.12);
  border: 1px solid rgba(46, 139, 87, 0.25);
  font-weight: 700;
  line-height: 1.5;
}

.result-report {
  background: rgba(255, 255, 255, 0.96);
}

.result-header {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.result-kicker {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary-navy);
  background: var(--soft-aqua);
  font-size: 0.8rem;
  font-weight: 800;
}

.result-summary {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-block {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(232, 247, 248, 0.42), rgba(255, 255, 255, 0.9));
}

.report-block.wide {
  grid-column: 1 / -1;
}

.report-block p,
.report-block li {
  color: var(--muted);
  line-height: 1.65;
}

.report-block ul,
.report-block ol {
  padding-left: 20px;
  margin: 14px 0 0;
}

.report-block li + li {
  margin-top: 8px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--warm-cream);
  border: 1px solid rgba(216, 168, 78, 0.25);
  color: var(--primary-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.disclaimer {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  color: var(--muted);
  background: var(--warm-cream);
  line-height: 1.55;
}

.embedded-lead {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-navy), var(--deep-teal));
}

.embedded-lead h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.embedded-lead p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.embedded-lead .secondary-btn {
  margin-top: 8px;
}

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

@media (max-width: 860px) {
  .pathfinder-shell {
    width: min(100% - 20px, 680px);
    padding: 18px 0;
  }

  .quiz-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .family-visual {
    min-height: 260px;
  }

  .form-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .quiz-actions,
  .form-actions,
  .result-actions {
    flex-direction: column-reverse;
  }

  .quiz-actions button,
  .form-actions button,
  .result-actions button,
  .hero-btn {
    width: 100%;
  }

  .quiz-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy,
  .hero-panel,
  .quiz-card,
  .lead-card,
  .result-report {
    border-radius: 18px;
  }

  .hero-copy,
  .quiz-card,
  .lead-card,
  .result-report {
    padding: 22px;
  }

  .hero-panel {
    padding: 14px;
  }

  .option-card {
    grid-template-columns: auto 1fr;
  }

  .brand-mark {
    gap: 10px;
  }

  .brand-mark img {
    width: 60px;
  }

  .option-check {
    grid-column: 1 / -1;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    border-width: 0;
    background: var(--border);
  }

  .option-card.is-selected .option-check {
    background: var(--deep-teal);
  }
}

@media print {
  body {
    background: #fff;
  }

  .result-actions,
  .embedded-lead,
  .sticky-progress {
    display: none !important;
  }

  .pathfinder-shell {
    width: 100%;
    padding: 0;
  }

  .result-report {
    box-shadow: none;
    border: 0;
  }
}
