/* ============================================================
   ROOFING LANDING PAGE — HVAC Reference Design System
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-lighter: #eff6ff;
  --accent-green: #16a34a;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --bg-page: #f6f8ff;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.08);
  --shadow-3d: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.04);
  --shadow-3d-hover: 0 4px 8px rgba(0,0,0,0.06), 0 12px 24px rgba(0,0,0,0.08), 0 28px 50px rgba(0,0,0,0.06);
  --shadow-inset-top: inset 0 2px 4px rgba(0,0,0,0.02);
  --shadow-glow-blue: 0 0 20px rgba(37,99,235,0.15), 0 0 40px rgba(37,99,235,0.05);
  --shadow-glow-green: 0 0 20px rgba(22,163,74,0.12), 0 0 40px rgba(22,163,74,0.04);
  --radius: 18px;
  --border-subtle: rgba(15,23,42,.12);
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.nav-wrapper {
    margin-left: auto;
    position: relative;
}

.header-content .nav {
    margin-left: auto;
}

@media (max-width: 768px) {
    .header-content .nav {
        margin-left: 0;
    }
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger-line {
    background-color: var(--primary-dark);
}

.nav-toggle-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Brand logo circle (header) */
.brand-logo-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    flex-shrink: 0;
}

.brand-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Seasonal Badge (pill) */
.seasonal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent-green) 0%, #15803d 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(22,163,74,0.25);
    animation: badge-pulse 3s ease-in-out infinite;
}

