@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #092b49;
  --navy-dark: #061d32;
  --blue: #0877b9;
  --blue-dark: #075d91;
  --orange: #f58220;
  --cream: #f4f8fb;
  --text: #183247;
  --muted: #6b7d8c;
  --border: #dce6ed;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(6, 29, 50, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  background: var(--navy-dark);
  color: var(--white);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  color: var(--orange);
  font-size: 15px;
}

.brand-text { font-size: 18px; }

.header-link {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}

.hero {
  padding: 68px 0 84px;
  background:
    radial-gradient(circle at 10% 0%, rgba(8,119,185,.12), transparent 35%),
    linear-gradient(135deg, #f4f8fb 0%, #e9f2f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 540px;
  margin: 24px 0;
  color: #506879;
  font-size: 17px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.calculator-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.progress-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.small-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.progress-header h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
}

.step-count {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.progress-track {
  height: 6px;
  margin: 22px 0 30px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7eef3;
}

.progress-track span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width .25s ease;
}

.form-step { display: none; }
.form-step.active { display: block; }

.question-number {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.form-step h3 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.question-help {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.option-list, .option-grid {
  display: grid;
  gap: 10px;
}

.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}

.option:hover { border-color: #9fc3d8; }

.option:has(input:checked) {
  border-color: var(--blue);
  background: #edf7fc;
}

.option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.custom-spend { margin-top: 15px; }

.custom-spend label, .field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

input[type="number"], input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  outline: none;
  color: var(--text);
  background: var(--white);
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8,119,185,.12);
}

.hidden { display: none !important; }

.error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

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

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .15s, transform .15s;
}

.button:hover { transform: translateY(-1px); }

.button:disabled {
  cursor: not-allowed;
  opacity: .4;
  transform: none;
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-primary:hover { background: #dc6d12; }

.button-secondary {
  background: #eef3f6;
  color: var(--navy);
}

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

.field { min-width: 0; }

.consent {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.consent input { margin-top: 3px; accent-color: var(--blue); }

.result h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
}

.result-amount {
  margin: 12px 0;
  color: var(--blue);
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.result-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

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

.result-metric, .range-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
}

.result-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.result-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 25px;
}

.range-box {
  margin-top: 15px;
}

.range-box h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 14px;
}

.range-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f5;
  color: var(--muted);
  font-size: 12px;
}

.range-box div:last-child { border-bottom: 0; }

.range-box strong { color: var(--navy); }

.disclaimer {
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  padding: 28px 0;
  background: var(--navy-dark);
  color: #b8c8d3;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy { max-width: 720px; }
  .hero h1 { max-width: 720px; }
  .hero-text { max-width: 680px; }
  .calculator-card { max-width: 720px; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .brand-text { font-size: 15px; }
  .header-link { font-size: 11px; }
  .hero { padding: 42px 0 48px; }
  .calculator-card { padding: 22px; border-radius: 14px; }
  .hero h1 { font-size: 38px; }
  .form-step h3 { font-size: 22px; }
  .option-grid, .contact-grid { grid-template-columns: 1fr; }
  .button { padding: 12px 16px; }
}
