:root {
  --bg: #F7F8F6;
  --surface: #FFFFFF;
  --surface-2: #F1F4F1;
  --surface-3: #E2E8F0;
  --accent: #D9622B;
  --accent-soft: #FDF3ED;
  --accent-hover: #BF4F1D;
  --accent-cool: #3A5A6B;
  --accent-cool-soft: #EEF4F7;
  --accent-cool-hover: #2D4755;
  --text: #12171C;
  --text-muted: #334155;
  --text-faint: #475569;
  --border: #CBD5E1;
  --border-subtle: #E2E8F0;
  --warn: #D97706;
  --radius: 6px;
  --radius-sm: 4px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 246, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  width: 100%;
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; max-height: 56px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
nav.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
nav.main-nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s ease; display: inline-flex; align-items: center; gap: 4px; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent); font-weight: 600; }
nav.main-nav svg { width: 14px; height: 14px; }

/* ---------- Navigation Dropdown ---------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
  font-weight: 600;
}
.dropdown-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .dropdown-caret,
.nav-dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  min-width: 260px;
  z-index: 100;
  display: none;
  overflow: hidden;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background-color: var(--surface-2);
  color: var(--accent);
  font-weight: 600;
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #ffffff;
  background-color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.header-phone:hover {
  background-color: var(--accent-hover);
}
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; color: #ffffff; fill: #ffffff; stroke: #ffffff; }
@media(max-width: 580px) {
  .header-phone span { display: none; }
  .header-phone {
    padding: 10px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    justify-content: center;
    box-sizing: border-box;
  }
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
@media(max-width: 860px) {
  .site-header .inner { padding: 12px 16px; }
  .brand img { height: 44px; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); z-index: 99;
  }
  nav.main-nav.open, nav.main-nav.show { display: flex; }
  nav.main-nav a { padding: 12px 0; width: 100%; display: block; border-bottom: 1px solid var(--border); }
  nav.main-nav a:last-child { border-bottom: none; }
  
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 0;
    justify-content: space-between;
    font-size: 14.5px;
  }
  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    margin-top: 0;
    padding: 0 0 8px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 100%;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero-section { padding: 16px 0 32px; }
.hero-compact { text-align: center; margin-bottom: 24px; }
.hero-compact-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 0 0 6px; color: var(--text); }
.hero-compact-sub { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.trust-bullets { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }
.trust-bullets span { display: flex; align-items: center; gap: 6px; }
.trust-bullets svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ---------- Layout Grid ---------- */
.calculator-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: flex-start;
  text-align: left;
}
.calculator-grid.advisor-full-view {
  grid-template-columns: 1fr !important;
  max-width: 1040px !important;
}
.calculator-grid.advisor-full-view .calc-sidebar,
.calculator-grid.advisor-full-view .top-progress-card {
  display: none !important;
}
@media(max-width: 760px) {
  .calculator-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-compact {
    margin-bottom: 16px !important;
  }
  .top-progress-card {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .top-progress-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .calc-sidebar {
    display: none !important;
  }
}
.calculator-col { display: flex; flex-direction: column; }

/* ---------- Card (Hero Deliberate Visual Moment) ---------- */
.card {
  background: var(--surface);
  border-radius: 8px;
  padding: 32px 32px;
  position: relative;
  margin-bottom: 24px;
  border: 1.5px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), 
                    linear-gradient(135deg, #D9622B 0%, rgba(217, 98, 43, 0.35) 35%, rgba(58, 90, 107, 0.45) 70%, #3A5A6B 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 30px -4px rgba(217, 98, 43, 0.08), 
              0 20px 48px -8px rgba(58, 90, 107, 0.12);
}
@media(max-width: 560px) {
  .card { padding: 20px 16px; }
}

/* ---------- Sidebar & Progress ---------- */
.calc-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  position: sticky;
  top: 90px;
}
.sidebar-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  cursor: not-allowed;
  position: relative;
  transition: background-color 0.15s ease;
}
.sidebar-step#lbl4 { border-bottom: none; }
.sidebar-step.done { cursor: pointer; }
.sidebar-step.done:hover { background: var(--surface-2); }
.side-circ {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.sidebar-step.done .side-circ { background: var(--surface-2); color: var(--text); border-color: #CBD5E1; }
.sidebar-step.active .side-circ { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.side-title { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.2; }
.side-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sidebar-step.active .side-title { color: var(--accent); }
.sidebar-step.active .side-sub { color: var(--accent); }
.side-pointer {
  position: absolute; right: -7px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #ffffff; border-top: 1px solid var(--border); border-right: 1px solid var(--border);
  opacity: 0; transition: opacity 0.2s ease; z-index: 5;
}
.sidebar-step.active .side-pointer { opacity: 1; }
.top-circle {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  z-index: 10;
}
.top-circle.done { background: var(--surface-2); color: var(--text); border-color: #CBD5E1; cursor: pointer; }
.top-circle.active { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* ---------- Sidebar Advisor Card (Step 5 only) ---------- */
.sidebar-advisor-card {
  border-top: 1px solid var(--border);
  padding: 20px 18px;
  animation: sidebarAdvisorFadeIn 0.4s ease-out;
}
@keyframes sidebarAdvisorFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sidebar-advisor-inner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.sidebar-advisor-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.sidebar-advisor-avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}
.sidebar-advisor-avatars img + img {
  margin-left: -10px;
}
.sidebar-advisor-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.sidebar-advisor-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
.sidebar-advisor-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: #ea580c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.2);
}
.sidebar-advisor-cta:hover {
  background: #c2410c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.sidebar-advisor-cta svg {
  flex-shrink: 0;
}
.sidebar-advisor-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 500;
}
.sidebar-advisor-trust span {
  white-space: nowrap;
}

/* Advisor-only mode: hide step indicators, show only the card */
.calc-sidebar.advisor-only .sidebar-step {
  display: none !important;
}
.calc-sidebar.advisor-only .sidebar-advisor-card {
  border-top: none;
  padding: 20px 16px;
}
.calc-sidebar.advisor-only .sidebar-advisor-inner {
  padding: 24px 20px;
}
.calc-sidebar.advisor-only .sidebar-advisor-avatars img {
  width: 52px;
  height: 52px;
}
.calc-sidebar.advisor-only .sidebar-advisor-headline {
  font-size: 16px;
  margin-bottom: 8px;
}
.calc-sidebar.advisor-only .sidebar-advisor-sub {
  font-size: 13.5px;
  margin-bottom: 18px;
}
.calc-sidebar.advisor-only .sidebar-advisor-cta {
  padding: 13px 16px;
  font-size: 14.5px;
}
.calc-sidebar.advisor-only .sidebar-advisor-trust {
  font-size: 11px;
  margin-top: 12px;
}



/* Large L x W inputs */
.sub-calc-row {
  display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e5e7eb;
}
.sub-calc-text { font-size: 13.5px; color: var(--text-muted); }
.sub-calc-inputs {
  display: flex; align-items: flex-end; gap: 12px;
}
.sub-input-group label { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.sub-input-group input { 
  width: 80px; padding: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; 
  border: 1.5px solid var(--border); border-radius: var(--radius); outline: none; text-align: center; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.sub-input-group input:focus { border-color: var(--accent); }
.sub-calc-inputs .times { font-size: 18px; color: var(--text-muted); padding-bottom: 12px; }
.sub-calc-result { font-size: 24px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--accent); padding-bottom: 4px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sub-calc-tip { font-size: 12px; color: var(--text-muted); background: #fffbeb; padding: 10px 14px; border-radius: var(--radius); display: inline-block; margin-top: 8px; border: 1px solid #fef3c7; }
.sqft-main-input input { font-size: 32px !important; color: var(--text) !important; font-family: 'Space Grotesk', sans-serif !important; height: 64px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.step { display: none; }
.step.active {
  display: block;
  animation: stepSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 4px; }
.step-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; }

/* ---------- Option cards ---------- */
.option-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media(max-width: 560px) { .option-grid { grid-template-columns: 1fr; } }
.option-grid.two { grid-template-columns: 1fr 1fr; }
@media(max-width: 560px) { .option-grid.two { grid-template-columns: 1fr; } }

#materialSub {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  animation: subExpand 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes subExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
#materialSubLabel {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}

.opt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
  color: var(--text);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.opt:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.opt.selected {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  padding: 17.5px 15.5px;
  box-shadow: none;
}
.opt .opt-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; display: block; color: var(--text); }
.opt.selected .opt-title { color: #9a3412; }
.opt .opt-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; display: block; }
.opt .opt-icon-svg {
  width: 26px; height: 26px; margin-bottom: 10px; display: block; color: var(--text-muted);
  transition: color .15s ease;
}
.opt:hover .opt-icon-svg,
.opt.selected .opt-icon-svg {
  color: var(--accent);
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.num-input {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: all .2s ease;
}
.num-input input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 600; padding: 12px 14px; width: 100%;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.num-input .suffix { padding: 0 14px; color: var(--text-muted); font-size: 13px; font-family: 'IBM Plex Mono', monospace; border-left: 1px solid var(--border); }
.num-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.estimate-tip {
  display: flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--text-faint);
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius); padding: 8px 12px; margin-top: 8px;
}
.estimate-tip button {
  background: none; border: none; color: var(--accent); cursor: pointer; font-family: inherit; font-size: 11.5px; text-decoration: underline; padding: 0;
}

/* ---------- Checkbox add-ons ---------- */
.addon-list { display: flex; flex-direction: column; gap: 8px; }
.addon {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 14px 14px;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
  box-shadow: none;
}
.addon:hover { border-color: var(--accent); box-shadow: none; background: var(--surface); }
.addon.checked {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  padding: 13.5px 13.5px;
  box-shadow: none;
}
.addon.checked .addon-title { color: #9a3412; }
.addon input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; }
.addon .addon-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.addon .addon-desc { font-size: 12px; color: var(--text-muted); }
.addon .addon-cost { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); white-space: nowrap; padding-left: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- Contact field & SMS Check ---------- */
.contact-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
/* ---------- ZIP Autocomplete Dropdown ---------- */
.zip-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 4px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.zip-dropdown.show {
  display: block;
}
.zip-option {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.zip-option:last-child {
  border-bottom: none;
}
.zip-option:hover {
  background: var(--surface-2);
}
.zip-option span {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}
.contact-field label {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-field input, .contact-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all .2s ease;
}
.contact-field input:hover, .contact-field select:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.contact-field input:focus, .contact-field select:focus {
  border-color: var(--accent);
}
.contact-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.field-error {
  display: none;
  color: #dc2626;
  font-size: 12.5px;
  margin-top: 5px;
  font-weight: 500;
}
.field-error.show {
  display: block;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

.sms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 15px;
}
.sms-check input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Nav buttons ---------- */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.btn {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { 
  background: var(--accent); 
  color: #FFFFFF; 
  border-radius: var(--radius); 
  padding: 11px 24px; 
  border: 1px solid transparent;
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: none; }
.btn-ghost { 
  background: transparent; 
  color: var(--text-muted); 
  border: 1px solid var(--border); 
  border-radius: var(--radius);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); background: var(--surface-2); }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Results ---------- */
.result-hero { text-align: center; padding: 6px 0 20px; }
.result-eyebrow { 
  font-family: 'Inter', sans-serif; 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--text-muted); 
  margin-bottom: 6px; 
}
.result-range {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.01em; line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.result-typical { color: var(--text-muted); font-size: 13.5px; margin-top: 6px; }
.result-typical strong { 
  color: var(--text); 
  font-family: 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.breakdown { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0 0; }
.result-deeplink {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--surface-alt, #f5f3ef);
  border-radius: 6px;
  margin-top: 12px;
  border-left: 3px solid var(--orange, #ea580c);
}
.dl-link {
  color: var(--orange, #ea580c);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dl-link:hover { text-decoration: underline; }
.b-row { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 13px; border-bottom: 1px solid var(--border); }
.b-row:last-child { border-bottom: none; }
.b-row .b-label { color: var(--text-muted); }
.b-row .b-val { 
  font-family: 'Inter', sans-serif; 
  font-weight: 600; 
  color: var(--text);
  font-variant-numeric: tabular-nums; 
  letter-spacing: 0.01em;
}

.assumptions { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin: 12px 0 4px; }
.assumptions strong { color: var(--text-muted); }

.savings-box {
  background: var(--accent-soft);
  border: 1px solid rgba(217, 98, 43, 0.15); border-radius: var(--radius); padding: 16px; margin: 16px 0;
}
.savings-box .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.savings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
@media(max-width: 560px) { .savings-grid { grid-template-columns: 1fr; gap: 8px; } }
.savings-item .num { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--accent-hover); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.savings-item .cap { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.savings-fine { font-size: 11px; color: var(--text-faint); margin-top: 10px; line-height: 1.45; }

.rec-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 16px 0; text-align: left;
}
.rec-box .city { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.rec-box p { font-size: 12.5px; color: var(--text-muted); margin: 0 0 8px; }
.rec-box a { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.rec-box a:hover { text-decoration: underline; }
.call-row { display: flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 16px; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.call-row a { color: var(--accent-hover); text-decoration: none; font-weight: 600; }

/* ═══ Result Page Divider ═══ */
.result-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 24px; padding: 0 8px;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.divider-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FFF7ED; border: 1px solid #FDBA74;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ═══ Contractor Finder Section ═══ */
.contractor-finder {
  background: var(--accent-cool-soft);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: none;
}
.cf-header { margin-bottom: 18px; }
.cf-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text); margin: 0 0 6px;
}
.cf-sub { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.cf-search-row {
  display: flex; align-items: center; gap: 10px;
  max-width: 400px; margin: 0 auto;
}
.cf-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
.cf-input-icon {
  position: absolute; left: 14px; color: #94a3b8;
  pointer-events: none; z-index: 1;
}
.cf-input-wrap input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 500; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  background: #fff; transition: border-color 0.15s ease;
  outline: none;
}
.cf-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 98, 43, 0.15);
}
.cf-search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: none;
  padding: 11px 18px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease;
  box-shadow: none;
}
.cf-search-btn:hover { background: var(--accent-hover); }
.cf-search-btn:active { transform: translateY(1px); }

.contractor-results {
  margin-top: 20px; text-align: left;
  animation: cfSlideIn 0.4s ease-out;
}
@keyframes cfSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cf-no-match {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 20px; padding: 20px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
}
.cf-no-match p {
  font-size: 13px; color: var(--text-muted); margin: 0; text-align: center;
}

@media(max-width: 560px) {
  .contractor-finder { padding: 20px 16px; }
  .cf-search-row { flex-direction: column; }
  .cf-search-btn { width: 100%; justify-content: center; }
  .cf-title { font-size: 16px; }
}

.review-strip { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.review-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 12.5px; line-height: 1.5; }
.review-item .stars { color: #f59e0b; font-size: 11px; margin-bottom: 2px; }
.review-item .who { color: var(--text-faint); font-size: 11px; margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.share-row { margin: 12px 0 2px; }
.share-btn {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; cursor: pointer;
}
.share-btn:hover { color: var(--text); border-color: var(--text-faint); background: var(--surface-2); }

.diagram-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-card .cap { font-family: 'IBM Plex Mono', monospace; font-size: 11px; margin-top: 8px; }
.diagram-card.now .cap { color: var(--warn); }
.diagram-card.after .cap { color: var(--accent-hover); }

/* ---------- Data Tables & Pricing Comparison ---------- */
.comparison-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
  text-align: left;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table-wrapper h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

div[style*="overflow-x: auto"] {
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 16px 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cost-table thead {
  background: #243b4a;
}
.cost-table th {
  background: #243b4a;
  color: #FFFFFF !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 13px 18px;
  border: none;
  text-align: left;
}
.cost-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  font-size: 14.5px;
  vertical-align: middle;
}
.cost-table tbody tr:last-child td {
  border-bottom: none;
}
.cost-table tbody tr:nth-child(even) {
  background: #F8FAF9;
}
.cost-table tbody tr:hover td {
  background: #EEF4F7;
}
.cost-table td strong {
  color: #12171C;
  font-weight: 600;
}
.cost-val,
.cost-table td.cost-val {
  color: #9A3412 !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Accordion / FAQ Section (Static Q&A Cards) ---------- */
.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.accordion-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.accordion-heading {
  margin: 0 0 10px 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  line-height: 1.4;
}
.accordion-title {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent !important;
  border: none;
  cursor: default !important;
  pointer-events: none !important;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.accordion-title:hover {
  background: transparent !important;
  color: inherit !important;
}
.accordion-title:focus-visible {
  outline: none;
}
.accordion-title span:first-child {
  color: inherit;
}
.accordion-icon {
  display: none !important;
}
.accordion-content {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 0;
  background: transparent;
  color: var(--text-muted, #475569);
  font-size: 15px;
  line-height: 1.65;
}
.accordion-content p {
  margin: 0;
  color: inherit;
}

/* ---------- Section Layouts ---------- */
section.page-section {
  padding: 56px 20px;
  background: #FFFFFF;
}
section.page-section.alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Methodology Card ---------- */
.methodology-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}
.methodology-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.methodology-note {
  font-style: italic;
  font-size: 11px;
  color: var(--text-faint);
  margin: 6px 0 0;
}

.section-eyebrow { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--accent-cool); margin: 0 0 6px; text-align: left; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.01em; margin: 0 0 8px; text-align: left; color: var(--text); }
.section-lede { color: var(--text-muted); font-size: 14.5px; max-width: 60ch; line-height: 1.5; margin: 0 0 32px; text-align: left; }

/* ---------- Icon Cards (Which Insulation Accordion/Guide) ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; text-align: left; }
@media(min-width: 760px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.guide-icon { font-size: 28px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: 8px; }
.guide-card h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16.5px; font-weight: 600; margin: 6px 0 2px; }
.guide-ans { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.45; margin: 0; }
.guide-detail { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Difficulty Explainer (Attic Clearance) ---------- */
.complexity-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; text-align: left; }
@media(min-width: 760px) { .complexity-grid { grid-template-columns: repeat(3, 1fr); } }
.complexity-card-static {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.complexity-card-static .card-icon {
  width: 36px; height: 36px; border-radius: 6px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.complexity-card-static .card-icon svg { width: 18px; height: 18px; }
.complexity-card-static h4 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; margin: 0; }
.complexity-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.complexity-desc strong { color: var(--text); }

/* ---------- Filterable City Table ---------- */
.city-filter-container { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; justify-content: center; }
.filter-tab {
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer;
  white-space: nowrap; transition: all .15s ease;
  min-height: 44px; /* Ensure 44px touch target */
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-tab:hover { border-color: var(--text-faint); background: var(--surface-2); }
.filter-tab.active { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.table-scroll-container { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.city-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; min-width: 620px; }
.city-table th, .city-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.city-table th { background: var(--surface-2); color: var(--text-muted); font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.05em; }
.city-table tr:last-child td { border-bottom: none; }
.city-table tr:hover td { background: var(--bg); }
.high-priority-row { background: rgba(13, 148, 136, 0.015); }
.high-priority-row:hover td { background: rgba(13, 148, 136, 0.035); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-high { background: var(--accent-soft); color: var(--accent-hover); }
.badge-med { background: #e0f2fe; color: #0369a1; } /* sky blue */
.badge-low { background: #f1f5f9; color: #475569; }

.city-link { color: var(--text); text-decoration: none; font-weight: 500; }
.city-link:hover { color: var(--accent); text-decoration: underline; }
.zip-col { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }

/* ---------- Services Grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; text-align: left; }
@media(max-width: 860px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.01); transition: all .15s ease;
}
.service-card:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.service-card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.service-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Why Us ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; text-align: left; }
@media(max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature { text-align: left; }
.feature .icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 8px; }
.feature h4 { font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.feature p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Process Steps ---------- */
.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; text-align: left; }
@media(max-width: 860px) { .process-row { grid-template-columns: 1fr; gap: 20px; } }
.process-step { position: relative; }
.process-step .step-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--accent);
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600;
}
.process-step h4 { font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; font-weight: 600; margin: 0 0 4px; }
.process-step p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center; padding: 56px 20px;
}
.final-cta h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 8px; }
.final-cta p { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.cta-btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 14px 24px; font-size: 14.5px; border-radius: 8px; }

/* ---------- Premium Loading Animation ---------- */
  .loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0 24px;
    text-align: center;
  }
  .loader-visual {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-soft);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
  .loader-ring::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--warn);
    border-left-color: rgba(245, 158, 11, 0.2);
    animation: spin-reverse 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
  .loader-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-soft);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 0;
  }
  .loader-icon {
    position: relative;
    z-index: 10;
    width: 36px;
    height: 36px;
    color: var(--accent);
    animation: icon-float 3s ease-in-out infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  @keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
  }
  @keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
  }
  @keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  .loading-bar-container {
    width: 100%;
    max-width: 260px;
    height: 6px;
    background: var(--surface-2);
    border-radius: 10px;
    overflow: hidden;
    margin: 16px auto 8px;
    border: 1px solid var(--border);
  }
  .loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    width: 0%;
    border-radius: 10px;
  }
  .loading-status-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 12px;
    height: 20px;
    letter-spacing: -0.01em;
  }

  /* ---------- Matched Contractors Grid ---------- */
  .business-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 16px;
    color: var(--text);
    text-align: left;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 8px;
  }
  .business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  .business-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    transition: all 0.2s ease;
  }
  .business-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.05);
    transform: translateY(-1px);
  }
  .business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .business-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
  }
  .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #D1FAE5;
    color: #065F46;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .business-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
  }
  .business-stars {
    color: #F59E0B;
  }
  .business-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
  }
  .business-cta-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
  .business-cta-row .btn {
    flex: 1;
    font-size: 12.5px;
    padding: 8px 12px;
    min-height: 38px;
  }

  /* ---------- Service Area Card Grid ---------- */
  .service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
    text-align: left;
  }
  .area-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
  }
  .area-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }
  .area-card-icon {
    color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .area-card-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .show-more-container {
    margin-top: 24px;
    text-align: center;
  }

  /* ---------- Advisor Trust Modal ---------- */
  .advisor-overlay{
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease, visibility 0.3s ease;
  }
  .advisor-overlay.open{
    opacity:1;
    visibility:visible;
  }
  .advisor-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:36px 28px 30px;
    text-align:center;
    position:relative;
    max-width:400px;
    width:100%;
    transform:translateY(16px) scale(0.97);
    transition:transform 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow:0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  }
  .advisor-overlay.open .advisor-card{
    transform:translateY(0) scale(1);
  }
  .advisor-close{
    position:absolute;
    top:12px;right:12px;
    width:30px;height:30px;
    border:none;
    background:#f3f4f6;
    border-radius:50%;
    color:#6b7280;
    font-size:17px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.2s ease;
    z-index:2;
  }
  .advisor-close:hover{
    background:#e5e7eb;
    color:#1f2937;
  }
  .advisor-shield{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
  }
  .advisor-shield-check{
    position:absolute;
    bottom:-2px;
    right:-6px;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  }
  .advisor-heading{
    font-size:19px;
    font-weight:700;
    color:#1f2937;
    line-height:1.4;
    margin:0 0 22px;
  }
  .advisor-heading span{
    color:#0d9488;
  }
  .advisor-avatars{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:10px;
  }
  .advisor-avatar{
    width:56px;
    height:56px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:20px;
    color:#fff;
    border:3px solid #fff;
    position:relative;
    box-shadow:0 2px 8px rgba(0,0,0,0.12);
    transition:transform 0.25s ease;
  }
  .advisor-avatar:not(:first-child){
    margin-left:-12px;
  }
  .advisor-avatar:hover{
    transform:translateY(-3px) scale(1.08);
    z-index:2;
  }
  .advisor-online{
    position:absolute;
    bottom:1px;
    right:1px;
    width:13px;
    height:13px;
    background:#22c55e;
    border-radius:50%;
    border:2.5px solid #fff;
    animation:advisorPulse 2s ease-in-out infinite;
  }
  @keyframes advisorPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.45);}
    50%{box-shadow:0 0 0 6px rgba(34,197,94,0);}
  }
}
  .business-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
  }
  .business-stars {
    color: #F59E0B;
  }
  .business-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
  }
  .business-cta-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
  .business-cta-row .btn {
    flex: 1;
    font-size: 12.5px;
    padding: 8px 12px;
    min-height: 38px;
  }

  /* ---------- Service Area Card Grid ---------- */
  .service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
    text-align: left;
  }
  .area-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
  }
  .area-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }
  .area-card-icon {
    color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .area-card-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .show-more-container {
    margin-top: 24px;
    text-align: center;
  }

  /* ---------- Advisor Trust Modal ---------- */
  .advisor-overlay{
    position:fixed;
    top:0;left:0;
    width:100%;height:100%;
    background:rgba(0,0,0,0.5);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.3s ease, visibility 0.3s ease;
  }
  .advisor-overlay.open{
    opacity:1;
    visibility:visible;
  }
  .advisor-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:36px 28px 30px;
    text-align:center;
    position:relative;
    max-width:400px;
    width:100%;
    transform:translateY(16px) scale(0.97);
    transition:transform 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow:0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  }
  .advisor-overlay.open .advisor-card{
    transform:translateY(0) scale(1);
  }
  .advisor-close{
    position:absolute;
    top:12px;right:12px;
    width:30px;height:30px;
    border:none;
    background:#f3f4f6;
    border-radius:50%;
    color:#6b7280;
    font-size:17px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.2s ease;
    z-index:2;
  }
  .advisor-close:hover{
    background:#e5e7eb;
    color:#1f2937;
  }
  .advisor-shield{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
  }
  .advisor-shield-check{
    position:absolute;
    bottom:-2px;
    right:-6px;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  }
  .advisor-heading{
    font-size:19px;
    font-weight:700;
    color:#1f2937;
    line-height:1.4;
    margin:0 0 22px;
  }
  .advisor-heading span{
    color:#0d9488;
  }
  .advisor-avatars{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:10px;
  }
  .advisor-avatar{
    width:56px;
    height:56px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:20px;
    color:#fff;
    border:3px solid #fff;
    position:relative;
    box-shadow:0 2px 8px rgba(0,0,0,0.12);
    transition:transform 0.25s ease;
  }
  .advisor-avatar:not(:first-child){
    margin-left:-12px;
  }
  .advisor-avatar:hover{
    transform:translateY(-3px) scale(1.08);
    z-index:2;
  }
  .advisor-online{
    position:absolute;
    bottom:1px;
    right:1px;
    width:13px;
    height:13px;
    background:#22c55e;
    border-radius:50%;
    border:2.5px solid #fff;
    animation:advisorPulse 2s ease-in-out infinite;
  }
  @keyframes advisorPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.45);}
    50%{box-shadow:0 0 0 6px rgba(34,197,94,0);}
  }
  .advisor-names{
    display:flex;
    justify-content:center;
    gap:28px;
    margin-bottom:26px;
    font-size:12.5px;
    color:var(--text-muted);
  }
  .advisor-call-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:var(--accent);
    color:#fff;
    font-size:15px;
    font-weight:600;
    border:none;
    border-radius:var(--radius);
    padding:12px 24px;
    cursor:pointer;
    text-decoration:none;
    transition:background-color 0.15s ease;
    box-shadow:none;
    width:100%;
    max-width:300px;
  }
  .advisor-call-btn:hover{
    background:var(--accent-hover);
    box-shadow:none;
  }
  .advisor-call-btn:active{
    transform:translateY(1px);
  }
  .advisor-divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:18px 0;
  }
  .advisor-divider::before,
  .advisor-divider::after{
    content:'';
    flex:1;
    height:1px;
    background:#e5e7eb;
  }
  .advisor-divider span{
    font-size:11.5px;
    color:#9ca3af;
    text-transform:uppercase;
    letter-spacing:0.06em;
  }
  .advisor-skip{
    font-size:14px;
    color:var(--accent-cool);
    cursor:pointer;
    transition:all 0.2s ease;
    font-weight:500;
    padding:8px 0;
  }
  .advisor-skip:hover{
    color:var(--accent-cool-hover);
    text-decoration:underline;
  }

  /* Contact form reveal animation */
  .contact-form-wrap{
    animation:contactReveal 0.4s ease-out;
  }
  @keyframes contactReveal{
    from{opacity:0;transform:translateY(14px);}
    to{opacity:1;transform:translateY(0);}
  }