/* Navigation -- Desktop */
@media (min-width: 769px) {
    .nav {
        display: flex;
        gap: 30px;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.search-icon {
    display: none;
}

/* ============================================================
   ROOFING HERO BANNER
   ============================================================ */
.roofing-hero-banner {
    position: relative;
    min-height: 500px;
    background-image: url('roofing-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.roofing-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72);
    z-index: 1;
}

.roofing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 0 20px 0;
}

.roofing-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

.roofing-hero-badges .separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.roofing-hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}

.roofing-hero-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.roofing-hero-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.roofing-hero-cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.roofing-hero-cta-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .roofing-hero-banner {
        min-height: 400px;
    }
    .roofing-hero-overlay {
        width: 100%;
        right: 0;
    }
    .roofing-hero-content {
        padding: 20px 0 15px 0;
        max-width: 100%;
    }
    .roofing-hero-badges {
        font-size: 10px;
        gap: 8px;
        margin-bottom: 12px;
    }
    .roofing-hero-title {
        font-size: 32px;
        margin-bottom: 8px;
        white-space: normal;
    }
    .roofing-hero-subtitle {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .roofing-hero-cta-button {
        padding: 16px 32px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .roofing-hero-banner {
        min-height: 350px;
    }
    .roofing-hero-content {
        padding: 20px 0 15px 0;
    }
    .roofing-hero-badges {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }
    .roofing-hero-badges .separator {
        display: inline;
    }
    .roofing-hero-title {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 6px;
        white-space: normal;
    }
    .roofing-hero-subtitle {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    .roofing-hero-cta-button {
        padding: 14px 28px;
        font-size: 13px;
    }
}

/* ============================================================
   HERO SECTION (Quiz-integrated)
   ============================================================ */

/* --- Hero new elements --- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.hero-eyebrow svg { flex-shrink: 0; }

.hero-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-location {
    background: linear-gradient(135deg, #1d4ed8 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.hero-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-body);
}

.hero-trust-chip svg { flex-shrink: 0; }

/* Glass steps floating over slideshow */
.hero-glass-steps {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.hero-glass-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 10px;
    background: rgba(30,58,138,0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.hero-glass-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.5);
}

@media (max-width: 600px) {
    .hero-glass-steps { gap: 4px; }
    .hero-glass-step { padding: 8px 6px; font-size: 10px; gap: 5px; }
    .hero-glass-num { width: 18px; height: 18px; font-size: 9px; }
    .hero-trust-row { gap: 10px; margin-top: 14px; padding-top: 12px; }
    .hero-trust-chip { font-size: 11.5px; }
}

@media (max-width: 400px) {
    .hero-glass-step { padding: 7px 8px; font-size: 9px; gap: 4px; }
    .hero-glass-num { width: 16px; height: 16px; font-size: 8px; }
}

.hero {
    padding: 16px 0;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: hidden;
    margin-bottom: 0;
    background: var(--bg-page);
}

.hero.hero-roofing {
    background: var(--bg-page);
    background-image: none;
}

.hero-roofing .hero-overlay {
    display: none;
}

.hero-roofing.hero-quiz-started {
    background: var(--bg-page);
    background-image: none;
    min-height: calc(100vh - 100px);
    padding: 16px 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-roofing.hero-quiz-started .hero-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-roofing.hero-quiz-started .hero-overlay {
    display: none;
}

.hero-roofing.hero-quiz-started .hero-grid {
    display: none;
}

.hero-roofing.hero-quiz-started .cityscape-illustration {
    display: none;
}

.hero-roofing:not(.hero-quiz-started) .cityscape-illustration {
    display: none;
}

.hero-roofing:not(.hero-quiz-started) .hero-container {
    padding-bottom: 0;
}

/* Quiz content inside a bordered card */
.hero-roofing.hero-quiz-started .hero-quiz-content {
    border: 1px solid rgba(15,23,42,.12);
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 32px 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.hero-roofing.hero-quiz-started .quiz-inner {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

.hero-roofing.hero-quiz-started .question-header {
    max-width: 100%;
    width: 100%;
}

.hero-roofing.hero-quiz-started .answers-container {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.hero-roofing.hero-quiz-started .contact-info-container {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.hero-roofing.hero-quiz-started .contact-input {
    width: 100% !important;
    max-width: 100% !important;
}

.hero-roofing.hero-quiz-started .answer-button {
    width: 100% !important;
    max-width: 100% !important;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero card wrapper */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: auto;
    padding: 0;
    gap: 0;
    border: none;
    border-radius: 20px;
    background: var(--bg-white);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.04);
    overflow: hidden;
}

.hero-left {
    padding: 36px 32px 30px;
    max-width: none;
    display: flex;
    flex-direction: column;
}

.hero-headline {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-roofing .hero-description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 50ch;
    font-weight: 500;
    text-align: left;
}

/* ZIP form — premium treatment */
.hero-roofing .hero-zip-form {
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 5px;
    display: flex !important;
    gap: 0;
    max-width: 440px;
    margin-top: 10px;
}

.hero-roofing .hero-zip-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-right: none !important;
    background: transparent !important;
    padding: 14px 16px;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.hero-roofing .hero-zip-input::placeholder {
    color: var(--text-muted);
    font-weight: 550;
}

.hero-roofing .hero-zip-input:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

.hero-roofing .hero-zip-btn {
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 0 #1e3a8a, 0 4px 12px rgba(37,99,235,0.25);
}

.hero-roofing .hero-zip-btn:hover {
    box-shadow: 0 3px 0 #1e3a8a, 0 6px 18px rgba(37,99,235,0.35);
}

.hero-roofing .hero-zip-btn:active {
    box-shadow: 0 1px 0 #1e3a8a, 0 2px 4px rgba(37,99,235,0.2);
    transform: translateY(2px);
}

/* Right column */
.hero-right {
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    border-left: none;
}

.hero-right .hero-slideshow {
    border-radius: 0;
    position: relative;
    z-index: 0;
    flex: 1;
    aspect-ratio: auto;
    height: 100%;
}

.hero-right .hero-slideshow .hero-slide {
    border-radius: 0;
}

.hero-right .hero-glass-steps {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    margin-top: 0;
    padding: 0;
}

.hero-cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.hero-cta-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
}

.hero-service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px 20px;
    width: 100%;
}

.hero-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.hero-card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-service-card .quiz-intro-text {
    font-size: 14px;
    color: var(--text-dark);
    margin: 16px 0 0 0;
    line-height: 1.5;
}

.trust-strip {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(145deg, rgba(10,102,204,0.35) 0%, rgba(10,102,204,0.28) 100%);
    backdrop-filter: blur(16px) saturate(2);
    -webkit-backdrop-filter: blur(16px) saturate(2);
    border: 1px solid rgba(10,102,204,0.4);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 2px 8px rgba(10,102,204,0.15);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

@media (max-width: 600px) {
    .trust-strip {
        grid-template-columns: 1fr;
    }
}

.trust-strip-item {
    font-size: 13px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

@media (min-width: 601px) {
    .trust-strip-item.trust-strip-item-full {
        grid-column: 1 / -1;
        justify-content: center;
        text-align: center;
    }
}

.hero-card-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-card-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.25s var(--transition-bounce), background 0.2s ease, box-shadow 0.3s var(--transition-smooth);
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(37,99,235,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

.hero-card-option:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 12px rgba(37,99,235,0.12), 0 12px 24px rgba(0,0,0,0.06);
    background: linear-gradient(var(--primary-light), var(--primary-light)) padding-box,
                linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) border-box;
}

.hero-card-option-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.hero-card-option-icon-roof {
    color: var(--primary);
}

.hero-card-option:hover .hero-card-option-icon {
    color: var(--primary);
}

.hero-card-option-label {
    flex: 1;
}

.hero-card-option-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

.hero-card-option:hover .hero-card-option-arrow {
    color: var(--primary);
}

.hero-card-security {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 28px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card-security-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-card-security-icon {
    flex-shrink: 0;
    color: var(--accent-green);
    stroke: var(--accent-green);
}

.hero-quiz-content {
    margin-top: 0;
    padding-top: 12px;
}

.start-screen-content-below {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.start-screen-content.start-screen-content-below {
    max-width: 100%;
    width: 100%;
}

.hero-roofing .start-screen-content-below .benefits-list {
    margin-left: auto;
    margin-right: auto;
}

.hero-roofing .quiz-intro-text {
    color: rgba(0, 0, 0, 0.85);
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
}

.hero-roofing .start-note {
    color: var(--text-muted);
    display: none;
}

.hero-roofing.hero-quiz-started .quiz-intro-text {
    color: var(--text-body);
}

.hero-roofing.hero-quiz-started .start-note {
    color: var(--text-muted);
}

/* ZIP Input Group */
.zip-input-group {
    display: flex;
    gap: 0;
    max-width: 440px;
    width: 100%;
}

.zip-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
    background: var(--bg-white);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.zip-input:focus {
    outline: none;
    border-color: var(--primary);
}

.zip-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.zip-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
}

.zip-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

#zip-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* Hero Benefit Checkmarks */
.hero-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.hero-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
    font-weight: 500;
}

.hero-benefit-check {
    color: var(--primary);
    flex-shrink: 0;
}

/* Hero checkmark items */
.hero-checkmarks {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-check-item {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--text-body);
    line-height: 1.4;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.hero-check-icon {
    flex-shrink: 0;
    display: inline-flex;
    line-height: 1;
    margin-top: 1px;
}

/* Hero image */
.hero-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15,23,42,.06);
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Hero slideshow — fade in/out */
.hero-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide--active {
    opacity: 1;
}

/* How It Works box — dashed blue border with gradient bg, same width as image */
.hero-how-it-works-box {
    border: 1px dashed rgba(10,102,204,.35);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(10,102,204,0.30) 0%, rgba(10,102,204,0.22) 50%, rgba(10,102,204,0.26) 100%);
    backdrop-filter: blur(14px) saturate(2.2);
    -webkit-backdrop-filter: blur(14px) saturate(2.2);
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), 0 2px 8px rgba(10,102,204,0.12);
    transition: border-color 0.3s ease;
}

.hero-how-it-works-box:hover {
    border-color: rgba(37,99,235,.5);
}

.hero-how-it-works-title {
    font-weight: 950;
    font-size: 15.5px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.hero-how-it-works-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13.5px;
}

.hero-how-it-works-step:last-child {
    margin-bottom: 0;
}

/* Step label pill badge */
.hero-step-label {
    flex-shrink: 0;
    font-weight: 800;
    color: var(--primary);
    background: #dbeafe;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-step-text {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.4;
    font-weight: 600;
}

/* Mobile badges */
.hero-mobile-badges {
    display: none;
}

@media (max-width: 900px) {
    .hero-mobile-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px 0 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    .hero-roofing.hero-quiz-started .hero-mobile-badges {
        display: none !important;
    }
    body.quiz-active .hero-mobile-badges {
        display: none !important;
    }
    .hero[style*="display: none"] .hero-mobile-badges,
    .hero-roofing[style*="display: none"] .hero-mobile-badges {
        display: none !important;
    }
    #start-screen[style*="display: none"] ~ * .hero-mobile-badges {
        display: none !important;
    }
    .hero-mobile-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid rgba(37, 99, 235, 0.3);
        border-radius: 10px;
        color: var(--primary);
        font-size: 13px;
        font-weight: 600;
        width: 100%;
    }
    .hero-mobile-badge .hero-cta-icon {
        flex-shrink: 0;
        color: var(--primary);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .hero-right {
        height: 240px;
        border-top: none;
        order: 2;
    }
    .hero-left {
        padding: 24px 20px 22px;
        order: 1;
        align-items: center;
        text-align: center;
    }
    .hero-roofing .hero-description {
        text-align: center;
        max-width: none;
    }
    .hero-trust-row {
        justify-content: center;
    }
    .hero-roofing .hero-zip-form {
        max-width: 100%;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        background: none;
        border: none;
        padding: 0;
        border-radius: 0;
        width: 100%;
    }
    .hero-roofing .hero-zip-input {
        background: var(--bg-page) !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 14px !important;
        padding: 18px 18px;
        width: 100%;
        font-size: 16px;
    }
    .hero-roofing .hero-zip-btn {
        width: 100%;
        border-radius: 14px;
        padding: 18px 20px;
        font-size: 16px;
    }
    .hero-headline {
        font-size: 24px;
    }
    .hero-roofing .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 26px;
    }
    .hero-cta-tag {
        padding: 10px 16px;
        font-size: 14px;
    }
    .hero-service-card {
        padding: 20px 18px 16px;
        border-radius: var(--radius-lg);
    }
    .hero-card-title {
        font-size: 20px;
    }
    .hero-card-option {
        padding: 14px 16px;
        font-size: 16px;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: visible;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-body);
    text-align: center;
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.insurance-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.insurance-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.insurance-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.insurance-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.card-icon {
    width: 80%;
    height: 80%;
    max-width: 136px;
    max-height: 136px;
    object-fit: contain;
    margin-bottom: 10px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.card-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-description {
    text-align: center;
    color: var(--text-body);
    font-size: 16px;
}

.cityscape-illustration {
    height: 150px;
    width: 100vw;
    max-width: 100vw;
    position: absolute;
    left: 50%;
    margin-left: -50vw;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,102,204,0.28) 100%);
    background-image:
        linear-gradient(to bottom, transparent 0%, rgba(10,102,204,0.28) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150'%3E%3Cpath d='M0,150 L50,120 L100,130 L150,100 L200,110 L250,90 L300,100 L350,80 L400,90 L450,70 L500,80 L550,60 L600,70 L650,50 L700,60 L750,40 L800,50 L850,30 L900,40 L950,20 L1000,30 L1050,10 L1100,20 L1150,0 L1200,10 L1200,150 Z' fill='%23dbeafe'/%3E%3Crect x='100' y='80' width='30' height='50' fill='%23bfdbfe'/%3E%3Crect x='140' y='70' width='30' height='60' fill='%23bfdbfe'/%3E%3Crect x='300' y='60' width='40' height='50' fill='%23bfdbfe'/%3E%3Crect x='350' y='50' width='30' height='60' fill='%23bfdbfe'/%3E%3Crect x='500' y='50' width='35' height='50' fill='%23bfdbfe'/%3E%3Crect x='550' y='40' width='30' height='60' fill='%23bfdbfe'/%3E%3Ccircle cx='200' cy='100' r='15' fill='%23bfdbfe'/%3E%3Ccircle cx='700' cy='50' r='12' fill='%23bfdbfe'/%3E%3Crect x='800' y='30' width='20' height='30' fill='%23bfdbfe'/%3E%3Crect x='830' y='25' width='20' height='35' fill='%23bfdbfe'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ============================================================
   FEATURED ON
   ============================================================ */
.featured-on {
    padding: 40px 0;
    background-color: var(--bg-page);
    text-align: center;
}

.featured-label {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
}

/* ============================================================
   SMART WAYS
   ============================================================ */
.smart-ways {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.smart-ways-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.smart-ways-text {
    max-width: 600px;
}

/* ============================================================
   SECTION TITLE & DIVIDER (Global)
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 950;
    color: var(--text-dark);
    margin: 0 0 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Section card — bordered wrapper for title + subtitle + content */
.section-card {
    border: 1px solid rgba(15,23,42,.07);
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-3d);
    padding: 18px;
    transition: box-shadow 0.4s var(--transition-smooth);
}

.section-card:hover {
    box-shadow: var(--shadow-3d-hover);
}

.section-description {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary-light);
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-savings {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 5px;
}

.testimonial-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

/* Section Divider */
.section-divider {
    width: 60px;
    height: 4px;
    margin: 12px auto 20px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-green) 100%);
    position: relative;
    overflow: visible;
    background-color: transparent;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.section-divider::before {
    content: none;
}

.section-divider::after {
    content: none;
}

/* ============================================================
   BENEFITS ROW
   ============================================================ */
.benefits {
    padding: 24px 0;
    background: var(--bg-white);
    margin-top: 0;
}

.benefits-header {
    text-align: center;
    margin-bottom: 25px;
}

.benefits-subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.benefits-grid {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.benefit-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    margin-bottom: 0;
    background: var(--primary-light);
}

.benefit-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.benefit-description {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.4;
}

/* ============================================================
   BEST COMPANIES
   ============================================================ */
.best-companies {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.best-companies-content {
    display: flex;
    gap: 40px;
    align-items: start;
}

.award-graphic {
    flex-shrink: 0;
}

.award-icon {
    font-size: 80px;
}

.best-companies-text {
    flex: 1;
}

.insurance-type-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.type-icon-item {
    text-align: center;
}

.type-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.type-label {
    font-size: 14px;
    color: var(--text-body);
}

/* ============================================================
   CALCULATORS
   ============================================================ */
.calculators {
    padding: 60px 0;
    background-color: var(--bg-page);
}

.calculators-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 30px;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.tool-link:hover {
    color: var(--primary-dark);
}

.tool-link.view-more {
    margin-top: 10px;
    font-weight: 700;
}

.featured-calculator {
    display: flex;
    justify-content: center;
}

.calculator-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calculator-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.calculator-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
}

.calculator-card .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.calculator-card .btn-primary:hover {
    background: #f0f4ff;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   INFLATION INDEX
   ============================================================ */
.inflation-index {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.inflation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.inflation-chart {
    background: var(--bg-page);
    padding: 30px;
    border-radius: var(--radius-sm);
}

.chart-container {
    position: relative;
}

.chart-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.chart-lines {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    height: 200px;
    margin-bottom: 20px;
    justify-content: space-around;
}

.chart-line {
    width: 60px;
    background: linear-gradient(to top, var(--primary), #60a5fa);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.chart-line.motor {
    background: linear-gradient(to top, var(--primary), #60a5fa);
}

.chart-line.tenants {
    background: linear-gradient(to top, var(--accent-green), #4ade80);
}

.chart-line.health {
    background: linear-gradient(to top, #dc2626, #f87171);
}

.chart-labels {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.chart-months {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-body);
    font-weight: 600;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ============================================================
   RESEARCH / ARTICLES
   ============================================================ */
.research {
    padding: 60px 0;
    background-color: var(--bg-page);
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

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

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    padding: 15px 15px 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 15px 10px;
    line-height: 1.4;
}

.article-author {
    font-size: 14px;
    color: var(--text-body);
    padding: 0 15px 15px;
}

/* ============================================================
   TRUST
   ============================================================ */
.trust {
    padding: 40px 0;
    background: var(--bg-page);
    margin-top: 0;
}

.trust-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.trust-subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.trust-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.trust-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.trust-card-description {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    padding: 0 0 30px 0;
    background: var(--bg-white);
    margin-top: 0;
}

.testimonials-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.testimonials-subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-header-info {
    flex: 1;
}

.testimonial-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.testimonial-savings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.testimonial-savings {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.testimonial-rating {
    font-size: 16px;
    line-height: 1;
    color: var(--accent-green);
    display: inline-block;
    letter-spacing: 2px;
    margin-top: -10px;
}

.testimonial-date {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1;
    margin-top: -10px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    flex: 1;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.testimonial-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================================
   GALLERY -- Before & After
   ============================================================ */
.gallery-section {
    padding: 0 0 30px 0;
    background: var(--bg-page);
    margin-top: 0;
}

.gallery-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.gallery-subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 30px;
}

.gallery-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

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

.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.before-after-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.before-label {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.after-label {
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
}

.gallery-item-info {
    padding: 24px;
}

.gallery-item-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.gallery-item-description {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   RELATED IMAGES
   ============================================================ */
.related-images-section {
    padding: 0 0 30px 0;
    background: var(--bg-white);
    margin-top: 0;
}

.related-images-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.related-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.related-image-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-image-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-image-item:hover .related-img {
    transform: scale(1.08);
}

.related-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.related-image-item:hover .related-image-overlay {
    transform: translateY(0);
}

.related-image-text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 0;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }
    .before-after-container {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item-info {
        padding: 20px;
    }
    .gallery-item-title {
        font-size: 18px;
    }
    .gallery-item-description {
        font-size: 14px;
    }
    .related-images-section {
        margin-top: 40px;
        padding-top: 40px;
    }
    .related-images-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .related-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .related-image-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .related-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .image-label {
        font-size: 10px;
        padding: 5px 10px;
        top: 10px;
        left: 10px;
    }
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-caption {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    text-align: center;
    padding: 0 20px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
}

.gallery-lightbox-prev {
    left: 30px;
}

.gallery-lightbox-next {
    right: 30px;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-img,
.related-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover,
.related-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-lightbox-img {
        max-height: 75vh;
    }
    .gallery-lightbox-caption {
        font-size: 16px;
        margin-top: 15px;
    }
    .gallery-lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 36px;
    }
    .gallery-lightbox-prev {
        left: 15px;
    }
    .gallery-lightbox-next {
        right: 15px;
    }
}

/* ============================================================
   WHY COMPARE
   ============================================================ */
.why-compare {
    padding: 0 0 30px 0;
    background: var(--bg-page);
}

.why-compare-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
}

.why-compare-subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.why-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

.why-compare-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-align: center;
}

.why-compare-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.why-compare-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.why-compare-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.why-compare-description {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: 16px 0 30px 0;
    background: var(--bg-page);
    margin-top: 0;
}

.faq-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 12px;
}

.faq-subtitle {
    font-size: 14px;
    color: var(--text-body);
    font-weight: 600;
    line-height: 1.5;
    margin-top: 4px;
}

.faq-list {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

@media (max-width: 768px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}


.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(226,232,240,0.8);
    border-left: 4px solid transparent;
    border-radius: var(--radius);
    margin-bottom: 0;
    overflow: hidden;
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), border-color 0.3s ease, border-left-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.03);
}

.faq-item:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 4px 8px rgba(37,99,235,0.06), 0 12px 24px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: rgba(37,99,235,0.2);
    border-left-color: var(--primary);
    box-shadow: 0 4px 8px rgba(37,99,235,0.08), 0 16px 32px rgba(0,0,0,0.06);
    background: linear-gradient(90deg, rgba(37,99,235,0.02) 0%, transparent 30%);
}

.faq-question {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    padding-right: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    transition: transform 0.4s var(--transition-bounce);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37,99,235,0.06);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: rgba(37,99,235,0.12);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 22px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   EXPERTS
   ============================================================ */
.experts {
    padding: 60px 0;
    background-color: var(--bg-page);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.expert-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.expert-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.expert-bio {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: none;
    border-top: none;
    padding: 10px 2px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 20px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-right-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    white-space: nowrap;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-dark);
}

.footer-link:not(:last-child)::after {
    content: ' | ';
    margin: 0 8px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.social-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.trustpilot-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.trustpilot-icon svg path {
    fill: var(--text-muted);
}

.footer-separator {
    height: 1px;
    background-color: var(--border);
    margin: 15px 0;
    width: 100%;
}

.footer-bottom {
    text-align: left;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
    text-align: left;
}

.disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 15px;
    text-align: left;
    display: block;
}

.disclaimer p {
    display: block;
    margin-bottom: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    text-align: left;
    width: 100%;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.disclaimer p:first-child {
    margin-top: 0;
}

.disclaimer p strong {
    color: var(--text-body);
    font-weight: 700;
    display: block;
    margin-top: 22px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.disclaimer p:first-child strong {
    margin-top: 0;
}

.disclaimer a {
    color: var(--text-body);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline;
    text-align: left;
}

.disclaimer a:hover {
    color: var(--text-dark);
    text-decoration-thickness: 1.5px;
}

.disclaimer p:last-child {
    margin-top: 6px;
    line-height: 1.6;
}

.disclaimer p:last-child a {
    margin: 0 3px;
}

/* Footer minimal layout */
.footer-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(71,85,105,.95);
    font-size: 12px;
}

.footer-links-row {
    display: flex;
    gap: 4px;
}

.footer-links-row a {
    color: rgba(71,85,105,.95);
    text-decoration: none;
    font-size: 12px;
}

.footer-links-row a:not(:last-child)::after {
    content: ' | ';
    color: rgba(71,85,105,.6);
    margin: 0 2px;
}

.footer-links-row a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE -- Global
   ============================================================ */
@media (max-width: 1024px) {
    .smart-ways-content {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        flex-direction: column;
    }
    .benefit-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .benefit-item:last-child {
        border-bottom: none;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculators-content {
        grid-template-columns: 1fr;
    }
    .inflation-content {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-compare-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .header {
        overflow: visible;
    }
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .hero {
        min-height: auto;
        /*padding: 32px 0 24px;*/
    }
    .hero-title {
        font-size: 25px;
        padding: 0 10px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle {
        padding: 0 10px;
        margin-bottom: 20px;
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-description {
        padding: 0 10px;
        margin-bottom: 0px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .cityscape-illustration {
        height: 100px;
        width: 100vw;
        max-width: 100vw;
        position: absolute;
        left: 50%;
        bottom: 0;
        margin-top: 15px;
        margin-bottom: 0;
    }
    .hero .container {
        padding-bottom: 40px;
    }
    .hero .container {
        min-height: auto;
    }
    .section-divider {
        margin: 10px auto 15px;
    }
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Mobile Navigation -- Dropdown */
    .nav-wrapper {
        position: relative !important;
        overflow: visible !important;
        z-index: 10001 !important;
    }
    .header {
        overflow: visible !important;
    }
    .header-content {
        overflow: visible !important;
        position: relative !important;
    }
    .container {
        overflow: visible !important;
    }
    .nav-toggle {
        display: flex;
    }
    .header-content .nav,
    .nav {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        width: 200px !important;
        min-width: 180px !important;
        max-width: calc(100vw - 40px) !important;
        background: #fff !important;
        flex-direction: column !important;
        gap: 0;
        padding: 8px 0 !important;
        box-shadow: var(--shadow-lg) !important;
        border: 2px solid var(--primary) !important;
        border-radius: var(--radius-sm) !important;
        z-index: 10000 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .header-content .nav.nav-open,
    .nav.nav-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .nav-link {
        font-size: 14px;
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        color: var(--primary);
        text-decoration: none;
        display: block;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .nav-link:last-child {
        border-bottom: none;
    }
    .nav-link:hover {
        background-color: var(--bg-page);
        color: var(--primary-dark);
    }
    .insurance-cards {
        gap: 10px;
        margin-bottom: 20px;
    }
    .insurance-card {
        padding: 10px;
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
    .insurance-card .card-icon {
        width: 80%;
        height: 80%;
        max-width: 80px;
        max-height: 80px;
        margin-bottom: 6px;
    }
    .insurance-card .card-label {
        font-size: 13px;
    }
    .benefits-grid {
        flex-direction: column;
    }
    .benefit-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .benefit-item:last-child {
        border-bottom: none;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-card {
        padding: 28px 22px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-item {
        padding: 24px 20px;
    }
    .why-compare-grid {
        grid-template-columns: 1fr;
    }
    .why-compare-card {
        padding: 28px 22px;
    }
    .faq-question {
        padding: 20px;
    }
    .faq-question h3 {
        font-size: 16px;
        padding-right: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    .faq-answer p {
        font-size: 14px;
    }
    .insurance-type-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .experts-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .footer-right-section {
        align-items: flex-start;
    }
    .footer-links {
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
    }
    .footer-bottom {
        text-align: left;
    }
    .copyright {
        text-align: left;
    }
    .footer-social {
        justify-content: flex-start;
    }
    .disclaimer {
        font-size: 12px;
        line-height: 1.7;
        margin-top: 12px;
    }
    .disclaimer p {
        margin-bottom: 14px;
        line-height: 1.7;
    }
    .disclaimer p strong {
        font-size: 13px;
        margin-top: 18px;
        margin-bottom: 8px;
        font-weight: 700;
    }
    .disclaimer a {
        font-weight: 600;
    }
}

/* ============================================================
   COMING SOON POPUP
   ============================================================ */
.coming-soon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.coming-soon-popup.show {
    opacity: 1;
    visibility: visible;
}

.coming-soon-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.coming-soon-popup.show .coming-soon-content {
    transform: scale(1) translateY(0);
}

.coming-soon-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-body);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.coming-soon-close:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    transform: scale(1.1);
}

.coming-soon-close:active {
    transform: scale(0.95);
}

.coming-soon-icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.coming-soon-service-icon,
.coming-soon-insurance-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

.coming-soon-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

.coming-soon-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.coming-soon-content .section-divider {
    margin: 15px auto 20px;
    width: 60%;
}

.coming-soon-message {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.7;
    font-weight: 500;
}

@media (max-width: 768px) {
    .coming-soon-content {
        padding: 36px 28px;
        max-width: 90%;
        border-radius: 20px;
    }
    .coming-soon-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    .coming-soon-icon {
        margin-bottom: 20px;
    }
    .coming-soon-insurance-icon {
        width: 38px;
    }
    .coming-soon-logo {
        width: 80px;
    }
    .coming-soon-icon {
        gap: 12px;
    }
    .coming-soon-title {
        font-size: 26px;
        margin-bottom: 14px;
    }
    .coming-soon-message {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ============================================================
   QUIZ CONTENT
   ============================================================ */
.quiz-content {
    box-sizing: border-box;
    margin: 0 auto;
    min-width: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-size: 14px;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.quiz-inner {
    box-sizing: border-box;
    margin: 0 auto;
    min-width: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.quiz-inner > .question {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.start-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .start-screen-content {
        max-width: 1000px;
    }
}

.inline-question-card {
    margin: 16px 0 24px 0;
    width: 100%;
    max-width: 100%;
    padding: 18px 20px 20px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .inline-question-card {
        max-width: 650px;
        width: 650px;
    }
}

.inline-question-card .question-title {
    margin-bottom: 16px;
}

.inline-progress-container {
    margin-bottom: 16px;
}

.inline-progress-track {
    width: 100%;
    height: 10px;
    border-radius: var(--radius-pill);
    background-color: var(--border);
    overflow: hidden;
}

.inline-progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, #60a5fa 100%);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

.inline-progress-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
}

.question-progress-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .inline-question-card {
        padding: 16px 14px 18px 14px;
        max-width: 100%;
    }
}

.inline-question-card .answers-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    justify-items: stretch !important;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .inline-question-card .answers-container {
        grid-template-columns: 1fr 1fr !important;
        max-width: 600px !important;
        gap: 16px !important;
    }
}

@keyframes animatedGradientBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.start-title {
    margin-top: 10px;
    font-size: 27px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    width: 700px;
}

@media (max-width: 768px) {
    .start-title {
        margin-top: 1px;
        width: auto;
        font-size: 20px;
    }
}

.start-subtitle {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .start-subtitle {
        margin-bottom: 0px;
    }
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 400px;
    align-self: stretch;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .benefits-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        width: 100%;
        gap: 20px;
    }
}

.benefits-list .benefit-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 16px;
    background: var(--bg-page);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text strong {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-text span {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.3;
}

.start-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.question-header {
    box-sizing: border-box;
    margin: 8px auto 0 auto;
    min-width: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.question-title {
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    color: var(--text-dark);
}

@media (min-width: 1200px) {
    .question-title {
        font-size: 27px;
        line-height: 1.1;
        max-width: 800px;
    }
}

.question-subtitle {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    max-width: 600px;
    color: var(--text-body);
}

@media (min-width: 1200px) {
    .question-subtitle {
        font-size: 20px;
    }
}

.answers-container {
    box-sizing: border-box;
    margin: 0 auto;
    min-width: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

@media (min-width: 1200px) {
    .answers-container {
        width: 340px;
    }
    .contact-info-container {
        max-width: 600px !important;
        width: 100%;
    }
}

.contact-input {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    width: 86vw !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (min-width: 768px) {
    .contact-input {
        max-width: 100%;
    }
}

/* Email suggestions */
.email-suggestions {
    position: relative;
}

.email-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.email-suggestion-item {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.email-suggestion-item:hover,
.email-suggestion-item.active {
    background-color: var(--bg-page);
}

.name-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.answer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    cursor: pointer;
    border: 2px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--primary), var(--primary-dark), #60a5fa) border-box;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    text-decoration: none;
    padding: 16px 24px;
    position: relative;
    font-size: 18px;
    font-weight: 700;
    animation-timing-function: smooth;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
    height: 62px;
    box-shadow: 0 3px 0 rgba(37,99,235,0.2), 0 6px 16px rgba(37, 99, 235, 0.12);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    flex: 0 0 auto;
    flex-shrink: 0;
    flex-grow: 0;
    background-size: 180% 180%;
    animation: animatedGradientBorder 8s ease-in-out infinite alternate;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

.answer-button:hover {
    background:
        linear-gradient(var(--primary-light), var(--primary-light)) padding-box,
        linear-gradient(135deg, var(--primary), var(--primary-dark), #60a5fa) border-box;
    box-shadow: 0 5px 0 rgba(37,99,235,0.15), 0 10px 24px rgba(37, 99, 235, 0.18);
    transform: translateY(-3px);
}

.answer-button:active,
.answer-button.pressed {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 1px 0 rgba(37,99,235,0.15), 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* ============================================================
   REAL-TIME QUOTES / APPOINTMENTS TABLE
   ============================================================ */
.realtime-quotes-section {
    padding: 0 0 30px 0;
    background: var(--bg-page);
}

.realtime-quotes-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.realtime-quotes-section .section-title {
    text-align: center;
}

.quotes-table-container {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.quotes-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.quotes-table thead {
    background: linear-gradient(135deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #1185e0 100%);
    z-index: 10;
}

.quotes-table thead th {
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotes-table thead th:nth-child(2),
.quotes-table thead th:nth-child(3) {
    text-align: center;
}

.quotes-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.quotes-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.quotes-table tbody tr:nth-child(odd) {
    background-color: var(--bg-white);
}

.quotes-table tbody tr:hover {
    background-color: var(--primary-light);
}

.quotes-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-body);
}

.quotes-table tbody td.durability-rating {
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    font-size: 15px;
}

.quotes-table tbody td:nth-child(3) {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 15px;
    text-align: center;
}

/* Hide rows after the 7th */
.quotes-table tbody tr:nth-child(n+8) {
    display: none;
}

/* ============================================================
   SAVINGS TABLE
   ============================================================ */
.savings-table-section {
    padding: 16px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-page) 100%);
}

.savings-table-section .section-title {
    text-align: center;
}

.savings-table-wrap {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: none;
}

/* Fixed header row */
.savings-header-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #1185e0 100%);
    padding: 16px 28px;
    box-shadow: 0 4px 12px rgba(26,54,93,0.2);
}

.savings-header-row span {
    color: #fff;
    font-weight: 900;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0;
    border-right: 1px solid rgba(255,255,255,.2);
}

.savings-header-row span:last-child {
    border-right: none;
}

/* Scrolling viewport — exactly 5 rows visible (5 * 46px = 230px) */
.savings-scroll-viewport {
    height: 230px;
    overflow: hidden;
    position: relative;
}

.savings-scroll-inner {
    will-change: transform;
}

/* Data rows */
.savings-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 14px 28px;
    border-top: 1px solid rgba(15,23,42,.06);
    transition: background 0.2s ease;
}

.savings-row:hover {
    background: rgba(37,99,235,0.03);
}

.savings-row--alt {
    background: rgba(246,248,255,0.6);
}

.savings-row--alt:hover {
    background: rgba(37,99,235,0.05);
}

.savings-row span {
    padding: 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--text-body);
    border-right: 1px solid rgba(15,23,42,.08);
}

.savings-row span:last-child {
    border-right: none;
}

.savings-value {
    color: var(--accent-green) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(22,163,74,0.15);
}

@media (max-width: 600px) {
    .savings-header-row,
    .savings-row {
        grid-template-columns: 0.8fr 1fr 0.7fr 0.7fr 0.6fr;
        gap: 4px;
        padding: 10px 10px;
    }
    .savings-header-row span,
    .savings-row span {
        padding: 0;
        font-size: 11px;
        word-break: break-word;
    }
    .savings-header-row span {
        font-size: 10px;
    }
    .savings-scroll-viewport {
        height: 200px;
    }
}

@media (max-width: 400px) {
    .savings-header-row,
    .savings-row {
        grid-template-columns: 0.7fr 0.9fr 0.7fr 0.7fr 0.6fr;
        gap: 2px;
        padding: 8px 6px;
    }
    .savings-header-row span,
    .savings-row span {
        font-size: 10px;
    }
    .savings-header-row span {
        font-size: 9px;
    }
}

/* ============================================================
   ROOF REPLACEMENT COSTS TABLE
   ============================================================ */
.roof-costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.roof-cost-table-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 20px;
    margin-top: 40px;
}

.roof-cost-material-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.roof-cost-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.roof-cost-table thead {
    background: linear-gradient(135deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #1185e0 100%);
}

.roof-cost-table thead th {
    padding: 12px 8px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.roof-cost-table thead th .price-per-sqft {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
    opacity: 0.85;
}

.roof-cost-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary);
    background-color: var(--bg-page);
}

.roof-cost-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.roof-cost-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.roof-cost-table tbody tr:nth-child(odd) {
    background-color: var(--bg-white);
}

.roof-cost-table tbody tr:hover {
    background-color: var(--primary-light);
}

.roof-cost-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: var(--text-body);
    text-align: center;
}

.roof-cost-table tbody td.cost-cell {
    font-weight: 600;
    color: var(--accent-green);
    font-size: 15px;
}

.price-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-style: italic;
    line-height: 1.5;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .roof-costs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .roof-costs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .roof-cost-table-wrapper {
        padding: 15px;
        overflow-x: auto;
        position: relative;
    }
    .roof-cost-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
        z-index: 1;
    }
    .quotes-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    .quotes-table-container::after {
        content: '\2192';
        position: absolute;
        right: 10px;
        top: 61%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--primary);
        opacity: 0.6;
        pointer-events: none;
        z-index: 2;
        animation: pulse-right 2s ease-in-out infinite;
        transition: opacity 0.3s ease;
    }
    .quotes-table-container.scrolled-right::after {
        opacity: 0;
        animation: none;
    }
    @keyframes pulse-right {
        0%, 100% {
            opacity: 0.3;
            transform: translateY(-50%) translateX(0);
        }
        50% {
            opacity: 0.7;
            transform: translateY(-50%) translateX(-5px);
        }
    }
    .roof-cost-material-title {
        font-size: 14px;
    }
    .roof-cost-table {
        min-width: 600px;
    }
    .roof-cost-table thead th {
        padding: 10px 6px;
        font-size: 10px;
    }
    .roof-cost-table thead th .price-per-sqft {
        font-size: 9px;
    }
    .roof-cost-table tbody td {
        padding: 10px 6px;
        font-size: 12px;
    }
    .roof-cost-table tbody td:first-child {
        font-size: 13px;
        padding: 10px 8px;
    }
    .roof-cost-table tbody td.cost-cell {
        font-size: 13px;
    }
    .price-disclaimer {
        font-size: 10px;
        margin-top: 15px;
        padding-top: 12px;
    }
}

/* ============================================================
   WINDOW / SERVICE REPLACEMENT SECTION
   ============================================================ */
.window-replacement-section {
    padding: 0 0 30px 0;
    background: var(--bg-white);
    margin-top: 0;
}

.window-replacement-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 25px;
}

.window-replacement-intro {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: 20px;
}

.window-replacement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto 20px;
    max-width: 1200px;
}

.window-replacement-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-align: center;
}

.window-replacement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.window-replacement-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.window-replacement-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.window-replacement-description {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

.window-replacement-note {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 24px;
    background: var(--bg-page);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.window-replacement-note p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 992px) {
    .window-replacement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .window-replacement-section {
        padding: 40px 0;
    }
    .window-replacement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .window-replacement-card {
        padding: 28px 22px;
    }
}

/* ============================================================
   END CTA SECTION (Dark)
   ============================================================ */
.end-cta-section {
    padding: 0 0 30px 0;
    background: linear-gradient(145deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #0f7ae5 100%);
    text-align: center;
}

.end-cta-section .section-title {
    color: #fff;
    margin-bottom: 15px;
}

.end-cta-section .section-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
}

.end-cta-section .section-divider::before {
    content: none;
}

.end-cta-section .section-divider::after {
    content: none;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.cta-button:hover {
    background: linear-gradient(135deg, #3b82f6 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Responsive Quiz / Quotes */
@media (max-width: 768px) {
    .quiz-section {
        margin: 30px auto;
        padding: 0 15px;
    }
    .quiz-card {
        padding: 24px 20px;
    }
    .quiz-question {
        font-size: 20px;
    }
    .quiz-answer-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    .realtime-quotes-section {
        padding: 40px 0;
    }
    .quotes-table-container {
        max-height: 400px;
    }
    .quotes-table thead th {
        padding: 12px 10px;
        font-size: 12px;
    }
    .quotes-table tbody td {
        padding: 10px;
        font-size: 13px;
    }
    .end-cta-section {
        padding: 40px 0;
    }
    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* ============================================================
   LOADING SECTION
   ============================================================ */
/* Inline quiz loading (shown inside hero card) */
.quiz-inline-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px 40px;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quiz-loading-ring {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
}

.quiz-loading-ring svg {
    width: 72px;
    height: 72px;
    animation: spin 1.2s linear infinite;
}

.quiz-loading-ring .ring-track {
    fill: none;
    stroke: #e0edf9;
    stroke-width: 5;
}

.quiz-loading-ring .ring-fill {
    fill: none;
    stroke: url(#loadingGradient);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 130 70;
}

.quiz-loading-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-loading-checkmark.visible {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-loading-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.quiz-loading-message {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.5;
    min-height: 24px;
    transition: opacity 0.25s ease;
}

.quiz-loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 18px;
}

.quiz-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1d4ed8;
    opacity: 0.3;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.quiz-loading-dots span:nth-child(2) {
    background: #1990c6;
    animation-delay: 0.2s;
}

.quiz-loading-dots span:nth-child(3) {
    background: #16a34a;
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.3); }
}

/* Legacy loading-section kept as fallback */
.loading-section {
    padding: 100px 0;
    background: var(--bg-page);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.loading-spinner {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.loading-message {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .loading-section {
        padding: 60px 0;
    }
    .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    .loading-title {
        font-size: 22px;
    }
    .loading-message {
        font-size: 16px;
    }
    .quiz-loading-title {
        font-size: 18px;
    }
}

/* ============================================================
   THANK YOU SECTION
   ============================================================ */
.thank-you-section {
    padding: 16px 0;
    background: #ffffff;
    min-height: auto;
}

.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 8px 0 4px;
}

.thank-you-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: block;
}

.thank-you-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.thank-you-message {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.thank-you-submessage {
    font-size: 18px;
    color: var(--text-body);
    margin-bottom: 40px;
    line-height: 1.6;
}

.thank-you-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 300px;
    width: auto;
}

.thank-you-call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
}

.thank-you-call-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.call-icon {
    font-size: 24px;
    filter: brightness(0) invert(1);
}

.call-text {
    font-weight: 700;
}

.call-number {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.thank-you-back-section {
    margin-top: 40px;
    text-align: center;
}

.thank-you-back-text {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 12px;
    line-height: 1.6;
}

.thank-you-back-button {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background-color: transparent;
}

.thank-you-back-button:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.thank-you-back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .thank-you-section {
        /*padding: 40px 0;*/
    }
    .thank-you-content {
        padding: 20px;
    }
    .thank-you-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    .thank-you-title {
        font-size: 32px;
    }
    .thank-you-message {
        font-size: 18px;
    }
    .thank-you-submessage {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .thank-you-call-button {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 18px 16px;
        font-size: 16px;
        flex-direction: row;
        gap: 10px;
        border-radius: var(--radius);
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        flex-wrap: nowrap;
    }
    .call-icon {
        font-size: 20px;
        flex-shrink: 0;
    }
    .call-text {
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .call-number {
        font-size: 18px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .thank-you-back-section {
        margin-top: 30px;
    }
    .thank-you-back-text {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .thank-you-back-button {
        font-size: 14px;
        padding: 10px 20px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .thank-you-call-button {
        padding: 16px 12px;
        gap: 8px;
        font-size: 14px;
    }
    .call-icon {
        font-size: 18px;
        filter: brightness(0) invert(1);
    }
    .call-text {
        font-size: 13px;
    }
    .call-number {
        font-size: 16px;
    }
}

/* ============================================================
   SPECIAL OFFERS (Clickwall)
   ============================================================ */
.special-offers-section {
    padding: 16px 0;
    background: var(--bg-white);
}

/* Thumbtack-style card — matches roofing1-old exactly */
.thumbtack-style-card {
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

.thumbtack-style-card-inner {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 914px;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
    padding: 25px 20px;
    text-align: left;
    margin-bottom: 5px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.thumbtack-style-avatar-wrap {
    flex-shrink: 0;
}

.thumbtack-style-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.thumbtack-style-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.thumbtack-style-name {
    font-family: Rise, Avenir, Helvetica, Arial, sans-serif;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.thumbtack-style-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.thumbtack-style-rating-label {
    font-family: Rise, Avenir, Helvetica, Arial, sans-serif;
    color: #2db783;
    font-size: 14px;
    font-weight: 600;
}

.thumbtack-style-stars {
    color: #2db783;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.thumbtack-style-review-count {
    color: #4a4a4a;
    font-size: 14px;
}

.thumbtack-style-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.thumbtack-style-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4a4a4a;
    font-size: 13px;
}

.thumbtack-style-icon {
    flex-shrink: 0;
    color: #6b6b6b;
}

.thumbtack-style-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    align-self: flex-end;
}

.thumbtack-style-estimate {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 24px;
    text-align: right;
    position: absolute;
    top: 25px;
    right: 25px;
}

.thumbtack-style-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    width: 180px;
    height: 46px;
    padding: 0 20px;
    background: #009fd9;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.thumbtack-style-call-btn:hover {
    background: #008bc4;
    color: #fff;
}

.thumbtack-style-call-btn:active {
    background: #0077a8;
}

@media (max-width: 768px) {
    .thumbtack-style-card {
        padding: 0;
    }
    .thumbtack-style-card {
        padding: 0;
    }
    .thumbtack-style-card-inner {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        padding: 16px;
        gap: 12px 16px;
    }
    .thumbtack-style-avatar {
        width: 72px;
        height: 72px;
    }
    .thumbtack-style-body {
        flex: 1;
        min-width: 0;
    }
    .thumbtack-style-estimate {
        position: static;
        text-align: center;
        width: 100%;
        margin-top: 8px;
    }
    .thumbtack-style-cta {
        flex-direction: column;
        align-items: stretch;
        align-self: auto;
        width: 100%;
    }
    .thumbtack-style-call-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Thumbtack embed — with top iframe crop (hides Thumbtack header) */
.thumbtack-embed-wrap {
    margin: 0;
    min-height: 400px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.thumbtack-embed-wrap iframe {
    border: none;
    width: 100%;
    max-width: 100%;
    height: 800px;
    transform: translateY(-320px);
    margin-top: 20px;
    margin-bottom: -320px;
    clip-path: inset(320px 0 0 0);
    -webkit-clip-path: inset(320px 0 0 0);
}

@media (max-width: 768px) {
    .thumbtack-embed-wrap iframe {
        transform: translateY(-380px);
        margin-bottom: -380px;
        clip-path: inset(380px 0 0 0);
        -webkit-clip-path: inset(380px 0 0 0);
    }
}

.special-offers-header {
    text-align: center;
    margin-bottom: 24px;
}

.special-offers-subtitle {
    font-size: 16px;
    color: var(--text-body);
    margin-top: 8px;
}

.special-offers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.special-offer-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 16px;
    border-radius: var(--radius);
    background: var(--bg-page);
    border: 1px solid rgba(226,232,240,0.8);
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s var(--transition-smooth), border-color 0.3s ease, background-color 0.3s ease;
}

.special-offer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37,99,235,0.08), 0 16px 32px rgba(0,0,0,0.06);
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.special-offer-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.special-offer-source {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .special-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .special-offers-section {
        padding: 32px 0 48px;
    }
    .special-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .special-offer-card {
        padding: 16px 14px;
    }
    .special-offer-name {
        font-size: 16px;
    }
    .special-offer-source {
        font-size: 13px;
    }
}

/* ============================================================
   THUMBTACK PRO CARD GRID (JS-generated)
   ============================================================ */
.thumbtack-pro-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .thumbtack-pro-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .thumbtack-pro-card-grid {
        grid-template-columns: 1fr;
    }
}

.thumbtack-pro-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thumbtack-pro-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.thumbtack-pro-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* ============================================================
   THUMBTACK MODAL (iframe overlay)
   ============================================================ */
.thumbtack-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.65);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbtack-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.thumbtack-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-body);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.thumbtack-modal-close:hover {
    background: var(--bg-page);
    color: var(--text-dark);
    transform: scale(1.1);
}

/* ============================================================
   HOW IT WORKS (dashed border box)
   ============================================================ */
.how-it-works-section {
    padding: 48px 0;
    background: var(--bg-white);
}

.how-it-works-box {
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.how-it-works-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-it-works-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.how-it-works-step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.how-it-works-step-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-text {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
}

.step-text strong {
    color: var(--text-dark);
    font-weight: 700;
}

@media (max-width: 768px) {
    .how-it-works-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .how-it-works-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .how-it-works-steps {
        grid-template-columns: 1fr;
    }
    .how-it-works-box {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SERVICES GRID (3-col tiles)
   ============================================================ */
.services-grid-section {
    padding: 16px 0;
    background: var(--bg-page);
}

.services-grid-section .container > .services-grid,
.services-grid-wrap {
    border: 1px solid rgba(15,23,42,.07);
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-3d);
    padding: 20px;
}

.services-grid-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 950;
    text-align: center;
    color: var(--text-dark);
}

.services-grid-subtitle {
    margin: 0 0 14px;
    text-align: center;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.services-grid-section .section-title {
    text-align: center;
}

.services-grid-section .section-subtitle {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}


.service-tile {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    transition: transform 0.35s var(--transition-bounce), box-shadow 0.35s var(--transition-smooth), border-color 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
}

.service-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37,99,235,0.08), 0 16px 32px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.service-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    margin-bottom: 0;
    background: var(--primary-light);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(37,99,235,0.1);
    transition: transform 0.3s var(--transition-bounce);
    color: var(--primary);
}

.service-tile-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-tile-description {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.service-tile h3 {
    font-size: 14px;
    font-weight: 950;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-tile p {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.45;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   EDUCATION SECTION (vertical list)
   ============================================================ */
.education-section {
    padding: 16px 0;
    background: var(--bg-white);
}

.education-grid {
    display: flex;
    flex-direction: column;
}

.education-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.education-card:last-child {
    border-bottom: none;
}

.education-card-number,
.education-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.education-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.education-card-desc {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.education-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.education-card p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .education-grid {
        flex-direction: column;
    }
    .education-card {
        flex-direction: row;
        gap: 16px;
    }
}

/* ============================================================
   BENEFITS GRID (4-col)
   ============================================================ */
.benefits-grid-section {
    padding: 48px 0;
    background: var(--bg-page);
}

.benefits-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-grid-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.benefit-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.benefit-grid-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.benefit-grid-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.benefit-grid-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .benefits-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid-4col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SERVICE CARDS (2-col split layout)
   ============================================================ */
.service-detail-section {
    padding: 48px 0;
}

.service-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-detail-media {
    overflow: hidden;
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-detail-content {
    padding: 28px;
}

.service-detail-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-detail-content p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

.service-detail-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-detail-text p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-cta-btn {
    display: inline-block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    margin-top: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.service-cta-btn:hover {
    color: var(--primary);
}

.service-detail-reversed .service-detail-grid {
    direction: rtl;
}

.service-detail-reversed .service-detail-grid > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .service-cards-row {
        grid-template-columns: 1fr;
    }
    .service-detail-grid,
    .service-detail-grid.reverse,
    .service-detail-reversed .service-detail-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ============================================================
   DARK CTA SECTION
   ============================================================ */
.dark-cta-section {
    padding: 16px 0;
    background: none;
}

.dark-cta-card {
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(145deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #0f7ae5 100%);
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(26,54,93,0.1), 0 16px 32px rgba(26,54,93,0.12), 0 24px 48px rgba(26,54,93,0.06);
    position: relative;
    overflow: hidden;
}

.dark-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99,179,237,0.15) 0%, rgba(129,140,248,0.06) 40%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.dark-cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(34,211,238,0.04) 40%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-30%, 30%);
}

.dark-cta-section h2,
.dark-cta-card h2 {
    font-weight: 950;
    font-size: 20px;
    margin: 0 0 4px;
    color: #ffffff;
}

.dark-cta-section p,
.dark-cta-card p {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}

.dark-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dark-cta-button,
.dark-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
    transition: all 0.3s ease;
}

.dark-cta-button:hover,
.dark-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

.dark-cta-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.dark-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

@media (max-width: 520px) {
    .dark-cta-buttons { grid-template-columns: 1fr; }
}

/* ============================================================
   PRO DIRECTORY (contractor cards)
   ============================================================ */
.pro-directory-section {
    padding: 48px 0;
    background: var(--bg-page);
}

.pro-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pro-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: all 0.3s ease;
}

.pro-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pro-card-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.pro-card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pro-card-description {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 12px;
}

.pro-card-read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.pro-card-read-more:hover {
    text-decoration: underline;
}

.pro-card-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-card-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
}

.pro-card-meta li svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.pro-card-review {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 12px 0;
}

.pro-card-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 1px;
}

.pro-card-review-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pro-card-review-quote {
    font-size: 13px;
    color: var(--text-body);
    font-style: italic;
    margin-top: 8px;
    line-height: 1.5;
}

.pro-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    margin-top: 12px;
}

.pro-card-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1024px) {
    .pro-directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pro-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   REQUEST FLOW / RESULTS SECTION
   ============================================================ */
.results-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.results-subtitle {
    font-size: 16px;
    color: var(--text-body);
    text-align: center;
    margin-bottom: 24px;
}

/* ============================================================
   Contact input responsive fix
   ============================================================ */
@media (min-width: 768px) {
    .contact-input {
        max-width: 100%;
        width: 50vw !important;
        align-self: center;
    }
}

/* ============================================================
   Answer button override for hero inline
   ============================================================ */
.hero-zip-form .answer-button {
    height: auto;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-size: 16px;
}

.hero-zip-form .answer-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%) !important;
}

/* ============================================================
   RESPONSIVE OVERRIDES (Bottom)
   ============================================================ */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 26px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-right {
        border-left: none;
        border-top: 1px solid rgba(15,23,42,.10);
    }

    .hero-zip-form {
        grid-template-columns: 1fr;
    }

    .dark-cta-buttons {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .dark-cta-btn {
        width: 100%;
        text-align: center;
        max-width: 320px;
        justify-content: center;
    }

    .savings-table thead th,
    .savings-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 24px;
    }

    .hero-check-item {
        font-size: 13px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FINAL FIX: All HTML classes that need CSS
   ============================================================ */

/* Hero ZIP Form */
.hero-zip-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.hero-zip-input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(15,23,42,.18);
    background: #f8fafc;
    color: var(--text-dark);
    outline: none;
    font-size: 16px;
    font-weight: 650;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.hero-zip-input:focus {
    outline: none;
    border-color: var(--primary);
}

.hero-zip-input::placeholder {
    color: var(--text-muted);
    font-weight: 550;
}

.hero-zip-btn {
    border: 0;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 0 #1e3a8a, 0 6px 16px rgba(37,99,235,.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    white-space: nowrap;
    font-family: inherit;
    font-size: 15px;
    text-align: center;
}

.hero-zip-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #1e3a8a, 0 2px 6px rgba(37,99,235,.2);
}

.hero-zip-btn:hover {
    background: linear-gradient(145deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 0 #1e3a8a, 0 10px 24px rgba(37,99,235,.3), var(--shadow-glow-blue);
}

.hero-zip-btn.is-loading {
    position: relative;
    cursor: default;
    opacity: 0.9;
}

.hero-zip-btn.is-loading .btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    animation: btn-spin 0.7s linear infinite;
}

.hero-zip-btn.is-loading .btn-loading-text {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Hero Checkmarks container */
.hero-checkmarks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.hero-check-icon {
    flex-shrink: 0;
    display: inline-flex;
    line-height: 1;
}

/* How It Works title h3 */
.hero-how-it-works-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* Step label/text */
.hero-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 50px;
    padding-top: 1px;
}

.hero-step-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Benefits Row (horizontal with dividers) */
.benefits-row-section {
    padding: 20px 0 18px;
    background: var(--bg-white);
}

.benefits-row-container,
.benefits-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.benefits-row-divider {
    display: none;
}

.benefits-row-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 6px 16px rgba(0,0,0,0.04);
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.benefits-row-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: var(--primary);
    transition: width 0.3s var(--transition-smooth);
}

.benefits-row-item:nth-child(2)::before { background: var(--accent-green); }
.benefits-row-item:nth-child(3)::before { background: #ea580c; }
.benefits-row-item:nth-child(4)::before { background: #7c3aed; }

.benefits-row-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 14px 28px rgba(0,0,0,0.07);
}

.benefits-row-item:hover::before {
    width: 6px;
}

.benefits-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(37,99,235,.18);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.04), 0 2px 6px rgba(37,99,235,0.08);
    transition: transform 0.3s var(--transition-bounce);
}

.benefits-row-item:hover .benefits-row-icon {
    transform: scale(1.1) rotate(-3deg);
}

.benefits-row-icon--blue { background: rgba(37,99,235,.10); }
.benefits-row-icon--green { background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.18); }
.benefits-row-icon--orange { background: rgba(234,88,12,.10); border-color: rgba(234,88,12,.18); }
.benefits-row-icon--purple { background: rgba(124,58,237,.10); border-color: rgba(124,58,237,.18); }

.benefits-row-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 900;
    color: var(--text-dark);
}

.benefits-row-text span {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-body);
    font-weight: 600;
}

@media (max-width: 900px) {
    .benefits-row-container, .benefits-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .benefits-row-container, .benefits-row { grid-template-columns: 1fr; }
}

/* Service Cards (two side-by-side) */
.service-cards-section {
    padding: 16px 0;
    background: var(--bg-white);
}

.service-cards-section .section-title {
    text-align: center;
}

.service-card {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-3d);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    align-items: stretch;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3d-hover);
}

.service-card-text {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.service-card-text h3 {
    font-size: 20px;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.service-card-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green));
    border-radius: 2px;
}

.service-card-text p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(37,99,235,0.06);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    margin-top: auto;
    width: fit-content;
}

.service-card-link:hover {
    background: rgba(37,99,235,0.12);
    color: var(--primary-dark);
    gap: 8px;
}

.service-card-media {
    background: linear-gradient(160deg, #f0f4ff, #f8fafc, #ffffff);
    border-left: 1px solid rgba(15,23,42,.06);
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.service-card:hover .service-card-media img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .service-card {
        grid-template-columns: 1fr;
    }
    .service-card-media {
        max-height: 200px;
    }
}

/* Services Grid colored icons */
.service-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-tile-icon--blue { background: #dbeafe; }
.service-tile-icon--green { background: #dcfce7; }
.service-tile-icon--orange { background: #ffedd5; }
.service-tile-icon--red { background: #fee2e2; }
.service-tile-icon--purple { background: #ede9fe; }
.service-tile-icon--teal { background: #ccfbf1; }

.service-tile {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.08);
    transition: transform 0.35s var(--transition-bounce), box-shadow 0.35s var(--transition-smooth), border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
}

.service-tile:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37,99,235,0.08), 0 16px 32px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.service-tile h3 {
    font-size: 14px;
    font-weight: 950;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-tile p {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.45;
}

/* Education vertical list */
.education-list {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.education-item {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-3d);
    padding: 16px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth);
}

.education-item:hover {
    transform: translateY(-4px) translateX(4px);
    box-shadow: var(--shadow-3d-hover);
}

.education-item-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.08);
    background: linear-gradient(145deg, rgba(37,99,235,.1) 0%, rgba(37,99,235,.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.04), 0 2px 8px rgba(37,99,235,0.08);
    transition: transform 0.3s var(--transition-bounce);
}

.education-item:hover .education-item-icon {
    transform: scale(1.08) rotate(-2deg);
}

.education-item-icon--purple,
.education-item-icon--green,
.education-item-icon--orange,
.education-item-icon--teal {
    background: rgba(37,99,235,.08);
}

.education-item-content h3 {
    font-size: 18px;
    font-weight: 950;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.education-item-content p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    line-height: 1.65;
}

/* Dark CTA pill buttons */
.dark-cta-pill {
    flex: 1;
    padding: 18px 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-weight: 900;
    font-size: 17px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.dark-cta-pill:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dark-cta-pill:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dark-cta-pill-icon {
    font-size: 20px;
}

/* Footer */
.footer-copyright {
    font-size: 12px;
    color: rgba(71,85,105,.95);
}

@media (max-width: 768px) {
    .hero-zip-form {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }
    .hero-zip-btn {
        padding: 16px;
        font-size: 16px;
        text-align: center;
        width: 100%;
    }
    .service-cards-row {
        grid-template-columns: 1fr;
    }
    .dark-cta-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .footer-minimal {
        flex-direction: column;
        gap: 8px;
    }
    .education-item-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
}

/* ============================================================
   BENEFITS TICKER STRIP (replaces benefits-row)
   ============================================================ */
.benefits-ticker-section {
    overflow: hidden;
    background: linear-gradient(135deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #1185e0 100%);
    padding: 14px 0;
}

.benefits-ticker-track {
    overflow: hidden;
    position: relative;
}

.benefits-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    justify-content: center;
    width: 100%;
}

/* Hide items that don't fit on smaller screens */
.benefits-ticker-inner .ticker-chip:nth-child(n+11),
.benefits-ticker-inner .ticker-dot:nth-child(n+12) {
    display: none;
}

@media (max-width: 900px) {
    .benefits-ticker-inner .ticker-chip:nth-child(n+9),
    .benefits-ticker-inner .ticker-dot:nth-child(n+10) {
        display: none;
    }
}

@media (max-width: 700px) {
    .benefits-ticker-inner .ticker-chip:nth-child(n+7),
    .benefits-ticker-inner .ticker-dot:nth-child(n+8) {
        display: none;
    }
}

@media (max-width: 500px) {
    .benefits-ticker-inner .ticker-chip:nth-child(n+5),
    .benefits-ticker-inner .ticker-dot:nth-child(n+6) {
        display: none;
    }
    .ticker-chip { padding: 0 12px; font-size: 12px; }
}

@media (max-width: 380px) {
    .benefits-ticker-inner .ticker-chip:nth-child(n+3),
    .benefits-ticker-inner .ticker-dot:nth-child(n+4) {
        display: none;
    }
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0 20px;
    flex-shrink: 0;
}

.ticker-chip svg {
    flex-shrink: 0;
    opacity: 0.9;
    stroke: #ffffff;
}

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
}

.benefits-ticker-inner .ticker-dot:last-child {
    display: none;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .ticker-chip { font-size: 13px; padding: 0 14px; }
}

/* ============================================================
   SAVINGS SPLIT LAYOUT (left stat + right table)
   ============================================================ */
.savings-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    border: 1px solid rgba(15,23,42,.07);
}

.savings-highlight-panel {
    background: linear-gradient(160deg, #043a78 0%, #064b97 50%, #0a66cc 70%, #1185e0 100%);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.savings-highlight-label {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings-highlight-amount {
    font-size: 48px;
    font-weight: 900;
    color: #4ade80;
    line-height: 1;
    text-shadow: 0 0 24px rgba(74,222,128,0.35);
}

.savings-highlight-sub {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
}

.savings-highlight-stat {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.savings-stat-item {
    text-align: center;
}

.savings-stat-item strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.savings-stat-item span {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
}

.savings-table-panel {
    background: var(--bg-white);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.savings-table-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    padding: 14px 18px 2px;
    margin: 0;
    text-align: center;
}

.savings-table-subheading {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding: 0 18px 10px;
}

@media (max-width: 768px) {
    .savings-split {
        grid-template-columns: 1fr;
    }
    .savings-highlight-panel {
        padding: 18px 20px;
        flex-direction: column;
    }
    .savings-highlight-amount {
        font-size: 36px;
    }
    .savings-highlight-stat {
        margin-top: 10px;
        padding-top: 10px;
    }
    .savings-highlight-amount {
        font-size: 36px;
    }
}

/* ============================================================
   SERVICE SHOWCASE (full-width image cards)
   ============================================================ */
.service-showcase-section {
    padding: 16px 0;
    background: var(--bg-white);
}

.service-showcase-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .service-showcase-section .container {
        grid-template-columns: 1fr;
    }
}

.service-showcase-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-3d);
}

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

.service-showcase-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.service-showcase-card:hover .service-showcase-bg {
    transform: scale(1.05);
}

.service-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.5) 50%, rgba(15,23,42,0.2) 100%);
}

.service-showcase-content {
    position: relative;
    z-index: 1;
    padding: 28px 28px 24px;
    color: #fff;
    max-width: 600px;
}

.service-showcase-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

.service-showcase-badge--green {
    background: var(--accent-green);
}

.service-showcase-content h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
}

