* {
    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: #333;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
}

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

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: visible;
}

.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 Button */
.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: #0066cc;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger-line {
    background-color: #0066cc;
}

.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;
}

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

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

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

.nav-link {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #0066cc;
}

.search-icon {
    display: none;
}

/* Roofing Hero Banner Section */
.roofing-hero-banner {
    position: relative;
    min-height: 500px;
    background-image: url('roof-bg.jpg');
    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(0, 0, 0, 0.65);
    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: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

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

.roofing-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
    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-color: #0066cc;
    color: #fff;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    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 12px rgba(0, 102, 204, 0.3);
}

.roofing-hero-cta-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.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 */
.hero {
    padding: 40px 0 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: hidden;
    margin-bottom: 0;
}
.hero:has(.start-screen-compact) {
    padding-top: 12px;
    min-height: 100vh;
    overflow-y: visible;
}
.hero:has(.start-screen-compact) .container {
    min-height: 100vh;
    padding-bottom: 0;
    justify-content: flex-start;
}
.hero:has(.start-screen-compact) .quiz-content {
    flex: 0 1 auto;
}
.hero:has(.start-screen-compact) .cityscape-illustration {
    position: relative;
    bottom: auto;
    left: 50%;
    right: auto;
    margin-left: -50vw;
    width: 100vw;
    max-width: 100vw;
    margin-top: auto;
    flex-shrink: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.04) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='shield' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20 5 L30 10 L30 20 Q30 30 20 35 Q10 30 10 20 L10 10 Z' fill='none' stroke='%230066cc' stroke-width='0.5' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23shield)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

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

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    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: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    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: #0066cc;
    transform: translateY(-2px);
}

.insurance-card.active {
    background: #e6f2ff;
    border-color: #0066cc;
}