/* =========================================================
   Secondary Pages Styling (About, Contact, Privacy)
   ========================================================= */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.hero-heading {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.advisor-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.advisor-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--accent);
}
.advisor-name {
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}
.advisor-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
}
.btn-submit {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: var(--accent-hover);
}

/* ---------- Accordion / FAQ Section ---------- */
.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.accordion-item {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-heading {
  margin: 0 0 10px 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  line-height: 1.4;
}

.accordion-title {
  width: 100%;
  display: block;
  padding: 0;
  background: transparent !important;
  border: none;
  cursor: default !important;
  pointer-events: none !important;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.accordion-icon {
  display: none !important;
}

.accordion-content {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  padding: 0;
  background: transparent;
  color: var(--text-muted, #475569);
  font-size: 15px;
  line-height: 1.65;
}

.accordion-content p {
  margin: 0;
  color: inherit;
}

/* ========== Step 6: Full-Width Contractor Directory ========== */

/* Header with back button and badge */
.cf-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.cf-back-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.cf-back-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--text-muted);
}
.cf-live-badge, .cf-custom-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cf-live-badge {
  background: #dcfce7;
  color: #166534;
}
.cf-custom-badge {
  background: #dbeafe;
  color: #1e40af;
}

/* Results title and subtitle */
.cf-results-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cf-results-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Contractor card grid — full width, 2 cols on desktop, 1 on mobile */
.step[data-step="6"] .business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}
.step[data-step="6"] .business-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.step[data-step="6"] .business-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.step[data-step="6"] .business-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.step[data-step="6"] .business-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.step[data-step="6"] .verified-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.step[data-step="6"] .business-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.step[data-step="6"] .business-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}
.step[data-step="6"] .business-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.step[data-step="6"] .business-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.step[data-step="6"] .business-cta-row .btn {
  font-size: 12.5px;
  padding: 8px 16px;
  flex: 1;
  text-align: center;
  min-width: 130px;
}