.service-showcase-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.service-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-showcase-cta:hover {
    background: var(--primary);
    color: #fff;
    gap: 12px;
}

.service-showcase-cta span {
    transition: transform 0.2s ease;
}

.service-showcase-cta:hover span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .service-showcase-card { min-height: 200px; }
    .service-showcase-content { padding: 20px; }
    .service-showcase-content h3 { font-size: 20px; }
}

/* ============================================================
   SERVICES HORIZONTAL SCROLL ROW (replaces grid-wrap)
   ============================================================ */
.services-scroll-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 4px 0 16px;
}

.services-scroll-row .service-tile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 12px;
    border-radius: var(--radius);
}

.services-scroll-row .service-tile .service-tile-icon {
    margin-bottom: 6px;
    width: 36px;
    height: 36px;
}

.services-scroll-row .service-tile h3 {
    margin-bottom: 4px;
}

.services-scroll-row .service-tile p {
    display: none;
}

@media (max-width: 900px) {
    .services-scroll-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================================
   EDUCATION ZIGZAG LAYOUT (replaces education-list)
   ============================================================ */
.education-zigzag {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.education-zigzag .education-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.07);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.education-zigzag .education-item:hover {
    box-shadow: var(--shadow-3d);
    transform: translateY(-3px);
}

/* Alternate: even items shift right */
.education-zigzag .education-item:nth-child(even) {
    margin-left: 40px;
}

.education-zigzag .education-item:nth-child(odd) {
    margin-right: 40px;
}

@media (max-width: 768px) {
    .education-zigzag .education-item:nth-child(even),
    .education-zigzag .education-item:nth-child(odd) {
        margin-left: 0;
        margin-right: 0;
    }
    .education-zigzag .education-item {
        grid-template-columns: 52px 1fr;
    }
}

/* ============================================================
   3D & DYNAMIC ANIMATIONS
   ============================================================ */

/* Seasonal badge subtle pulse */
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(22,163,74,0.25); }
    50% { box-shadow: 0 2px 16px rgba(22,163,74,0.4); }
}

/* Scroll-reveal: elements fade up on scroll (add .reveal class in JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children reveal */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle floating animation for icons */
@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.float-anim {
    animation: subtle-float 4s ease-in-out infinite;
}

/* Shimmer effect for savings values */
@keyframes shimmer-green {
    0%, 100% { text-shadow: 0 0 8px rgba(22,163,74,0.15); }
    50% { text-shadow: 0 0 16px rgba(22,163,74,0.3); }
}

.savings-value {
    animation: shimmer-green 3s ease-in-out infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .reveal-stagger > * { opacity: 1; transform: none; }
}