.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;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.card-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.hero-description {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.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%, #e6f2ff 100%);
    background-image: 
        linear-gradient(to bottom, transparent 0%, #e6f2ff 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='%23cce5ff'/%3E%3Crect x='100' y='80' width='30' height='50' fill='%23b3d9ff'/%3E%3Crect x='140' y='70' width='30' height='60' fill='%23b3d9ff'/%3E%3Crect x='300' y='60' width='40' height='50' fill='%23b3d9ff'/%3E%3Crect x='350' y='50' width='30' height='60' fill='%23b3d9ff'/%3E%3Crect x='500' y='50' width='35' height='50' fill='%23b3d9ff'/%3E%3Crect x='550' y='40' width='30' height='60' fill='%23b3d9ff'/%3E%3Ccircle cx='200' cy='100' r='15' fill='%23b3d9ff'/%3E%3Ccircle cx='700' cy='50' r='12' fill='%23b3d9ff'/%3E%3Crect x='800' y='30' width='20' height='30' fill='%23b3d9ff'/%3E%3Crect x='830' y='25' width='20' height='35' fill='%23b3d9ff'/%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: #f8f9fa;
    text-align: center;
}

.featured-label {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.logo-item {
    color: #999;
    font-weight: 600;
    font-size: 16px;
}

/* Smart Ways Section */
.smart-ways {
    padding: 60px 0;
    background-color: #fff;
}

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

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

    .section-title {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.section-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0052a3;
}

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

.testimonial-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-savings {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.testimonial-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

/* Section Divider */
.section-divider {
    width: 70%;
    height: 2px;
    margin: 15px auto 20px;
    background: linear-gradient(90deg, transparent 0%, #0066cc 20%, #0066cc 80%, transparent 100%);
    position: relative;
    overflow: visible;
    background-color: transparent;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0066cc;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border: 2px solid #0066cc;
    border-radius: 50%;
    opacity: 0.3;
}

/* Benefits Section */
.benefits {
    padding: 0 0 20px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    margin-top: 0;
}

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

.benefits-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.benefit-item {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

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

.benefit-title {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

.benefit-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Best Companies Section */
.best-companies {
    padding: 60px 0;
    background-color: #fff;
}

.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: #666;
}

/* Calculators Section */
.calculators {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.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: #0066cc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-link:hover {
    color: #0052a3;
}

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

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

.calculator-card {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    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: bold;
    margin-bottom: 30px;
}

.calculator-card .btn-primary {
    background-color: #fff;
    color: #0066cc;
}

.calculator-card .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Inflation Index Section */
.inflation-index {
    padding: 60px 0;
    background-color: #fff;
}

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

.inflation-chart {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.chart-container {
    position: relative;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    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, #0066cc, #4da6ff);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.chart-line.motor {
    background: linear-gradient(to top, #0066cc, #4da6ff);
}

.chart-line.tenants {
    background: linear-gradient(to top, #00cc66, #4dff99);
}

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

.chart-labels {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.chart-months {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.link-arrow {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

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

/* Research Section */
.research {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

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

.tab:hover {
    color: #0066cc;
}

.tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

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

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.article-date {
    font-size: 12px;
    color: #999;
    padding: 15px 15px 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 0 15px 10px;
    line-height: 1.4;
}

.article-author {
    font-size: 14px;
    color: #666;
    padding: 0 15px 15px;
}

/* Trust Section */
.trust {
    padding: 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
    margin-top: 0;
}

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

.trust-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.trust-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

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

.trust-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

.trust-card-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    padding: 40px 0 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    margin-top: 0;
    position: relative;
}

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

.testimonials-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.testimonial-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.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: 700;
    color: #333;
    line-height: 1.3;
}

.testimonial-savings {
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
    line-height: 1.3;
}

.testimonial-rating {
    font-size: 16px;
    line-height: 1;
    color: #22c55e;
    display: inline-block;
    letter-spacing: 2px;
    margin-top: -10px;
}

.testimonial-date {
    font-size: 13px;
    color: #999;
    line-height: 1;
    margin-top: -10px;
}

.testimonial-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.testimonial-text strong {
    color: #333;
    font-weight: 600;
}

/* Gallery Section - Before & After */
.gallery-section {
    padding: 0 0 30px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
    margin-top: 0;
}

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

.gallery-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.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: 600;
    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(34, 197, 94, 0.9);
    color: #fff;
}

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

.gallery-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 12px;
}

.gallery-item-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Related Images Section */
.related-images-section {
    padding: 0 0 30px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    margin-top: 0;
}

.related-images-title {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    margin-bottom: 40px;
}

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

.related-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.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.1);
}

.related-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 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: 600;
    margin: 0;
    text-align: center;
}

/* Responsive Styles for Gallery */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        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(0, 0, 0, 0.7) 0%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .related-images-grid {
        grid-template-columns: 1fr;
    }
    
    .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(0, 0, 0, 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: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    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.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    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.3);
    border-color: rgba(255, 255, 255, 0.5);
    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 Section */
.why-compare {
    padding: 40px 0 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

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

.why-compare-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.why-compare-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.why-compare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

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

.why-compare-title {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

.why-compare-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 40px 0 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    margin-top: 0;
    position: relative;
}

/* Soft separators between stacked sections with same background */
.realtime-quotes-section::before,
.why-compare::before,
.testimonials-section::before,
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.5) 20%, rgba(148, 163, 184, 0.5) 80%, transparent 100%);
}

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

.faq-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

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

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #0066cc;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Experts Section */
.experts {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.expert-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.expert-avatar {
    width: 100px;
    height: 100px;
    background: #e0e0e0;
    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: bold;
    color: #333;
    margin-bottom: 15px;
}

.expert-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #20557f;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 60px;
}

.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: column;
    align-items: flex-start;
    gap: 20px;
}

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

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-link:hover {
    opacity: 0.8;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #20557f;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.8;
}

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

.trustpilot-icon svg path {
    fill: #20557f;
}

.footer-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
    width: 100%;
}

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

.copyright {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    text-align: left;
}

.disclaimer {
    font-size: 13px;
    color: #fff;
    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: #fff;
    line-height: 1.75;
    text-align: left;
    width: 100%;
}

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

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

/* Section headings - "Privacy Policy & Terms" and "Legal & Privacy Information:" */
.disclaimer p strong {
    color: #fff;
    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;
}

/* Links styling */
.disclaimer a {
    color: #fff;
    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: #fff;
    text-decoration-thickness: 1.5px;
    opacity: 0.9;
}

/* Last paragraph with bullet-separated links */
.disclaimer p:last-child {
    margin-top: 6px;
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .smart-ways-content {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .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: 40px 0 0;
    }
    
    .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: 20px;
        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: 100px;
    }
    
    .hero .container {
        min-height: auto;
    }
    
    .section-divider {
        margin: 10px auto 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Mobile Navigation Styles - Dropdown Menu */
    .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;
    }
    
    /* Show hamburger menu on mobile */
    .nav-toggle {
        display: flex;
    }
    
    /* Hide navigation menu by default on mobile */
    .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: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border: 2px solid #0066cc !important;
        border-radius: 8px !important;
        z-index: 10000 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Show navigation menu when nav-open class is added */
    .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 #f0f0f0;
        text-align: left;
        color: #0066cc;
        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: #f8f9fa;
        color: #0066cc;
    }
    
    .insurance-cards {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .insurance-card {
        padding: 10px;
        width: 100px;
        height: 100px;
        min-width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .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 {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-card {
        padding: 30px 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        padding: 30px 25px;
    }
    
    .why-compare-grid {
        grid-template-columns: 1fr;
    }
    
    .why-compare-card {
        padding: 30px 25px;
    }
    
    .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: 30px;
    }
    
    .footer-right-section {
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-link:not(:last-child)::after {
        content: ' | ';
        margin: 0 8px;
        color: #fff;
        opacity: 0.7;
    }
    
    .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 - Glassmorphism/iOS Design */
.coming-soon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 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.7);
    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: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    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.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    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: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coming-soon-close:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.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: 700;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

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

.coming-soon-message {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .coming-soon-content {
        padding: 36px 28px;
        max-width: 90%;
        border-radius: 20px;
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
    }
    
    .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 Styles */
.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;
    padding: 0px 16px 32px 16px;
    width: 100%;
    max-width: 896px;
    align-items: center;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.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: #ffffff;
    border-radius: 16px;
    border: 1px solid #2e88cf;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

@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: 999px;
    background-color: #d5d5d5;
    overflow: hidden;
}

.inline-progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, #1a6fb8 0%, #2e88cf 50%, #4fa3e3 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.inline-progress-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2e88cf;
    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: 700;
    color: #000000;
    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: #666;
    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;
}

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

.benefit-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e8f3fb;
}

