/* ================================================================
   CDA DOCK PRO LLC — Main Stylesheet
   Design: Deep Navy + Slate Grey + Crisp White
   Approach: Mobile-first, CSS custom properties, no dependencies
   ================================================================ */


/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design tokens)
   ---------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy:          #0A1628;
  --navy-mid:      #162340;
  --slate:         #4A5568;
  --slate-light:   #718096;
  --white:         #F8FAFC;
  --white-off:     #EDF2F7;
  --accent:        #2B6CB0;   /* CTA blue — lake water tone */
  --accent-hover:  #2C5282;
  --accent-light:  #EBF8FF;

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 16px;
  --line-height: 1.65;

  /* Spacing scale (multiples of 8px) */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.5rem;   /* 24px */
  --space-6:  2rem;     /* 32px */
  --space-8:  3rem;     /* 48px */
  --space-10: 4rem;     /* 64px */
  --space-12: 6rem;     /* 96px */

  /* Layout */
  --max-width: 1200px;
  --nav-height: 68px;

  /* Borders & radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.15);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.20);

  /* Transitions */
  --transition: 0.25s ease;
}


/* ----------------------------------------------------------------
   2. RESET & BOX MODEL
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  /* Smooth scroll — disabled for users who prefer reduced motion */
  scroll-behavior: smooth;
  /* Offset for fixed nav when jumping to anchors */
  scroll-padding-top: var(--nav-height);
}

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

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--slate);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Screen-reader-only utility */
.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;
}


/* ----------------------------------------------------------------
   3. LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section-padded {
  padding-block: var(--space-10);
}

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

/* Fade-in on scroll — class added by IntersectionObserver in JS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}


/* ----------------------------------------------------------------
   4. TYPOGRAPHY — section titles, subtitles
   ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
  text-align: center;
}

.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--slate-light);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.section-sub--light { color: rgba(255,255,255,0.75); }


/* ----------------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Accent (primary CTA) */
.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* Outline (secondary) */
.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
}

/* Small outline for cards */
.btn-outline-sm {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-outline-sm:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Large modifier */
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Full-width block */
.btn-block { width: 100%; }


/* ----------------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--white); text-decoration: none; }

.logo-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Desktop nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  padding-block: var(--space-2);
}

.nav-link:hover { color: var(--white); text-decoration: none; }

.nav-cta { margin-left: var(--space-2); }

/* Hamburger button — visible on mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav styles */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background-color: var(--navy-mid);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-5);
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-menu.is-open { display: flex; }

  .nav-link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
  }

  .nav-cta {
    margin: var(--space-4) 0 0;
    text-align: center;
  }
}


/* ----------------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------------- */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero dock.png');
  background-size: cover;
  background-position: center;
}

/* Dark overlay for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--space-12);
}

.hero-headline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}


/* ----------------------------------------------------------------
   8. TRUST BAR
   ---------------------------------------------------------------- */
.trust-bar {
  background-color: var(--white-off);
  border-bottom: 1px solid #E2E8F0;
  padding-block: var(--space-5);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: center;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.trust-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }


/* ----------------------------------------------------------------
   9. SERVICE CARDS
   ---------------------------------------------------------------- */
.section-services { background-color: var(--white); }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card image placeholders — replace background with url() when photos available */
.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-image--wash {
  background-image: url('../images/pressure.png');
  background-size: cover;
  background-position: center;
}

.card-image--maintain {
  background-image: url('../images/clean dock.png');
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-title {
  font-size: 1.2rem;
  color: var(--navy);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--slate);
  flex: 1;
}


/* ----------------------------------------------------------------
   10. BEFORE / AFTER COMPARISON SLIDER
   ---------------------------------------------------------------- */
.section-gallery { overflow: hidden; }

