:root {
  --navy: #17375c;
  --navy-deep: #0f2948;
  --navy-soft: #2d4a6f;
  --teal: #40c4b0;
  --teal-dark: #199b8a;
  --teal-pale: #eaf8f6;
  --pink: #ff6b90;
  --ink: #172033;
  --muted: #64748b;
  --line: #dce5ec;
  --surface: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(23, 55, 92, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, #eef5f8 0, #fff 520px);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; z-index: -1; }
.ambient-one { width: 360px; height: 360px; top: -180px; right: -120px; background: rgba(64, 196, 176, 0.13); }
.ambient-two { width: 280px; height: 280px; top: 330px; left: -190px; background: rgba(255, 107, 144, 0.08); }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); text-decoration: none; font-size: 1.08rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-dot { display: block; width: 8px; height: 8px; border-radius: 50%; }
.brand-dot--teal { background: var(--teal); margin-left: 2px; }
.brand-dot--pink { background: var(--pink); }
.header-link { color: var(--navy); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.header-link:hover { color: var(--teal-dark); }

.intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 64px; align-items: end; padding: 58px 0 72px; }
.eyebrow, .step-label { margin: 0 0 10px; color: var(--teal-dark); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 28px; height: 2px; background: var(--pink); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 20px; color: var(--navy-deep); font-size: clamp(2.35rem, 5.5vw, 4.65rem); line-height: 1.02; letter-spacing: -0.055em; }
.intro-copy { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.intro-meta { border-left: 1px solid var(--line); padding-left: 28px; }
.intro-meta div { display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--line); }
.intro-meta div:last-child { border-bottom: 0; }
.intro-meta strong { color: var(--navy); font-size: 0.92rem; }
.intro-meta span { color: var(--muted); font-size: 0.8rem; }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.services-panel, .summary-card, .details-card { border: 1px solid var(--line); background: rgba(255,255,255,0.96); box-shadow: var(--shadow); }
.services-panel { border-radius: 28px; padding: clamp(24px, 4vw, 46px); }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.035em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 0.92rem; }
.category-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--navy); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.category-heading span:last-child { color: var(--muted); font-size: 0.68rem; }
.category-heading--spaced { margin-top: 34px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.service-card { position: relative; display: flex; flex-direction: column; min-height: 228px; border: 1px solid var(--line); border-radius: 18px; padding: 21px; background: var(--white); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; cursor: pointer; }
.service-card:hover { transform: translateY(-2px); border-color: #a8dcd5; box-shadow: 0 14px 28px rgba(23,55,92,.08); }
.service-card.is-selected { border-color: var(--teal); background: linear-gradient(145deg, var(--white), var(--teal-pale)); box-shadow: 0 14px 34px rgba(64,196,176,.16); }
.service-card input { position: absolute; opacity: 0; pointer-events: none; }
.card-check { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid #b8c7d2; border-radius: 8px; color: transparent; background: white; font-size: 0.85rem; font-weight: 900; transition: all 180ms ease; }
.service-card.is-selected .card-check { color: white; border-color: var(--teal); background: var(--teal); }
.card-type { margin: 0 38px 8px 0; color: var(--pink); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.service-card h3 { margin: 0 38px 8px 0; color: var(--navy-deep); font-size: 1.04rem; line-height: 1.25; }
.card-description { margin: 0 0 16px; color: var(--muted); font-size: 0.82rem; }
.feature-list { margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink); font-size: 0.78rem; }
.feature-list li { position: relative; padding-left: 17px; margin: 5px 0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.card-price { margin: auto 0 0; color: var(--navy); font-size: 1rem; font-weight: 800; }
.card-price small { color: var(--muted); font-size: .7rem; font-weight: 600; }

.summary-card { position: sticky; top: 20px; overflow: hidden; border-radius: 24px; }
.summary-top { padding: 28px 28px 24px; color: white; background: linear-gradient(145deg, var(--navy), var(--navy-deep)); }
.summary-top h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.03em; }
.step-label--light { color: var(--teal); }
.empty-summary { padding: 42px 28px; text-align: center; color: var(--muted); }
.empty-summary span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border: 1px dashed #b8c7d2; border-radius: 50%; color: var(--teal-dark); font-size: 1.4rem; }
.empty-summary p { margin: 0; font-size: .85rem; }
.selected-list { margin: 0; padding: 18px 28px 6px; list-style: none; }
.selected-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .79rem; }
.selected-list span { color: var(--navy); font-weight: 700; }
.selected-list strong { color: var(--ink); white-space: nowrap; }
.totals { padding: 14px 28px 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); font-size: .78rem; }
.totals strong { color: var(--navy); }
.totals .total-row { margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--navy); font-size: .9rem; font-weight: 800; }
.totals .total-row strong { color: var(--teal-dark); font-size: 1.08rem; }
.monthly-note, .custom-note { margin: 8px 0 0; color: var(--muted); font-size: .68rem; }
.custom-note { color: #b84767; font-weight: 700; }
.primary-button { display: flex; justify-content: center; align-items: center; gap: 10px; width: calc(100% - 56px); min-height: 50px; margin: 22px 28px 12px; border: 0; border-radius: 14px; color: #083832; background: var(--teal); font-weight: 800; transition: transform 180ms ease, background 180ms ease, opacity 180ms ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #55d4c1; }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.summary-disclaimer { margin: 0; padding: 4px 28px 25px; color: var(--muted); font-size: .65rem; line-height: 1.45; text-align: center; }

.details-section { padding: 76px 0 26px; scroll-margin-top: 20px; }
.details-card { border-radius: 28px; padding: clamp(26px, 5vw, 54px); }
.section-heading--form { align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label > span { display: block; margin-bottom: 7px; color: var(--navy); font-size: .79rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; padding: 13px 14px; color: var(--ink); background: var(--surface); transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
input:focus, textarea:focus { border-color: var(--teal); background: white; box-shadow: 0 0 0 4px rgba(64,196,176,.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--pink); }
textarea { resize: vertical; }
.form-full { grid-column: 1 / -1; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-dark); }
.consent span { margin: 0; color: var(--muted); font-weight: 500; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; color: var(--muted); font-size: .75rem; }
.secure-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--teal); }
.primary-button--submit { width: auto; min-width: 210px; margin: 0; padding-inline: 22px; }
.form-status { display: none; margin-top: 18px; border-radius: 12px; padding: 13px 15px; font-size: .85rem; }
.form-status.is-success { display: block; color: #116155; background: var(--teal-pale); }
.form-status.is-error { display: block; color: #9b3150; background: #fff0f4; }

footer { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 30px; align-items: center; margin-top: 60px; padding: 32px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.brand--footer { font-size: .9rem; }
footer p { margin: 0; }
footer > div:last-child { display: flex; gap: 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--teal-dark); }

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .intro-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .intro-meta div { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 0; }
  .intro-meta div:first-child { padding-left: 0; }
  .intro-meta div:last-child { border-right: 0; }
  .quote-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 68px; }
  .header-link { font-size: .75rem; }
  .intro { padding: 34px 0 52px; }
  .intro-meta { grid-template-columns: 1fr; }
  .intro-meta div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .section-heading, .section-heading--form { display: block; }
  .section-heading > p { margin-top: 12px; }
  .service-grid, .form-grid { grid-template-columns: 1fr; }
  .category-heading span:last-child { display: none; }
  .form-full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .primary-button--submit { width: 100%; }
  footer > div:last-child { flex-direction: column; gap: 6px; }
}

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