.benefit-icon {
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

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

.benefit-text strong {
    font-weight: 600;
    color: #2e88cf;
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-text span {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.start-note {
    font-size: 14px;
    color: #888;
    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-weight: 400;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

@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: #666;
}

@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%;
    }
}

/* Mobile-only width adjustment for Q2 and Q3 answer buttons */
@media (max-width: 600px) {
    #q1 .answer-button,
    #q2 .answer-button {
        width: 80vw !important;
        max-width: 80vw !important;
    }
}

.contact-input {
    padding: 16px;
    border: 2px solid #e8f3fb;
    border-radius: 8px;
    font-size: 16px;
    width: 86vw !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

.email-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e4eb;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.email-suggestion-item {
    padding: 8px 12px;
    font-size: 14px;
    color: #1f2933;
    cursor: pointer;
}

.email-suggestion-item:hover,
.email-suggestion-item.active {
    background-color: #f1f5fd;
}

.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, #1d8dde, #36b8d9, #6f8af7) border-box;
    border-radius: 16px;
    color: #0f1f33;
    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 4px 12px rgba(0, 98, 188, 0.16);
    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(#f0f8ff, #f0f8ff) padding-box,
        linear-gradient(135deg, #1d8dde, #36b8d9, #6f8af7) border-box;
    box-shadow: 0 6px 16px rgba(0, 98, 188, 0.24);
    transform: translateY(-1px);
}

.answer-button:active,
.answer-button.pressed {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 98, 188, 0.2);
}

/* Real-Time Appointments Section */
.realtime-quotes-section {
    padding: 40px 0 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.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: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    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, #0066cc 0%, #0052a3 100%);
    z-index: 10;
}

.quotes-table thead th {
    padding: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    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 thead th:only-child {
    text-align: center;
}

.quotes-table tbody td:last-child {
    text-align: center;
}

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

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

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

.quotes-table tbody tr:hover {
    background-color: #e6f2ff;
}

.quotes-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
}

.quotes-table tbody td.durability-rating {
    font-weight: 600;
    color: #0066cc;
    text-align: center;
    font-size: 15px;
}

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

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

/* Real-Time Quotes (sample) block */
.realtime-quotes-live {
    margin-top: 32px;
}

.realtime-quotes-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 4px;
    text-align: left;
}

.realtime-quotes-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 10px;
    margin-bottom: 14px;
    text-align: center;
}

.realtime-quotes-table-container {
    margin-top: 0;
}

.realtime-quotes-table {
    width: 100%;
}

.realtime-quotes-table thead th {
    text-align: left;
}

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

.realtime-quotes-table tbody td:nth-child(3),
.realtime-quotes-table tbody td:nth-child(4) {
    text-align: center;
}

.realtime-quote-name {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    opacity: 0.9;
    user-select: none;
}

.realtime-quote-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: #e6f2ff;
    color: #0066cc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .realtime-quotes-live {
        margin-top: 24px;
    }
    .realtime-quotes-table-container {
        overflow-x: visible;
    }
    .realtime-quotes-table {
        min-width: 0;
    }
}

