
/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f5f8fc; color: #1a2e4a; min-height: 100vh; }

/* ─── VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --nhs-blue: #003087;
  --nhs-mid: #0072ce;
  --nhs-light: #41b6e6;
  --teal: #00a499;
  --amber: #ffb81c;
  --dark: #0a1628;
  --mid-dark: #1a2e4a;
  --off-white: #f5f8fc;
  --border: #d6e4f0;
  --muted: #6b7c93;
  --green: #3B6D11;
  --orange: #854F0B;
  --red: #A32D2D;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--nhs-blue);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  border-bottom: 2px solid var(--nhs-light);
}
.navbar-title { color: #fff; font-size: 1rem; font-weight: 700; text-align: center; padding: 0 20px; }

/* ─── PROGRESS ───────────────────────────────────────────────────────────── */
#progressWrap {
  background: var(--mid-dark);
  padding: 10px 5%;
  display: none;
  align-items: center;
  gap: 14px;
}
.prog-outer { flex: 1; background: rgba(255,255,255,0.15); border-radius: 50px; height: 7px; overflow: hidden; }
.prog-inner { height: 100%; background: var(--amber); border-radius: 50px; transition: width 0.4s ease; }
#progressLabel { color: rgba(255,255,255,0.7); font-size: 12px; white-space: nowrap; min-width: 40px; }

/* ─── SCREENS ────────────────────────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: block; }

/* ─── LANDING ────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 60px);
  background: linear-gradient(160deg, #003087 0%, #0a1628 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.hero-inner { max-width: 620px; width: 100%; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(65,182,230,0.18);
  border: 1px solid rgba(65,182,230,0.4);
  color: var(--nhs-light);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 30px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat {
  flex: 1;
  padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.hero-stat .num { color: var(--amber); font-size: 1.4rem; font-weight: 700; }
.hero-stat .lbl { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 2px; }
.hero-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.stat { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--amber); display: block; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,184,28,0.4); }

/* ─── LEAD CAPTURE ───────────────────────────────────────────────────────── */
.form-screen { min-height: calc(100vh - 60px); background: var(--off-white); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.form-card { background: #fff; border-radius: 16px; padding: 36px; max-width: 520px; width: 100%; box-shadow: 0 4px 24px rgba(0,48,135,0.1); border: 1px solid var(--border); }
.form-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--nhs-blue); margin-bottom: 8px; }
.form-card p { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--mid-dark); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; color: var(--mid-dark); background: #fff; transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--nhs-light); box-shadow: 0 0 0 3px rgba(65,182,230,0.15); }
.privacy-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }

/* ─── QUIZ QUESTION ──────────────────────────────────────────────────────── */
.quiz-screen { min-height: calc(100vh - 60px); background: var(--off-white); padding: 32px 20px 60px; }
.quiz-inner { max-width: 640px; margin: 0 auto; }
.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.cat-deposit { background: #ddeeff; color: #003087; }
.cat-income { background: #d4f5ed; color: #005b50; }
.cat-credit { background: #ede9fe; color: #4c1d95; }
.cat-readiness { background: #fef3c7; color: #78350f; }
.question-text { font-size: 1.25rem; font-weight: 700; color: var(--mid-dark); line-height: 1.4; margin-bottom: 8px; }
.question-hint { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--mid-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.option-btn:hover { border-color: var(--nhs-light); background: #f0f8ff; }
.option-btn.selected { border-color: var(--nhs-blue); background: #eaf0fb; color: var(--nhs-blue); font-weight: 600; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.btn-back {
  background: transparent; border: 1.5px solid var(--border); color: var(--muted);
  padding: 10px 22px; border-radius: 50px; cursor: pointer; font-size: 14px; font-family: inherit;
  transition: all 0.15s;
}
.btn-back:hover { border-color: var(--muted); }
.btn-next {
  background: var(--nhs-blue); color: #fff; border: none;
  padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s; margin-left: auto;
}
.btn-next:hover { background: var(--nhs-mid); }
.btn-next:disabled { background: #c5d3e8; cursor: not-allowed; }

/* ─── SENDING SCREEN ─────────────────────────────────────────────────────── */
.sending-screen { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; background: var(--off-white); }
.sending-inner { text-align: center; padding: 40px 20px; }
.spinner {
  width: 52px; height: 52px; border: 4px solid var(--border);
  border-top-color: var(--nhs-blue); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sending-inner h3 { font-size: 1.3rem; color: var(--nhs-blue); margin-bottom: 8px; }
.sending-inner p { color: var(--muted); font-size: 14px; }

/* ─── RESULTS ────────────────────────────────────────────────────────────── */
.results-screen { background: var(--off-white); padding: 0 0 60px; }
.results-header { background: var(--nhs-blue); padding: 36px 20px; text-align: center; }
.results-header h2 { color: #fff; font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.results-header p { color: rgba(255,255,255,0.65); font-size: 15px; }
.results-inner { max-width: 640px; margin: 0 auto; padding: 32px 20px 0; }

.score-hero { border-radius: 16px; padding: 28px; text-align: center; margin-bottom: 28px; border-width: 1px; border-style: solid; }
.score-hero.band-green { background: #EAF3DE; border-color: #97C459; }
.score-hero.band-amber { background: #FAEEDA; border-color: #EF9F27; }
.score-hero.band-red   { background: #FCEBEB; border-color: #F09595; }
.score-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.score-big { font-size: 56px; font-weight: 800; line-height: 1; }
.score-big span { font-size: 24px; }
.band-green .score-lbl, .band-green .score-big { color: #3B6D11; }
.band-amber .score-lbl, .band-amber .score-big { color: #854F0B; }
.band-red   .score-lbl, .band-red   .score-big { color: #A32D2D; }
.band-name { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 6px 0; }
.band-green .band-name { color: #639922; }
.band-amber .band-name { color: #BA7517; }
.band-red   .band-name { color: #A32D2D; }
.band-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.band-green .band-title { color: #27500A; }
.band-amber .band-title { color: #633806; }
.band-red   .band-title { color: #501313; }
.band-summary { font-size: 14px; line-height: 1.65; }
.band-green .band-summary { color: #3B6D11; }
.band-amber .band-summary { color: #854F0B; }
.band-red   .band-summary { color: #793030; }

.email-notice {
  background: #e8f4ff; border: 1px solid #b8d9f5; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 24px; font-size: 14px; color: #1a4a72; line-height: 1.6;
}

.section-divider { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.section-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.section-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.section-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.section-title { font-size: 15px; font-weight: 700; color: var(--mid-dark); margin-bottom: 2px; }
.section-band-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.prog-row { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.prog-bar { flex: 1; background: #f0f0f0; border-radius: 50px; height: 5px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 50px; }
.prog-pct { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 32px; text-align: right; }
.section-insight-wrap { padding: 0 16px 16px; }
.section-insight { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 10px; }
.section-tip { background: #f8f8f8; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #555; line-height: 1.6; border-left: 3px solid var(--nhs-blue); }
.tip-lbl { font-weight: 700; color: var(--nhs-blue); }

.results-cta { background: linear-gradient(135deg, #003087 0%, #0a1628 100%); border-radius: 16px; padding: 30px; text-align: center; margin-top: 28px; }
.results-cta h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.results-cta p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.btn-cta { display: inline-block; background: var(--amber); color: var(--dark); font-size: 14px; font-weight: 700; padding: 13px 30px; border-radius: 50px; text-decoration: none; transition: all 0.15s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,184,28,0.4); }
.cta-phone { color: rgba(255,255,255,0.45); font-size: 13px; margin-top: 12px; }