.slider-wrapper {
  display: flex;
  justify-content: center;
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  /* Prevent page scroll while dragging on touch devices */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.comparison-slider:focus {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* ---- Panels ---- */
.slider-panel {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* BEFORE panel */
.slider-panel--before {
  background-image: url('../images/before.png');
  background-size: cover;
  background-position: center;
}

/* AFTER panel */
.slider-panel--after {
  background-image: url('../images/after.png');
  background-size: cover;
  background-position: center;
  /* Clip reveals from the left — value updated live by JS */
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

/* Labels overlaid on each panel */
.slider-label {
  position: absolute;
  bottom: var(--space-4);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--white);
}

.slider-label--before {
  left: var(--space-4);
  background-color: rgba(0,0,0,0.55);
}

.slider-label--after {
  right: var(--space-4);
  background-color: rgba(43, 108, 176, 0.8);
}

/* ---- Drag handle ---- */
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  /* Initial position at 50% — updated by JS */
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: left;
  pointer-events: none; /* parent catches pointer events */
}

.handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: var(--white);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.handle-grip {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--slate);
  font-weight: 700;
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   11. QUOTE CALCULATOR
   ---------------------------------------------------------------- */
.section-calculator { background-color: var(--white-off); }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .calc-layout { grid-template-columns: 1fr 1fr; }
}

/* ---- Form elements ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label--light { color: var(--white); }

.form-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--slate-light);
}

.form-input {
  padding: 0.65rem 0.875rem;
  border: 2px solid #CBD5E0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy);
  background-color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.2);
}

.form-input::placeholder { color: #A0AEC0; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.8rem;
  color: #E53E3E;
  min-height: 1em;
}

/* ---- Checkboxes ---- */
.form-fieldset {
  border: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.form-fieldset legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  display: block;
  width: 100%;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding-block: var(--space-3);
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.95rem;
  color: var(--slate);
  transition: color var(--transition);
}

.checkbox-text {
  flex: 1;
  line-height: 1.4;
}

.checkbox-label:last-child { border-bottom: none; }

/* Hide native checkbox */
.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

/* Custom checkbox box */
.checkbox-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  min-width: 20px;
  border: 2px solid #CBD5E0;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  transition: background-color var(--transition), border-color var(--transition);
}

.checkbox-input:checked + .checkbox-custom {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '✓';
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
}

.checkbox-input:focus-visible + .checkbox-custom {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.addon-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}


/* ---- Calculator result panel ---- */
.calc-result {
  background-color: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.result-inner {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-align: center;
}

.result-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.result-range {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.result-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Slide-in animation for result panel */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-result:not([hidden]) {
  animation: slideUp 0.35s ease forwards;
}

/* ---- Two-column form row ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}


/* ----------------------------------------------------------------
   12. CONTACT SECTION
   ---------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.4fr; }
}

.contact-copy { padding-top: var(--space-4); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  transition: color var(--transition);
}

.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-link:hover { color: var(--white); text-decoration: none; }

.contact-form {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Inputs inside dark section need white background */
.section-dark .form-input {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-dark .form-input::placeholder { color: rgba(255,255,255,0.4); }

.section-dark .form-input:focus {
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.35);
}

.section-dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.section-dark .form-select option { background-color: var(--navy); color: var(--white); }

.privacy-note {
  font-size: 0.8rem;
  color: var(--slate-light);
  text-align: center;
  margin-top: var(--space-3);
}

.section-dark .privacy-note { color: rgba(255,255,255,0.45); }


/* ----------------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-10);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; }
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer-seo {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 520px;
}

.footer-seo strong { color: rgba(255,255,255,0.85); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  text-align: center;
  padding-block: var(--space-5);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}


/* ----------------------------------------------------------------
   14. LEAD CAPTURE MODAL
   ---------------------------------------------------------------- */

/* native <dialog> reset */
dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: min(520px, calc(100vw - 2rem));
  width: 100%;
  background-color: var(--white);
  color: var(--slate);
}

/* Backdrop overlay */
dialog::backdrop {
  background-color: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(3px);
}

/* Open animation */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

dialog[open] {
  animation: modalIn 0.2s ease forwards;
}

.lead-modal {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
}

.modal-close svg { width: 16px; height: 16px; }

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 1rem;
  background-color: var(--white-off);
  transition: background-color var(--transition);
}

.modal-close:hover { background-color: #E2E8F0; }

.modal-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.modal-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.modal-estimate {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-size: 0.9rem;
  color: var(--navy);
  min-height: 1rem;
}

.modal-form .form-group { margin-bottom: var(--space-4); }

/* Success state inside modal */
.modal-success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.success-icon { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.success-icon svg { width: 56px; height: 56px; color: #38A169; }

.modal-success h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