/* Roof Replacement Costs by Home Size Section */
.roof-costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.roof-cost-table-wrapper {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.roof-cost-material-title {
    font-size: 16px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.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, #0066cc 0%, #0052a3 100%);
}

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

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

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

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

.roof-cost-table tbody tr:hover {
    background-color: #e6f2ff;
}

.roof-cost-table tbody td {
    padding: 12px;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

.roof-cost-table tbody td.cost-cell {
    font-weight: 700;
    color: #059669;
    font-size: 15px;
}

/* Price Disclaimer */
.price-disclaimer {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    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;
    }
    
    .roof-cost-material-title {
        font-size: 14px;
    }
    
    .roof-cost-table thead th {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .roof-cost-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .roof-cost-table tbody td.cost-cell {
        font-size: 14px;
    }
    
    .price-disclaimer {
        font-size: 10px;
        margin-top: 15px;
        padding-top: 12px;
    }
}

/* Window Replacement Section */
.window-replacement-section {
    padding: 0 0 30px 0;
    background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
    margin-top: 0;
}

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

.window-replacement-intro {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-top: 20px;
}

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

.window-replacement-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.window-replacement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

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

.window-replacement-title {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

.window-replacement-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.window-replacement-note {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 25px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e8f3fb;
}

.window-replacement-note p {
    font-size: 16px;
    color: #333;
    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: 30px 25px;
    }
}

/* End CTA Section */
.end-cta-section {
    padding: 0 0 30px 0;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 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%, #fff 20%, #fff 80%, transparent 100%);
}

.end-cta-section .section-divider::before {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.end-cta-section .section-divider::after {
    border-color: #fff;
}

.cta-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #0066cc;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Quiz and 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 */
.loading-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
    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 #e8f3fb;
    border-top: 5px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-title {
    font-size: 28px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
    line-height: 1.3;
}

.loading-message {
    font-size: 18px;
    color: #666;
    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;
    }
}

/* Thank You Section */
.thank-you-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

.thank-you-title {
    font-size: 42px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 12px;
    line-height: 1.2;
}
.thank-you-content .section-divider {
    margin: 8px auto 12px;
}

.thank-you-message {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}

.thank-you-submessage {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.thank-you-countdown-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: #e8f4fc;
    border: 1px solid #b3d9f5;
    border-radius: 8px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.thank-you-countdown-label {
    font-size: 12px;
    color: #555;
}
.thank-you-countdown {
    font-size: 14px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 0.5px;
}
.thank-you-agent-msg {
    font-size: 16px;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 4px;
}
.thank-you-quotes-msg {
    font-size: 17px;
    color: #333;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}
.thank-you-call-hint {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

.thank-you-call-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    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 25px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
}

.thank-you-call-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 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: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.thank-you-back-button {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #0066cc;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.thank-you-back-button:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

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

@media (max-width: 768px) {
    .thank-you-section {
        padding: 40px 0;
    }
    
    .thank-you-content {
        padding: 20px 16px;
    }
    
    .thank-you-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .thank-you-message {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .thank-you-submessage {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .thank-you-countdown-box {
        padding: 8px 12px;
        margin-top: 10px;
        margin-bottom: 10px;
        max-width: 260px;
    }
    .thank-you-countdown-label {
        font-size: 11px;
    }
    .thank-you-countdown {
        font-size: 13px;
    }
    .thank-you-agent-msg {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .thank-you-quotes-msg {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .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: 12px;
        box-shadow: 0 4px 15px rgba(0, 102, 204, 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-style) Section */
.special-offers-section {
    padding: 40px 0 60px;
    background: #ffffff;
}

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

.special-offers-subtitle {
    font-size: 16px;
    color: #555;
    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: 12px;
    background: #f8fafc;
    border: 1px solid #e0e7ff;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.special-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: #2563eb;
    background-color: #eef3ff;
}

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

.special-offer-source {
    font-size: 14px;
    color: #6b7280;
    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;
    }
}

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

/* Insurance Hero Banner Styles */
.insurance-hero-banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.insurance-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* First screen: badge + headline + quiz visible without scroll */
.start-screen-compact .insurance-badge {
    margin-bottom: 12px;
}
.insurance-hero-above-quiz {
    margin-bottom: 16px;
    padding: 0;
}
.insurance-hero-above-quiz .insurance-hero-title {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.2;
}
.insurance-hero-above-quiz .insurance-hero-description {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .insurance-hero-above-quiz .insurance-hero-title { font-size: 34px; }
    .insurance-hero-above-quiz .insurance-hero-description { font-size: 16px; }
}
.quiz-soft-message {
    display: none;
    margin-bottom: 16px;
    padding: 12px 18px;
    font-size: 15px;
    color: #1a6fb8;
    background: #e8f4fc;
    border: 1px solid #b3d9f5;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.quiz-soft-message.quiz-soft-message-visible {
    opacity: 1;
}
.inline-question-first {
    margin-top: 0;
    margin-bottom: 20px;
}
.inline-question-first .quiz-intro-text {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-top: 12px;
    margin-bottom: 0;
}
.answers-container-inline {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-items: stretch !important;
    margin: 0 auto !important;
}
.answers-container-inline .answer-button:nth-child(3) {
    grid-column: 1 / -1;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #1d8dde, #36b8d9, #6f8af7) border-box;
    color: #0f1f33;
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 98, 188, 0.16);
    background-size: 180% 180%;
    animation: animatedGradientBorder 8s ease-in-out infinite alternate;
    height: auto;
    padding-top: 18px;
    padding-bottom: 16px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}
.answers-container-inline .answer-button:nth-child(3):hover {
    background:
        linear-gradient(#f0f8ff, #f0f8ff) padding-box,
        linear-gradient(135deg, #1d8dde, #36b8d9, #6f8af7) border-box;
    box-shadow: 0 6px 16px rgba(0, 98, 188, 0.24);
    transform: translateY(-1px);
}
.answers-container-inline .answer-button:nth-child(3) .bundle-main-label {
    display: block;
    font-size: 18px;
    color: #0f1f33;
}
.answers-container-inline .answer-button:nth-child(3) .bundle-sub-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f1f33;
    opacity: 0.85;
}
@media (max-width: 480px) {
    .answers-container-inline .answer-button:nth-child(3) {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .answers-container-inline .answer-button:nth-child(3) .bundle-main-label {
        font-size: 17px;
    }
    .answers-container-inline .answer-button:nth-child(3) .bundle-sub-label {
        font-size: 10px;
    }
}
.insurance-hero-below {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e8f3fb;
}
.insurance-hero-below .insurance-hero-title {
    font-size: 32px;
    margin-bottom: 8px;
}
.insurance-hero-below .insurance-hero-subtitle {
    font-size: 26px;
    margin-bottom: 12px;
}
.insurance-hero-below .insurance-hero-description {
    font-size: 16px;
    margin-bottom: 16px;
}
.insurance-hero-below .insurance-benefits {
    margin-bottom: 20px;
    gap: 8px;
}
.insurance-hero-below .insurance-benefit-item {
    padding: 8px 12px;
}
.insurance-hero-below .insurance-benefit-item span:not(.check-icon) {
    font-size: 14px;
}
@media (min-width: 768px) {
    .insurance-hero-below .insurance-hero-title { font-size: 36px; }
    .insurance-hero-below .insurance-hero-subtitle { font-size: 30px; }
}

.insurance-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
    line-height: 1.2;
}

.insurance-hero-subtitle {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
    line-height: 1.2;
}

.insurance-hero-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.insurance-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.insurance-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e8f3fb;
    text-align: left;
}

.check-icon {
    color: #22c55e;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.insurance-benefit-item span:not(.check-icon) {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .insurance-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .insurance-hero-title {
        font-size: 28px;
    }
    
    .insurance-hero-subtitle {
        font-size: 24px;
    }
    
    .insurance-hero-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .insurance-benefits {
        padding: 0 10px;
    }
    
    .insurance-benefit-item {
        padding: 10px 14px;
    }
    
    .insurance-benefit-item span:not(.check-icon) {
        font-size: 14px;
    }
}

/* Legal & Contact page content */
.page-content {
    padding: 40px 0 60px;
    min-height: 50vh;
}
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}
.legal-content .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 8px;
}
.legal-content .page-updated {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}
.legal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0066cc;
    margin-top: 28px;
    margin-bottom: 12px;
}
.legal-content a {
    color: #0066cc;
    text-decoration: underline;
}
.legal-content a:hover {
    color: #004499;
}

.contact-intro {
    margin-bottom: 24px;
}
.contact-info {
    margin-bottom: 28px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e8f3fb;
}
.contact-info p {
    margin-bottom: 8px;
}
.contact-form {
    max-width: 480px;
}
.contact-content .form-group {
    margin-bottom: 18px;
}
.contact-content .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.contact-content .form-group .required {
    color: #c00;
}
.contact-content .form-group input,
.contact-content .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #e8f3fb;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.contact-content .form-group input:focus,
.contact-content .form-group textarea:focus {
    outline: none;
    border-color: #2e88cf;
}
.contact-submit {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0066cc 0%, #2e88cf 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
}
.contact-submit:hover {
    background: linear-gradient(135deg, #004499 0%, #1a6fb8 100%);
}
.logo a {
    display: block;
    text-decoration: none;
}
