:root {
  --navy-950: #071a2c;
  --navy-900: #0a2540;
  --navy-800: #123a5a;
  --blue-600: #1777a8;
  --blue-500: #2294c4;
  --blue-100: #dff3fb;
  --blue-50: #f0f9fc;
  --ink: #162733;
  --muted: #607480;
  --line: #dbe5e9;
  --surface: #ffffff;
  --canvas: #f5f7f7;
  --warm: #f3efe7;
  --success: #14764c;
  --danger: #b42318;
  --shadow: 0 24px 65px rgba(12, 39, 57, 0.11);
  --radius-lg: 24px;
  --radius-md: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 18px; color: white; background: var(--navy-900); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; color: white; background: var(--navy-900); border-radius: 12px; }
.brand-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.brand strong { display: block; color: var(--navy-900); font-size: 15px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.header-contact { display: flex; align-items: center; gap: 8px; color: var(--navy-900); font-size: 14px; font-weight: 800; text-decoration: none; }
.header-contact svg { width: 17px; fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  max-width: 1240px;
  min-height: 515px;
  margin: 0 auto;
  padding: 52px 32px 80px;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; top: -300px; right: -180px; background: radial-gradient(circle, rgba(34,148,196,.13), transparent 68%); }
.hero-copy { max-width: 700px; }
.eyebrow { margin: 0 0 14px; color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--navy-950); font-size: clamp(44px, 6vw, 75px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.hero h1 span { color: var(--blue-600); }
.hero-lead { max-width: 650px; margin: 28px 0 32px; color: #506570; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; gap: 13px 22px; }
.trust-row span { display: flex; align-items: center; gap: 7px; color: var(--navy-800); font-size: 13px; font-weight: 700; }
.trust-row svg { width: 17px; height: 17px; padding: 3px; color: white; background: var(--success); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

.hero-panel { display: flex; justify-content: flex-end; padding-left: 50px; }
.measure-card { position: relative; width: min(100%, 390px); padding: 38px; color: white; background: var(--navy-900); border-radius: 4px 30px 4px 30px; box-shadow: 24px 24px 0 var(--blue-100); overflow: hidden; }
.measure-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -100px; bottom: -80px; border: 40px solid rgba(255,255,255,.04); border-radius: 50%; }
.measure-label { display: block; color: #92cee6; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.measure-card > strong { display: block; margin: 15px 0; font-size: 54px; letter-spacing: -.06em; }
.measure-line { height: 2px; background: rgba(255,255,255,.17); }
.measure-line i { display: block; width: 34%; height: 100%; background: var(--blue-500); }
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 32px; }
.measure-grid span { color: #83a4b5; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.measure-grid b { text-align: right; font-size: 11px; letter-spacing: .03em; }

.calculator-section { padding: 85px 24px 105px; background: var(--navy-950); }
.section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; color: white; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0; color: #a4bac6; line-height: 1.65; }
.calculator-shell { max-width: 1080px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }

.progress { display: grid; grid-template-columns: 1fr 55px 1fr 55px 1fr; align-items: center; padding: 25px 48px; background: #f7fafb; border-bottom: 1px solid var(--line); }
.progress > i { height: 1px; background: var(--line); }
.progress-step { display: grid; grid-template-columns: 35px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 0; color: #82929a; background: none; border: 0; text-align: left; }
.progress-step > span { grid-row: 1 / 3; display: grid; width: 35px; height: 35px; place-items: center; background: #e8eef0; border-radius: 50%; font-size: 12px; font-weight: 800; }
.progress-step b { font-size: 12px; }
.progress-step small { font-size: 9px; }
.progress-step.is-active { color: var(--navy-900); }
.progress-step.is-active > span { color: white; background: var(--blue-600); }
.progress-step.is-complete > span { color: white; background: var(--success); }
.progress-step:not(:disabled) { cursor: pointer; }

.form-step { padding: 45px 52px 48px; }
.form-step[hidden] { display: none; }
.step-heading { margin-bottom: 28px; }
.step-heading > span { color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.step-heading h3 { margin: 7px 0 7px; color: var(--navy-950); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ready-badge { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--success) !important; background: #e8f6ef; border-radius: 99px; font-size: 10px !important; letter-spacing: .05em !important; white-space: nowrap; }
.ready-badge i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; border: 0; }
.service-card { position: relative; min-height: 145px; padding: 20px 17px; background: #fbfcfc; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.service-card:hover { border-color: #9bcfe2; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 58, 90, .07); }
.service-card:has(input:checked) { background: var(--blue-50); border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(34,148,196,.1); }
.service-card:has(input:focus-visible) { outline: 3px solid rgba(34,148,196,.3); outline-offset: 2px; }
.service-card input { position: absolute; opacity: 0; }
.service-icon { display: grid; width: 40px; height: 40px; margin-bottom: 13px; place-items: center; color: var(--blue-600); background: var(--blue-100); border-radius: 10px; }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card b { display: block; color: var(--navy-900); font-size: 13px; }
.service-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.size-row, .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; }
.size-row.is-hidden { display: none; }
.size-row.hourly { grid-template-columns: 1fr; }
.field.is-hidden { display: none; }
.pricing-choice { margin: 24px 0 0; padding: 20px; background: #f7fafb; border: 1px solid var(--line); border-radius: var(--radius-md); }
.pricing-choice.is-hidden { display: none; }
.pricing-choice legend { padding: 0 5px; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.pricing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pricing-options label { cursor: pointer; }
.pricing-options input { position: absolute; opacity: 0; }
.pricing-options label > span { display: block; min-height: 74px; padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.pricing-options b, .pricing-options small { display: block; }
.pricing-options b { color: var(--navy-900); font-size: 12px; }
.pricing-options small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.pricing-options input:checked + span { background: var(--blue-50); border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(34,148,196,.1); }
.pricing-options input:focus-visible + span { outline: 3px solid rgba(34,148,196,.3); outline-offset: 2px; }
#pricing-help { margin: 13px 0 0; color: #536a75; font-size: 11px; line-height: 1.55; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--navy-900); font-size: 12px; font-style: normal; font-weight: 700; }
.field > span small { color: var(--muted); font-size: 10px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: #fbfcfc; border: 1px solid #cddadd; border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input, .field select { height: 49px; padding: 0 14px; }
.field textarea { min-height: 105px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(34,148,196,.13); }
.field input.is-invalid, .field select.is-invalid { border-color: var(--danger); }
.field > small { color: var(--muted); font-size: 10px; font-weight: 500; }
.field textarea + small { align-self: flex-end; }
.input-with-unit { position: relative; display: block; }
.input-with-unit input { padding-right: 58px; }
.input-with-unit b { position: absolute; right: 14px; top: 50%; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.field-error { min-height: 0; margin: 0; color: var(--danger); font-size: 10px; font-style: normal; font-weight: 650; }

.dynamic-panel { margin-top: 18px; }
.dynamic-panel:empty { display: none; }
.dynamic-panel .field-grid { margin-top: 0; padding: 19px; background: var(--blue-50); border-radius: 13px; }
.choice-group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 23px 0 0; padding: 0; border: 0; }
.choice-group legend { width: 100%; margin-bottom: 3px; color: var(--navy-900); font-size: 12px; font-weight: 700; }
.choice-group label { cursor: pointer; }
.choice-group input { position: absolute; opacity: 0; }
.choice-group label span { display: block; padding: 10px 16px; color: #48606d; background: #fbfcfc; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 700; }
.choice-group input:checked + span { color: var(--navy-900); background: var(--blue-100); border-color: var(--blue-500); }
.choice-group input:focus-visible + span { outline: 3px solid rgba(34,148,196,.3); }
.choice-group .field-error { width: 100%; }
.field-full { margin-top: 22px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-actions.align-end { justify-content: flex-end; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(34,148,196,.35); outline-offset: 2px; }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { color: white; background: var(--blue-600); box-shadow: 0 8px 20px rgba(23,119,168,.18); }
.button-primary:hover { background: #126891; }
.button-secondary { color: var(--navy-900); background: white; border-color: #cddadd; }
.button-full { width: 100%; }
.text-button { display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--blue-600); background: none; border: 0; font-size: 11px; font-weight: 800; cursor: pointer; }
.text-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.summary-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; }
.summary-card { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.summary-card > header { position: relative; padding: 25px 28px; color: white; background: var(--navy-900); }
.summary-card > header::after { content: ""; position: absolute; width: 140px; height: 140px; right: -45px; top: -70px; border: 25px solid rgba(255,255,255,.04); border-radius: 50%; }
.summary-card > header p { margin: 0 0 4px; color: #97cce1; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.summary-card h4 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.summary-card > header > span { display: block; margin-top: 7px; color: #b7cad3; font-size: 10px; }
.summary-card dl { margin: 0; padding: 14px 28px; }
.summary-card dl > div { display: grid; grid-template-columns: 42% 58%; gap: 16px; padding: 11px 0; border-bottom: 1px solid #e8eef0; }
.summary-card dl > div:last-child { border-bottom: 0; }
.summary-card dt { color: var(--muted); font-size: 10px; }
.summary-card dd { margin: 0; color: var(--navy-900); font-size: 11px; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.summary-note { margin: 0 28px 20px; padding: 13px; color: #405761; background: #f7fafb; border-left: 3px solid var(--blue-500); border-radius: 0 8px 8px 0; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.summary-card > footer { display: flex; gap: 12px; align-items: flex-start; padding: 17px 28px; background: var(--blue-50); border-top: 1px solid var(--line); }
.summary-card > footer svg { flex: 0 0 auto; width: 23px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.summary-card > footer p { margin: 0; color: #4c636e; font-size: 10px; line-height: 1.5; }
.summary-card > footer strong { display: block; color: var(--navy-900); }
.contact-card { padding: 23px; background: #f7fafb; border: 1px solid var(--line); border-radius: 15px; }
.contact-card h4 { margin: 0 0 18px; color: var(--navy-900); font-size: 16px; }
.contact-card .field { margin-bottom: 13px; }
.contact-card .field input { height: 44px; background: white; }
.privacy-check { display: flex; gap: 9px; margin: 17px 0 6px; color: #546a75; font-size: 9px; line-height: 1.5; cursor: pointer; }
.privacy-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue-600); }
.send-help { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.summary-actions { margin-top: 20px; }
.return-home { display: flex; justify-content: center; margin-top: 14px; }
.return-home a { min-width: min(100%, 330px); text-decoration: none; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1240px; margin: 0 auto; padding: 40px 32px; }
.site-footer strong { color: var(--navy-900); font-size: 14px; }
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--navy-800); font-size: 11px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--blue-600); text-decoration: underline; }

.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 13px 18px; color: white; background: var(--navy-900); border-radius: 9px; box-shadow: 0 12px 40px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-panel { display: none; }
  .hero-copy { max-width: 760px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 17px 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small { display: none; }
  .header-contact span { display: none; }
  .header-contact { display: grid; width: 40px; height: 40px; place-items: center; background: white; border: 1px solid var(--line); border-radius: 10px; }
  .hero { min-height: auto; padding: 48px 20px 68px; }
  .hero h1 { font-size: clamp(39px, 12vw, 55px); }
  .hero-lead { margin: 23px 0 26px; font-size: 16px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .calculator-section { padding: 65px 12px 75px; }
  .section-heading { padding: 0 14px; }
  .section-heading h2 { font-size: 31px; }
  .progress { grid-template-columns: 1fr 25px 1fr 25px 1fr; padding: 20px 17px; }
  .progress-step { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
  .progress-step > span { width: 31px; height: 31px; }
  .progress-step small { display: none; }
  .progress-step b { font-size: 9px; }
  .form-step { padding: 30px 18px 25px; }
  .step-heading { margin-bottom: 22px; }
  .step-heading h3 { font-size: 26px; }
  .service-grid { gap: 9px; }
  .service-card { min-height: 132px; padding: 16px 13px; }
  .service-card-wide { grid-column: 1 / -1; min-height: 110px; }
  .size-row, .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-options { grid-template-columns: 1fr; }
  .dynamic-panel .field-grid { padding: 15px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1; }
  .summary-heading { display: block; }
  .ready-badge { display: inline-flex; margin-top: 14px; }
  .summary-card > header, .summary-card dl, .summary-card > footer { padding-left: 19px; padding-right: 19px; }
  .summary-note { margin-left: 19px; margin-right: 19px; }
  .summary-card dl > div { grid-template-columns: 40% 60%; gap: 10px; }
  .contact-card { padding: 19px; }
  .summary-actions { flex-direction: column; align-items: stretch; }
  .summary-actions .button { width: 100%; }
  .summary-actions .text-button { align-self: center; }
  .return-home a { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 34px 20px; }
  .footer-links { justify-content: flex-start; gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero, .section-heading, .progress, .contact-card, .summary-actions, .return-home, .site-footer { display: none !important; }
  .calculator-section { padding: 0; background: white; }
  .calculator-shell { box-shadow: none; }
  .form-step { padding: 0; }
  .summary-layout { display: block; }
}