/* ========== Unserved ZIP Lead Capture Form ========== */
.unserved-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.unserved-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}
.unserved-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}
.unserved-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.unserved-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.unserved-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.unserved-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.unserved-field input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.unserved-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 98, 43, 0.15);
}
.unserved-field input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: default;
}
.unserved-summary {
  display: flex;
  gap: 24px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
}
.unserved-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.unserved-submit {
  font-size: 15px !important;
  padding: 13px 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  width: 100%;
}
.unserved-success {
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .unserved-form-row {
    grid-template-columns: 1fr;
  }
  .unserved-card {
    padding: 20px 16px;
  }
  .unserved-summary {
    flex-direction: column;
    gap: 8px;
  }
  .step[data-step="6"] .business-grid {
    grid-template-columns: 1fr;
  }
  .cf-step-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Technical & Tabular Numeric Styling Pass
   ========================================================= */
.cost-table td,
.cost-val,
.result-range,
.result-typical strong,
.b-row .b-val,
.addon-cost,
.sub-calc-result,
.top-progress-text,
.top-circle,
.side-circ,
.num-input input,
.sub-input-group input,
.savings-item .num,
.zip-col,
.unserved-summary strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}



/* ════════════════════════════════════════
   STEP 2 — INTERACTIVE ZONE + R-VALUE UI
   ════════════════════════════════════════ */

