:root {
  --navy: #08254a;
  --navy-2: #153d69;
  --blue: #1f5d9b;
  --light-blue: #eef5fb;
  --ink: #11233b;
  --muted: #5f6f82;
  --border: #d8e1ea;
  --surface: #ffffff;
  --page: #f4f7fa;
  --success: #1e7a4b;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(9, 37, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  background: var(--navy);
  border-bottom: 0;
}
.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 68px;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img {
  display: block;
  width: 142px;
  max-width: 38vw;
  height: auto;
}
.header-phone {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.18;
}
.phone-label { color: rgba(255,255,255,.72); font-size: 11px; }
.phone-number { color: #fff; font-size: 17px; font-weight: 800; }

.main-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px 54px;
}
.hero-copy {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
}
.eyebrow, .step-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 5px 0 8px;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy);
}
.hero-copy p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 17px;
  color: #4b5e73;
}

.progressive-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.progress-wrap { padding: 22px 38px 0; }
.progress-track {
  height: 8px;
  background: #e7edf3;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  width: 12.5%;
  height: 100%;
  background: var(--navy-2);
  border-radius: 999px;
  transition: width .25s ease;
}
.progress-copy {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #53667b;
}

.form-step {
  display: none;
  padding: 22px 38px 34px;
  animation: stepIn .2s ease;
}
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-step h2 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.step-help { margin: 0 0 26px; color: var(--muted); font-size: 17px; }

.field-group { margin: 0 0 18px; }
.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #263a52;
}
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  min-height: 58px;
  border: 1.5px solid #aebccb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.large-input { min-height: 74px !important; font-size: 28px; letter-spacing: .04em; }
input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 93, 155, .12);
}
input.invalid, select.invalid { border-color: var(--danger); }
.compact-field { max-width: 420px; }
.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-error { min-height: 18px; margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 700; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.choice-grid.three-up { grid-template-columns: repeat(3, 1fr); }
.choice-card { display: block; position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px;
  border: 1.5px solid #bcc8d4;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  color: #27405f;
  transition: all .15s ease;
}
.choice-card span:hover { border-color: var(--blue); background: #f7fbff; }
.choice-card input:checked + span {
  border-color: var(--navy-2);
  background: var(--light-blue);
  box-shadow: inset 0 0 0 1px var(--navy-2);
  color: var(--navy);
}

.consent-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid #e0e7ee;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; color: #42556b; font-size: 14px; }
.consent-checkbox { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }

.primary-button, .back-button {
  min-height: 58px;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 800;
  border: 0;
}
.primary-button {
  width: 100%;
  margin-top: 8px;
  color: #fff;
  background: var(--navy-2);
  box-shadow: 0 8px 18px rgba(21,61,105,.16);
}
.primary-button:hover { background: var(--navy); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.back-button { background: transparent; color: #596b7f; padding-left: 4px; padding-right: 4px; }
.step-actions { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 22px; }
.step-actions .primary-button { margin-top: 0; }

.summary-card {
  border: 1px solid var(--border);
  background: #f9fbfd;
  border-radius: 14px;
  overflow: hidden;
}
.summary-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #e7edf3;
}
.summary-row:last-child { border-bottom: 0; }
.summary-label { font-weight: 700; color: #5e7083; }
.summary-value { color: var(--ink); }
.trust-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.trust-points span { padding: 7px 10px; border-radius: 999px; background: #edf6f0; color: var(--success); font-size: 13px; font-weight: 800; }
.appointment-link { display: block; text-align: center; margin: 18px 0 0; color: var(--blue); font-weight: 700; }
.privacy-note { margin-top: 20px; color: #66778a; font-size: 13px; text-align: center; }
.privacy-note strong { display: block; color: #45596f; margin-bottom: 4px; }
.button-loading { display: none; }
.submit-button.loading .button-text { display: none; }
.submit-button.loading .button-loading { display: inline; }
.form-message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; }
.form-message.visible { display: block; }
.form-error-message { color: #8f1b15; background: #fff0ee; border: 1px solid #f1c0ba; }

.reassurance-strip {
  max-width: 920px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.reassurance-strip > div {
  padding: 16px;
  text-align: center;
  background: #fff;
  border: 1px solid #e1e7ed;
  border-radius: 12px;
}
.reassurance-strip strong { display: block; color: var(--navy); margin-bottom: 3px; }
.reassurance-strip span { color: var(--muted); font-size: 14px; }

.site-footer { background: #081c36; color: #d7e0ea; }
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 34px 24px 90px; font-size: 12px; }
.footer-company { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; color: #fff; }
.site-footer p { max-width: 980px; }
.copyright { opacity: .75; }
.sticky-call { display: none; }

@media (max-width: 720px) {
  .site-header-inner { padding: 12px 16px; }
  .brand img { width: 170px; }
  .phone-label { display: none; }
  .phone-number { font-size: 15px; }
  .main-content { padding: 34px 14px 90px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 17px; }
  .progress-wrap { padding: 22px 22px 0; }
  .form-step { padding: 24px 22px 28px; }
  .choice-grid, .choice-grid.three-up, .two-column-fields { grid-template-columns: 1fr; }
  .choice-card span { min-height: 60px; }
  .large-input { min-height: 66px !important; font-size: 24px; }
  .summary-row { grid-template-columns: 1fr; gap: 2px; }
  .reassurance-strip { grid-template-columns: 1fr; }
  .sticky-call {
    display: block;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 20;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--navy-2);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
}

/* V2.1 compact-above-the-fold polish */
@media (max-width: 700px) {
  .site-header-inner { min-height: 58px; padding: 6px 16px; }
  .brand img { width: 118px; max-width: 44vw; }
  .phone-label { display: none; }
  .phone-number { font-size: 15px; }
  .main-content { padding: 16px 14px 42px; }
  .hero-copy { margin-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-copy p { font-size: 16px; }
  .progress-wrap { padding: 18px 22px 0; }
  .form-step { padding: 18px 22px 28px; }
}

/* V2.4.5 navigation sizing: compact Back + medium right-aligned Continue */
.form-step > .primary-button.next-button {
  width: 275px;
  max-width: 100%;
  display: block;
  margin: 22px 0 0 auto;
}
.step-actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}
.step-actions .primary-button {
  width: 275px;
  max-width: 100%;
  margin-top: 0;
}
.final-actions .primary-button {
  width: 340px;
}
@media (max-width: 700px) {
  .form-step > .primary-button.next-button,
  .step-actions .primary-button,
  .final-actions .primary-button {
    width: min(100%, 275px);
  }
  .step-actions {
    grid-template-columns: auto minmax(0, 275px);
  }
}
