@import url('/css/brand-tokens.css');

:root {
    color-scheme: light;
    --ink: #17304d;
    --muted: #536579;
    --line: #dce4ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--edge-charcoal); font-family: var(--edge-font-body); font-size: 16px; line-height: 1.6; }
a { color: var(--edge-navy); text-underline-offset: .2em; }
a:hover { color: #0059cc; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px - 40px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; padding: 12px; background: white; }
.skip-link:focus { left: 12px; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid #e8edf2; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { display: block; width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.nav a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.nav-cta { padding: 11px 16px; color: white !important; background: var(--edge-navy); border-radius: 8px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 8px 14px; color: var(--edge-navy); background: white; border: 1px solid var(--edge-navy); border-radius: 7px; }
.hero { padding: 60px 0 66px; color: white; background: var(--edge-navy); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 38px; }
.hero-photo { min-width: 0; }
.hero-photo > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.image-disclaimer { margin: 8px 0 0; color: #e5edf8; font-size: .76rem; }
.commercial-action { display: inline-block; margin-top: 16px; color: #d9eaff; font-weight: 700; }
.eyebrow { margin: 0 0 12px; color: var(--edge-blue); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow, .footer .eyebrow { color: #9cc8ff; }
h1, h2, h3 { margin-top: 0; color: var(--edge-navy); font-family: var(--edge-font-heading); line-height: 1.18; }
h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.2rem, 5.4vw, 4.1rem); letter-spacing: -.035em; }
.hero h1, .footer h2 { color: white; }
.lede { max-width: 680px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.26rem); }
.hero .lede { color: #e5edf8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 20px; color: white; font-weight: 750; text-decoration: none; background: var(--edge-blue); border: 0; border-radius: 8px; cursor: pointer; }
.button:hover { color: white; background: #0059cc; }
.button-light { color: var(--edge-navy); background: white; border: 1px solid #cdd8e5; }
.button-light:hover { color: var(--edge-navy); background: #edf4ff; }
.hero-card { padding: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--edge-radius-lg); }
.hero-card h2 { color: white; font-size: 1.45rem; }
.hero-card p { color: #e5edf8; }
.hero-mark { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 22px; border: 2px solid #9cc8ff; border-radius: 14px; font-size: 1.8rem; font-weight: 800; }
.trust-strip { padding: 20px 0; color: var(--edge-navy); background: #f0f5fb; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.section { padding-top: 70px; padding-bottom: 70px; }
.section-head { max-width: 700px; margin-bottom: 28px; }
.section-head h2, .split h2, .cta h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.section-head > p:last-child, .section-head > p:not(.eyebrow) { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 24px; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: var(--edge-radius-md); box-shadow: var(--edge-shadow-card); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: #9bbbe0; }
.card h3 { margin: 0 30px 9px 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 36px; height: 36px; margin-bottom: 14px; }
.learn-more { display: inline-block; margin-top: 14px; color: var(--edge-blue); font-weight: 700; }
.property-grid { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1101px) { .service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.photo-card { padding: 14px; overflow: hidden; }
.photo-card > img { display: block; width: calc(100% + 28px); max-width: none; height: auto; aspect-ratio: 4 / 3; margin: -14px -14px 16px; object-fit: cover; }
.photo-card h3 { margin-right: 0; font-size: 1.05rem; }
.family-section { background: #f7f9fc; }
.family-grid { display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 12px 24px; }
.family-mark { width: 68px; height: 68px; }
.family-grid h2 { margin-bottom: 10px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.family-grid > div > p:not(.eyebrow) { color: var(--muted); }
.why-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.project-slot { min-height: 220px; }
.card-arrow { position: absolute; top: 20px; right: 20px; color: var(--edge-blue); font-size: 1.2rem; }
.section-tint { background: var(--edge-light); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; margin-bottom: 20px; padding: 0 0 22px 58px; border-bottom: 1px solid var(--line); counter-increment: steps; }
.steps li:before { position: absolute; top: 0; left: 0; display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--edge-navy); border-radius: 50%; content: counter(steps); font-weight: 700; }
.steps b, .steps span { display: block; }
.steps span { color: var(--muted); }
.cta { padding: 52px 0; background: #eaf2fb; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 650px; margin-bottom: 8px; }
.cta p { margin-top: 0; color: var(--muted); }
.footer { padding: 48px 0 20px; color: #e3eaf3; background: #08264c; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 28px; }
.footer-brand img { width: 220px; margin-bottom: 10px; }
.footer h2 { margin: 0 0 12px; font-size: 1rem; }
.footer a { display: block; margin: 6px 0; color: #e3eaf3; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { max-width: 300px; color: #c7d4e4; }
.copyright { margin-top: 34px; padding-top: 16px; color: #c7d4e4; border-top: 1px solid #34506f; font-size: .9rem; }
.page-hero { padding: 58px 0 52px; background: #f0f5fb; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.55rem); }
.page-hero .lede { margin-bottom: 24px; }
.prose { max-width: 820px; }
.prose h2 { margin: 30px 0 10px; font-size: 1.7rem; }
.prose p, .prose li { color: #3d4e61; }
.prose li { margin: .5rem 0; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-empty { max-width: 780px; margin: auto; text-align: center; }
.project-slot { display: grid; min-height: 230px; place-items: center; margin-bottom: 28px; color: #43566c; background: linear-gradient(135deg, #edf2f7, #f8fafc); border: 1px dashed #8294aa; border-radius: 14px; }
.project-slot span { font-weight: 700; }
.project-empty h2 { color: var(--edge-navy); }
:focus-visible { outline: 3px solid #0070ff; outline-offset: 3px; border-radius: 2px; }
::selection { color: #0b2d5b; background: #c5e0ff; }
@media (max-width: 1100px) {
    .header-inner { min-height: 68px; }
    .brand img { width: 200px; }
    .menu-toggle { display: block; }
    .nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 14px 20px 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 10px 18px #0b2d5b18; }
    .nav.open { display: flex; }
    .nav a { padding: 10px 12px; }
    .nav .nav-cta { margin-top: 5px; text-align: center; }
    .hero { padding: 48px 0; }
    .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
    .hero-photo { order: -1; }
    .family-grid { grid-template-columns: 1fr; gap: 12px; }
    .why-grid { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
    .hero-card { max-width: 540px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding-top: 54px; padding-bottom: 54px; }
    .cta-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .wrap { width: calc(100% - 32px); }
    .brand img { width: 180px; }
    .hero { padding: 40px 0; }
    .hero-grid { gap: 25px; }
    .hero-card { padding: 23px; }
    .card-grid, .property-grid { grid-template-columns: 1fr; }
    .card { padding: 20px; }
    .page-hero { padding: 43px 0 38px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .section { padding-top: 44px; padding-bottom: 44px; }
    .cta { padding: 40px 0; }
}
/* Global header, buttons, icons, footer and mobile call bar (approved homepage reference).
   Do not set `display` on .nav or .menu-toggle here: the 1100px breakpoint above controls it. */
.wrap-wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.site-header { position: sticky; top: 0; z-index: 40; }
.header-inner { min-height: 78px; gap: 24px; }
.brand img { width: 196px; }
.nav { flex: 1; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; flex: 1; justify-content: center; gap: clamp(14px, 1.7vw, 30px); }
.nav-links a { padding: 6px 0; color: var(--edge-navy); font-size: .9rem; font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--edge-blue); box-shadow: inset 0 -2px 0 var(--edge-blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; color: var(--edge-navy); font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1.5px solid var(--edge-navy); border-radius: 8px; }
.nav-phone .icon { width: 18px; height: 18px; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; font-size: .88rem; font-weight: 700; white-space: nowrap; background: var(--edge-blue); }
.nav-cta:hover { background: #0059cc; }
.menu-toggle { padding: 8px; border-color: transparent; }
.menu-toggle .icon { width: 28px; height: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; font-family: var(--edge-font-body); font-size: .95rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; border: 1.5px solid transparent; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { color: #fff; background: var(--edge-blue); }
.btn-primary:hover { color: #fff; background: #0059cc; }
.btn-primary:disabled { color: #f3f6fa; background: #b9c4d2; cursor: not-allowed; }
.btn-outline-navy { color: var(--edge-navy); background: #fff; border-color: var(--edge-navy); }
.btn-outline-navy:hover { color: var(--edge-navy); background: #f2f6fb; }
.btn-outline-whatsapp { color: var(--edge-navy); background: #fff; border-color: #25D366; }
.btn-outline-whatsapp:hover { color: var(--edge-navy); background: #effcf4; }
.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.footer { padding: 28px 0 18px; color: var(--edge-charcoal); background: #fff; border-top: 1px solid var(--line); }
.footer a { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--edge-navy); font-size: .88rem; text-decoration: none; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand img { width: 168px; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font-weight: 600; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; color: var(--muted); font-size: .88rem; }
.footer-location { display: inline-flex; align-items: center; gap: 6px; }
.footer .icon { width: 18px; height: 18px; color: var(--edge-navy); }
.footer-social { display: inline-flex; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; padding-top: 14px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
.footer-links span { color: var(--edge-navy); font-weight: 700; }
.footer .footer-links a { color: var(--muted); font-size: .82rem; }
.copyright { margin-top: 10px; padding-top: 0; color: var(--muted); font-size: .8rem; border-top: 0; }

.call-bar { display: none; }
@media (max-width: 1100px) {
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
  .nav-phone, .nav .nav-cta { justify-content: center; min-height: 48px; }
}
@media (max-width: 640px) {
  .wrap-wide { width: calc(100% - 32px); }
  .brand img { width: 168px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .call-bar { display: grid; position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(11,45,91,.08); }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; color: var(--edge-navy); font-weight: 700; text-decoration: none; background: #fff; border: 1.5px solid var(--edge-navy); border-radius: 8px; }
  .call-bar .call-bar-call { color: #fff; background: var(--edge-navy); }
  .call-bar .call-bar-whatsapp { border-color: #25D366; }
  .call-bar .icon { width: 20px; height: 20px; }
  body:has(.call-bar) { padding-bottom: 70px; }
}
/* Estimate section (Pages/Shared/_EstimateSection.cshtml): /estimate/ and every secondary page. */
.estimate-section { padding: 56px 0 64px; background: #f5f8fb; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-areas: "intro wizard" "support wizard"; align-items: start; gap: 8px 64px; max-width: 1120px; }
.estimate-intro { grid-area: intro; padding-top: 16px; }
.estimate-wizard { grid-area: wizard; }
.estimate-support { grid-area: support; }
.estimate-eyebrow { margin: 0 0 10px; color: var(--edge-blue); font-family: var(--edge-font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.estimate-intro h1, .estimate-intro .estimate-heading { max-width: 560px; margin: 0 0 14px; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.estimate-lede { max-width: 520px; margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.estimate-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0 0 24px; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.estimate-trust li { display: flex; align-items: flex-start; gap: 12px; }
.estimate-trust .icon { width: 30px; height: 30px; color: var(--edge-navy); }
.estimate-trust strong { display: block; color: var(--edge-navy); font-size: .95rem; }
.estimate-trust span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.estimate-talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; background: #fff; border: 1px solid #D9E3F0; border-radius: 10px; }
.estimate-talk p { margin: 0; color: var(--edge-charcoal); font-size: .95rem; }
.estimate-talk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.estimate-talk .btn { min-height: 44px; }
.spanish-badge { margin: 0 0 16px; padding: 10px 14px; color: var(--edge-charcoal); font-size: .92rem; background: #fff; border: 1px solid #D9E3F0; border-left: 4px solid var(--edge-blue); border-radius: 8px; }
.spanish-badge strong { color: var(--edge-navy); }
.footer-spanish { font-weight: 600; color: var(--edge-navy); }
.estimate-general { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.estimate-general a { color: var(--edge-blue); font-weight: 600; }

@media (max-width: 960px) {
  .estimate-section { padding: 24px 0 48px; scroll-margin-top: 72px; }
  .estimate-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "wizard" "support"; gap: 18px; max-width: 560px; }
  .estimate-intro { padding-top: 0; }
  .estimate-intro h1, .estimate-intro .estimate-heading { margin-bottom: 8px; font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .estimate-lede { margin-bottom: 0; font-size: .98rem; }
  .estimate-support { margin-top: 10px; }
}
@media (max-width: 640px) {
  .estimate-trust { grid-template-columns: 1fr; }
  .estimate-talk-actions { display: grid; width: 100%; }
}

/* Secondary pages: page content on the left, stacked estimate sidebar on the right (EstimateSection.Sidebar). */
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 56px; padding: 48px 0 72px; }
.page-split-main.section { padding: 0; }
.page-split-main.prose { max-width: 760px; }
.page-split-media { margin: 0 0 32px; overflow: hidden; border: 1px solid #D9E3F0; border-radius: 12px; }
.page-split-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Desktop: the image grows (16:9 minimum, 620px cap) so short pages balance the taller estimate sidebar. */
@media (min-width: 981px) {
  .page-split { align-items: stretch; }
  .page-split > .estimate-section--sidebar { align-self: start; }
  .page-split-main { display: flex; flex-direction: column; }
  .page-split-media { position: relative; flex: 1 0 auto; aspect-ratio: 16 / 9; max-height: 620px; }
  .page-split-media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.estimate-section.estimate-section--sidebar { padding: 22px 20px; background: #f5f8fb; border: 1px solid #D9E3F0; border-radius: 14px; scroll-margin-top: 96px; }
.estimate-section--sidebar .estimate-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "wizard" "support"; gap: 16px; max-width: none; }
.estimate-section--sidebar .estimate-intro { padding-top: 0; }
.estimate-section--sidebar .estimate-intro .estimate-heading { margin: 0; font-size: 1.7rem; }
.estimate-section--sidebar .estimate-lede { display: none; }
.estimate-section--sidebar .wizard { max-width: none; box-shadow: 0 8px 22px rgba(11,45,91,.1); }
.estimate-section--sidebar .estimate-support { margin-top: 0; }
.estimate-section--sidebar .estimate-trust { grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; padding-top: 14px; }
.estimate-section--sidebar .estimate-trust .icon { width: 24px; height: 24px; }
.estimate-section--sidebar .estimate-trust strong { font-size: .84rem; }
.estimate-section--sidebar .estimate-trust span { font-size: .78rem; }
.estimate-section--sidebar .estimate-talk { padding: 12px; }
.estimate-section--sidebar .estimate-talk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.estimate-section--sidebar .estimate-talk .btn { min-height: 42px; padding: 0 10px; gap: 6px; font-size: .82rem; white-space: nowrap; }
.estimate-section--sidebar .estimate-talk .btn .icon { width: 18px; height: 18px; }
.estimate-section--sidebar .estimate-general { margin-top: 12px; font-size: .82rem; }
@media (max-width: 980px) {
  .page-split { grid-template-columns: 1fr; gap: 32px; }
  .estimate-section.estimate-section--sidebar { max-width: 640px; }
}
@media (max-width: 640px) {
  .page-split { padding: 32px 0 48px; }
  .estimate-section.estimate-section--sidebar { padding: 16px 12px; }
  .estimate-section--sidebar .estimate-trust { grid-template-columns: 1fr; }
  .estimate-section--sidebar .estimate-talk-actions { grid-template-columns: 1fr; }
  .estimate-section--sidebar .estimate-talk .btn { min-height: 46px; font-size: .9rem; }
}

/* Estimate wizard: shared component (Pages/Shared/_EstimateWizard.cshtml) for the homepage hero and /estimate/. */
.wizard { width: 100%; max-width: 430px; padding: 24px; color: var(--edge-charcoal); background: #fff; border: 1px solid #D9E3F0; border-radius: 14px; box-shadow: 0 12px 32px rgba(11,45,91,.14); }
.wizard [hidden] { display: none !important; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 16px; padding: 0; list-style: none; }
.wizard-progress li { position: relative; display: grid; justify-items: center; gap: 4px; color: #7f90a6; font-size: .75rem; font-weight: 600; }
.wizard-progress li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 19px); left: calc(-50% + 19px); height: 1px; background: #d3dded; }
.wizard-progress li.is-done + li::before { background: #9dc0f0; }
.wizard-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; color: #7f90a6; font-size: .8rem; font-weight: 700; background: #eef3f9; border: 1px solid #d3dded; border-radius: 50%; }
.wizard-progress li.is-current { color: var(--edge-blue); }
.wizard-progress li.is-current .wizard-dot { color: #fff; background: var(--edge-blue); border-color: var(--edge-blue); }
.wizard-progress li.is-done { color: var(--edge-navy); }
.wizard-progress li.is-done .wizard-dot { color: #fff; background: var(--edge-navy); border-color: var(--edge-navy); }
.wizard-title { margin: 0 0 4px; color: var(--edge-navy); font-family: var(--edge-font-heading); font-size: 1.25rem; font-weight: 800; line-height: 1.2; text-align: center; }
.wizard-sub { margin: 0 0 16px; color: var(--muted); font-size: .88rem; text-align: center; }
.wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard-step > legend { margin: 0 0 10px; padding: 0; color: var(--edge-navy); font-size: .95rem; font-weight: 700; }
.wizard-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wizard-tile { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 80px; padding: 10px 8px; color: var(--edge-navy); font: 600 .85rem/1.2 var(--edge-font-body); text-align: center; background: #fff; border: 1px solid #D9E3F0; border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.wizard-tile .icon { width: 28px; height: 28px; color: var(--edge-navy); }
.wizard-tile:hover { border-color: #9fbbe0; }
.wizard-tile[aria-pressed="true"] { background: #f0f6ff; border-color: var(--edge-blue); box-shadow: inset 0 0 0 1px var(--edge-blue); }
.wizard-field { display: grid; gap: 4px; margin-bottom: 10px; }
.wizard-field label, .wizard-contact-pref legend { color: var(--edge-navy); font-size: .82rem; font-weight: 700; }
.wizard-optional { color: var(--muted); font-weight: 500; }
.wizard-field input, .wizard-field textarea { width: 100%; padding: 0 12px; color: var(--edge-charcoal); background: #fff; border: 1px solid #c9d3df; border-radius: 6px; }
.wizard-field input { height: 46px; }
.wizard-field textarea { min-height: 62px; padding: 10px 12px; resize: vertical; }
.wizard-field input:focus-visible, .wizard-field textarea:focus-visible { border-color: var(--edge-blue); outline: 2px solid #9cc4ff; outline-offset: 1px; }
.wizard-field input:user-invalid { border-color: #c0271f; }
.wizard-contact-pref { min-width: 0; margin: 2px 0 10px; padding: 0; border: 0; }
.wizard-contact-pref legend { margin-bottom: 6px; padding: 0; }
.wizard-contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wizard-contact-options label { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--edge-navy); font-size: .85rem; font-weight: 600; border: 1px solid #D9E3F0; border-radius: 8px; cursor: pointer; }
.wizard-contact-options input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-contact-options label:has(input:checked) { background: #f0f6ff; border-color: var(--edge-blue); box-shadow: inset 0 0 0 1px var(--edge-blue); }
.wizard-contact-options label:has(input:focus-visible) { outline: 3px solid #0070ff; outline-offset: 2px; }
.wizard-contact-options .icon { width: 18px; height: 18px; }
.wizard-message { margin: 10px 0 0; color: var(--edge-charcoal); font-size: .88rem; }
.wizard-message:empty { display: none; }
.wizard-message[role="alert"] { color: #a31d16; }
.wizard-actions { display: grid; gap: 6px; margin-top: 16px; }
.wizard-actions .btn { min-height: 50px; }
.wizard .btn-primary:disabled { color: #fff; background: #B8C5D6; }
.wizard-back { justify-self: center; min-height: 40px; padding: 6px 12px; color: var(--muted); font-size: .85rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
.wizard-back:hover { color: var(--edge-navy); }
.wizard-success { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 4px; text-align: center; }
.wizard-success:focus { outline: none; }
.wizard-success-icon { width: 52px; height: 52px; color: var(--edge-blue); }
.wizard-success p { margin: 0 0 12px; color: var(--muted); }
.wizard-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
/* When the visitor chose WhatsApp, lead with the personalised WhatsApp button. */
.wizard-success-hint { display: none; margin: -4px 0 12px; color: var(--edge-navy); font-size: .9rem; font-weight: 600; }
.wizard-success.prefers-whatsapp .wizard-success-hint { display: block; }
.wizard-success.prefers-whatsapp .wizard-success-actions [data-wizard-whatsapp] { order: -1; grid-column: 1 / -1; min-height: 50px; border-width: 2px; }
@media (max-width: 640px) {
  .wizard { max-width: none; padding: 18px 16px 20px; }
  .wizard-success-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