/* ── Restored: rval-visual bars (base) ── */
.rval-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 52px;
  margin-bottom: 12px;
}
.rval-visual .bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.25;
  transform-origin: bottom;
  animation: barGrow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rval-visual .bar:nth-child(1) { opacity: 0.30; animation-delay: 0.04s; }
.rval-visual .bar:nth-child(2) { opacity: 0.60; animation-delay: 0.12s; }
.rval-visual .bar:nth-child(3) { opacity: 1.00; animation-delay: 0.20s; }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* diagram-wrap (restored) */
.diagram-wrap { margin: 16px 0; }
.diagram-wrap .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.diagram-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width: 560px) { .diagram-row { grid-template-columns: 1fr; } }

/* ── ZIP input — full-width pill with icon ── */
.zip-lookup-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.zip-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.zip-lookup-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 50px 13px 44px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.zip-lookup-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 98, 43, 0.10);
}
/* Location pin icon — scoped to .zip-input-row */
.zip-input-row::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}
.zip-input-row:focus-within::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23D9622B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
}

/* Circular ZIP detect button inside pill */
.zip-detect-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(217, 98, 43, 0.25);
  z-index: 2;
}
.zip-detect-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 3px 12px rgba(217, 98, 43, 0.35);
}
.zip-detect-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.zip-detect-btn.is-loading {
  background: var(--accent);
  pointer-events: none;
}
.zip-detect-btn.is-success {
  background: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.zip-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.zip-spinner {
  width: 18px;
  height: 18px;
  animation: spinLoader 0.75s linear infinite;
}
@keyframes spinLoader {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── ZIP Status — sits below the input row ── */
.zip-status {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-block;
  align-self: flex-start;
}
.zip-status:empty { display: none; }
.zip-status--loading {
  color: #92400e;
  background: #fef3c7;
  animation: pulse 1s ease-in-out infinite;
}
.zip-status--success {
  color: #065f46;
  background: #d1fae5;
}
.zip-status--error {
  color: #991b1b;
  background: #fee2e2;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}


/* ── Zone Detected Card ── */
.zone-detected-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 4px;
  animation: cardSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  border: 1.5px solid transparent;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Zone color themes */
.zone-detected-card.zone-warm {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}
.zone-detected-card.zone-hot {
  background: linear-gradient(135deg, #fff7ed 0%, #fee2d5 100%);
  border-color: #fca68a;
}
.zone-detected-card.zone-mild {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.zone-detected-card.zone-cool {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}
.zone-detected-card.zone-cold {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: #c7d2fe;
}

.zone-num-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.zone-warm .zone-num-badge  { background: linear-gradient(135deg, #fb923c, #D9622B); }
.zone-hot .zone-num-badge   { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.zone-mild .zone-num-badge  { background: linear-gradient(135deg, #34d399, #16a34a); }
.zone-cool .zone-num-badge  { background: linear-gradient(135deg, #60a5fa, #3A5A6B); }
.zone-cold .zone-num-badge  { background: linear-gradient(135deg, #818cf8, #4338ca); }

.zone-card-info { flex: 1; min-width: 0; }
.zone-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.zone-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.zone-card-code {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Zone Select Dropdown ── */
.zone-select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.zone-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 98, 43, 0.10);
}

/* ── Zone Override Hint ── */
.zone-override-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 4px;
}

/* ── R-value Options — premium cards (Step 2 only) ── */
#rvalueField { animation: cardSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

#rvalueOptions.option-grid {
  gap: 12px;
}
#rvalueOptions .opt {
  padding: 20px 16px 16px;
  border-radius: 10px;
  border-width: 1.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
}
#rvalueOptions .opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
#rvalueOptions .opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217, 98, 43, 0.15);
}
#rvalueOptions .opt .opt-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}
#rvalueOptions .opt.selected .opt-title {
  color: var(--accent);
}
#rvalueOptions .opt .opt-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Badge for "code minimum" label */
#rvalueOptions .opt .rval-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--surface-2);
  color: var(--text-faint);
}
#rvalueOptions .opt.selected .rval-badge {
  background: rgba(217,98,43,0.12);
  color: var(--accent);
}

/* Zone field entrance */
#zoneField {
  animation: cardSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}


/* ==========================================================================
   Modern Premium Site Footer (Global Unified Styling)
   ========================================================================== */
footer.site-footer,
.site-footer {
  background: #0F172A !important;
  color: #94A3B8 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  border-top: 3px solid var(--accent, #D9622B);
  padding: 64px 0 0 !important;
  margin-top: 80px;
  text-align: left;
}

footer.site-footer .site-footer-inner,
.site-footer .site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

footer.site-footer .footer-grid,
.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 48px !important;
  padding-bottom: 48px !important;
  border-bottom: 1px solid #1E293B !important;
  margin-bottom: 0 !important;
}

footer.site-footer .footer-brand,
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

footer.site-footer .footer-logo,
.site-footer .footer-logo {
  height: 44px !important;
  width: auto !important;
  display: inline-block !important;
  background: #FFFFFF !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

footer.site-footer a:hover .footer-logo,
.site-footer a:hover .footer-logo {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

footer.site-footer .footer-tagline,
.site-footer .footer-tagline {
  color: #94A3B8 !important;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
}

footer.site-footer .footer-col-title,
.site-footer .footer-col-title {
  color: #F8FAFC !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px 0;
}

footer.site-footer .footer-links,
.site-footer .footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

footer.site-footer .footer-links li,
.site-footer .footer-links li {
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer.site-footer .footer-links a,
.site-footer .footer-links a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer.site-footer .footer-links a:hover,
.site-footer .footer-links a:hover {
  color: #F8FAFC !important;
  transform: translateX(4px);
}

footer.site-footer .footer-links a svg,
.site-footer .footer-links a svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--accent, #D9622B) !important;
}

footer.site-footer .footer-links a:hover svg,
.site-footer .footer-links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

footer.site-footer .footer-call-hours,
.site-footer .footer-call-hours {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #94A3B8 !important;
  padding-left: 18px;
}

.advisor-call-hours {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted, #64748B);
  text-align: center;
}


footer.site-footer .footer-bottom,
.site-footer .footer-bottom {
  padding: 24px 0 !important;
  border-top: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  font-size: 12.5px !important;
  color: #64748B !important;
}

footer.site-footer .footer-bottom a,
.site-footer .footer-bottom a {
  color: #64748B !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:hover {
  color: #94A3B8 !important;
}

footer.site-footer .footer-legal-links,
.site-footer .footer-legal-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  font-size: 12.5px !important;
  color: #64748B !important;
}

footer.site-footer .footer-legal-links span,
.site-footer .footer-legal-links span {
  opacity: 0.45;
  font-size: 11px;
}




.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.site-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1E293B;
  color: #94A3B8;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.site-footer .footer-social a:hover {
  background: var(--accent, #D9622B);
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  footer.site-footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }
  footer.site-footer .footer-brand,
  .site-footer .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  footer.site-footer,
  .site-footer {
    padding-top: 48px !important;
  }
  footer.site-footer .footer-grid,
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer.site-footer .footer-brand,
  .site-footer .footer-brand {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Blog Listing Page Styles
   ========================================================================== */
.blog-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #F8FAFC;
  padding: 60px 20px 48px;
  text-align: center;
  border-bottom: 3px solid var(--accent, #D9622B);
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.blog-grid-section {
  max-width: 1120px;
  margin: 48px auto;
  padding: 0 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--accent, #D9622B);
}

.blog-card-badge {
  display: inline-block;
  background: rgba(217, 98, 43, 0.1);
  color: var(--accent, #D9622B);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 14px;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #12171C);
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--accent, #D9622B);
}

.blog-card-excerpt {
  color: var(--text-muted, #334155);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  font-size: 13px;
  color: var(--text-faint, #475569);
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent, #D9622B);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-cta {
  transform: translateX(4px);
}


footer.site-footer .back-to-top,
.site-footer .back-to-top,
.back-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #1E293B !important;
  color: #F8FAFC !important;
  border: 1.5px solid #334155 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

footer.site-footer .back-to-top:hover,
.site-footer .back-to-top:hover,
.back-to-top:hover {
  background: var(--accent, #D9622B) !important;
  color: #FFFFFF !important;
  border-color: var(--accent, #D9622B) !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(217, 98, 43, 0.45) !important;
}

footer.site-footer .back-to-top svg,
.site-footer .back-to-top svg,
.back-to-top svg {
  width: 18px !important;
  height: 18px !important;
}
