/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-blue: #1e40af;
    --primary-blue-hover: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --secondary-gold: #d97706;
    --secondary-gold-hover: #b45309;
    --success-green: #059669;
    --error-red: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Container */
    --container-max-width: 1200px;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8.5rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

/* Compact header for calculator page */
.header.compact {
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.header.compact .nav {
    min-height: 4rem;
    padding: 0.5rem 0;
}

.header.compact .nav-logo {
    height: 2.5rem;
}

.header.compact .nav-contact .nav-phone {
    font-size: var(--text-sm);
}

.header.compact .phone-icon {
    width: 1rem;
    height: 1rem;
}

/* Calculator section adjustments for compact header */
.calculator-section {
    padding-top: var(--space-lg);
}

.header.compact .nav {
    min-height: 4rem;
    padding: 0.5rem 0;
}

.header.compact .nav-logo {
    height: 2.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--primary-blue);
}

.nav-logo {
    height: 8.5rem;
    width: auto;
    object-fit: contain;
}

.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-title {
    font-size: var(--text-lg);
}

.nav-contact {
    display: flex;
    align-items: center;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.phone-icon {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 767px) {
    .nav-logo {
        height: 2.5rem;
    }
    
    .nav-title {
        font-size: var(--text-base);
    }
    
    .nav-phone {
        font-size: var(--text-sm);
    }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 5rem;
    right: var(--space-sm);
    z-index: 60;
    max-width: 20rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 500;
}

.flash-error {
    background: #fef2f2;
    color: var(--error-red);
    border: 1px solid #fecaca;
}

.flash-success {
    background: #ecfdf5;
    color: var(--success-green);
    border: 1px solid #a7f3d0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 2.75rem;
}

.btn:focus {
    outline: 2px solid var(--primary-blue-light);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-gold);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-gold-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
    min-height: 3.5rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    color: white;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-highlight {
    display: block;
    color: var(--secondary-gold);
    margin-top: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary-gold);
}

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

@media (max-width: 767px) {
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Trust Section */
.trust-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.trust-item {
    text-align: center;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

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

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.trust-icon svg {
    width: 2rem;
    height: 2rem;
}

.trust-item h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.trust-item p {
    color: var(--gray-600);
}

/* Calculator Preview */
.calculator-preview {
    padding: var(--space-3xl) 0;
    background: white;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: white;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.preview-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.preview-text h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

@media (max-width: 768px) {
    .preview-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .preview-text h2 {
        font-size: var(--text-2xl);
    }
}

.preview-text p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    color: var(--gray-600);
}

.preview-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.preview-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
}

.preview-list svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success-green);
}

.calculator-mockup {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.calculator-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--success-green));
}

.mockup-header {
    background: var(--primary-blue);
    color: white;
    padding: var(--space-lg);
    font-weight: 600;
    text-align: center;
}

.mockup-content {
    padding: var(--space-2xl);
}

.mockup-progress {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.progress-bar-demo {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill-demo {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--success-green));
    transition: width 2s ease;
    animation: progressPulse 2s ease infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.progress-text-demo {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.mockup-field-group {
    margin-bottom: var(--space-xl);
}

.mockup-field {
    margin-bottom: var(--space-lg);
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
}

.mockup-field label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.field-icon {
    margin-right: var(--space-sm);
    font-size: var(--text-lg);
}

.mockup-select {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    font-weight: 500;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.mockup-checkbox {
    background: white;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.mockup-checkbox.selected {
    background: #f0f9f0;
    border-color: var(--success-green);
    color: var(--success-green);
    transform: translateX(4px);
}

.severity-indicator {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 2px solid #f59e0b;
}

.severity-level {
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.severity-level.major {
    color: #d97706;
}

.severity-details {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.mockup-results {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin-top: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.mockup-results::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.result-header {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.result-amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-details {
    margin-bottom: var(--space-lg);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.result-value {
    font-weight: 600;
    font-size: var(--text-sm);
}

.case-strength {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.strength-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.strength-indicator.strong {
    background: rgba(34, 197, 94, 0.2);
}

.strength-icon {
    margin-right: var(--space-sm);
}

.urgency-notice {
    font-size: var(--text-sm);
    opacity: 0.9;
    font-style: italic;
}

@media (max-width: 768px) {
    .result-amount {
        font-size: var(--text-2xl);
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

@media (max-width: 768px) {
    .preview-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .preview-text h2 {
        font-size: var(--text-2xl);
    }
}

/* Education Section */
.education-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--gray-800);
    position: relative;
    padding-bottom: var(--space-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-header .section-title {
    margin-bottom: var(--space-md);
}

.section-header .section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header.with-background {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-3xl);
}

.section-header.with-background .section-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header.with-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: white;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.section-icon svg {
    width: 2rem;
    height: 2rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.education-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease;
}

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

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--secondary-gold);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.card-icon svg {
    width: 2rem;
    height: 2rem;
}

.education-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.education-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Service Areas */
.service-areas {
    padding: var(--space-3xl) 0;
    background: white;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.area-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.2s ease;
}

.area-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.area-card.primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.area-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.area-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.area-card.primary p {
    color: rgba(255, 255, 255, 0.9);
}



/* Final CTA */
.final-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.cta-content p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 767px) {
    .cta-content h2 {
        font-size: var(--text-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Calculator Page Styles */
.calculator-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--gray-50);
    min-height: 100vh;
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.calculator-header h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--gray-800);
}

.calculator-header p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--space-md);
}

.calculator-disclaimer {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-md);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
}

.calculator-disclaimer p {
    font-size: var(--text-sm);
    color: var(--gray-700);
    margin: 0;
    line-height: 1.5;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.calculator-form {
    padding: var(--space-2xl);
}

/* Progress Bar */
.progress-container {
    margin-bottom: var(--space-3xl);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.3s ease;
    width: 16.67%;
}

.progress-text {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.step-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-blue);
}

.step-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
}

.form-control {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: border-color 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control:invalid {
    border-color: var(--error-red);
}

textarea.form-control {
    resize: vertical;
    min-height: 6rem;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-content {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.checkbox-content:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.checkbox-input:checked + .checkbox-content {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

.checkbox-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-blue);
}

.checkbox-input:checked + .checkbox-content .checkbox-icon {
    color: white;
}

.checkbox-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.checkbox-content p {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.checkbox-input:checked + .checkbox-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Regular Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background: var(--gray-50);
}

.checkbox-label .checkbox-input {
    position: static;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.25rem;
    accent-color: var(--primary-blue);
}

.checkbox-text {
    font-weight: 500;
    color: var(--gray-700);
}

/* Calculation Results */
.calculation-result {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.result-card {
    background: var(--success-green);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.result-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.estimate-range {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.estimate-separator {
    margin: 0 var(--space-sm);
    opacity: 0.8;
}

.estimate-disclaimer {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.5;
}

.next-steps {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.next-steps h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--gray-800);
}

.steps-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
}

.steps-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-700);
}

.steps-list svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success-green);
}

/* Personalized Insights */
.personalized-insights {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.personalized-insights h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
    text-align: left;
}

.key-factors {
    margin-bottom: var(--space-md);
}

.key-factors h5 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.9);
}

.key-factors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.key-factors li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
}

.key-factors svg {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.insight-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.insight-note svg {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.insight-note strong {
    color: rgba(255, 255, 255, 0.95);
}

.urgency-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin: var(--space-sm) 0;
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.urgency-alert svg {
    width: 1rem;
    height: 1rem;
    color: #ef4444;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.urgency-alert strong {
    color: white;
}

.case-strength {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.case-strength svg {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.case-strength.strong {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.case-strength.strong svg {
    color: #22c55e;
}

.case-strength.moderate {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.case-strength.moderate svg {
    color: #3b82f6;
}

.case-strength.emerging {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.case-strength.emerging svg {
    color: #fbbf24;
}

.case-strength strong {
    color: white;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 767px) {
    .calculator-header h1 {
        font-size: var(--text-3xl);
    }
    
    .calculator-form {
        padding: var(--space-lg);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}

/* Thank You Page */
.thank-you-section {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin-bottom: var(--space-xl);
}

.icon-large {
    width: 5rem;
    height: 5rem;
    color: var(--success-green);
}

.thank-you-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--gray-800);
}

.thank-you-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-3xl);
}

.next-steps-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-3xl);
    text-align: left;
}

.next-steps-card h2 {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--gray-800);
}

.steps-timeline {
    display: grid;
    gap: var(--space-xl);
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.timeline-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-options {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-3xl);
}

.contact-options h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--gray-800);
}

.contact-options p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.additional-info {
    margin-bottom: var(--space-3xl);
}

.additional-info h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--gray-800);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.info-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.info-icon {
    width: 3rem;
    height: 3rem;
    color: var(--secondary-gold);
    margin-bottom: var(--space-lg);
}

.info-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.return-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.resources-section {
    padding: var(--space-3xl) 0;
    background: white;
}

.resources-section h2 {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3xl);
    color: var(--gray-800);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--gray-50);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease;
}

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

.resource-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

.resource-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.resource-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .thank-you-title {
        font-size: var(--text-3xl);
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .return-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--secondary-gold);
}

.footer-text {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-subtitle {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-xs);
    color: var(--gray-300);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-300);
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary-gold);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
}

.footer-disclaimer {
    text-align: center;
}

.footer-disclaimer p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-disclaimer {
    grid-column: 1 / -1;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
}

.disclaimer-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.disclaimer-content p {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

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

.disclaimer-content a {
    color: var(--secondary-gold);
    text-decoration: none;
    font-weight: 500;
}

.disclaimer-content a:hover {
    text-decoration: underline;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-bottom: 0 !important;
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Disclaimer Page Styles */
.disclaimer-page {
    padding: var(--space-3xl) 0;
    background: white;
}

.disclaimer-page .disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-page h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-lg);
}

.disclaimer-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
    border-radius: 2px;
}

.disclaimer-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-blue);
}

.disclaimer-section h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.disclaimer-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.disclaimer-notice {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
    border-radius: var(--radius-lg);
    margin-top: var(--space-3xl);
}

.disclaimer-notice .notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.disclaimer-notice .notice-icon svg {
    width: 2rem;
    height: 2rem;
}

.disclaimer-notice .notice-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

.disclaimer-notice .notice-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .disclaimer-notice {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .disclaimer-section {
        padding: var(--space-lg);
    }
    
    .disclaimer-page h1 {
        font-size: var(--text-3xl);
    }
}

/* Residential Defects Section */
.residential-defects {
    padding: var(--space-3xl) 0;
    background: white;
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.builder-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.builder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gray-300), var(--gray-200));
    transition: background 0.3s ease;
}

.builder-card:hover::before {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
}

.builder-card.featured::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

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

.builder-card.featured {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
    border-color: var(--primary-blue);
}

.builder-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.builder-card.featured .builder-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.builder-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.builder-card.featured .builder-header::after {
    background: white;
}

.builder-card:hover .builder-header::after {
    width: 80px;
}

.builder-type {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
    opacity: 0.8;
}

.builder-card.featured .builder-type {
    color: rgba(255, 255, 255, 0.8);
}

.builder-card h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
    color: var(--gray-800);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.builder-card.featured h3 {
    color: white;
    font-size: var(--text-3xl);
}

.builder-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.builder-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.defect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.builder-card.featured .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.residential-notice {
    background: linear-gradient(135deg, var(--secondary-gold), #d97706);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.residential-notice h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
}

.residential-notice p {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

/* Commercial Defects Section */
.commercial-defects {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.commercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.commercial-category {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.commercial-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-gold);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--secondary-gold), #d97706);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.category-icon svg {
    width: 2rem;
    height: 2rem;
}

.commercial-category h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--gray-800);
}

.commercial-category p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.defect-list {
    list-style: none;
    padding: 0;
}

.defect-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.defect-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
    font-weight: bold;
}

.commercial-impact {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.impact-content h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    text-align: center;
    color: white;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--secondary-gold);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-content p {
    text-align: center;
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: var(--secondary-gold);
}

.cta-button.secondary:hover {
    background: #d97706;
}

@media (max-width: 768px) {
    .builder-grid {
        grid-template-columns: 1fr;
    }
    
    .commercial-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .residential-notice,
    .commercial-impact {
        padding: var(--space-xl);
    }
    
    .builder-card,
    .commercial-category {
        padding: var(--space-lg);
    }
}

/* Terms of Service Page Styles */
.terms-page {
    padding: var(--space-3xl) 0;
    background: white;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-lg);
}

.terms-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
    border-radius: 2px;
}

.terms-notice {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--secondary-gold), #d97706);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3xl);
}

.terms-notice .notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.terms-notice .notice-icon svg {
    width: 2rem;
    height: 2rem;
}

.terms-notice .notice-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

.terms-notice .notice-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.terms-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary-gold);
}

.terms-section h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.terms-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.terms-footer {
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    text-align: center;
}

.terms-footer p {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.terms-footer p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .terms-notice {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .terms-section {
        padding: var(--space-lg);
    }
    
    .terms-content h1 {
        font-size: var(--text-3xl);
    }
}

/* Defect Showcase Section */
.defect-showcase {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.defect-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.defect-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.defect-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.defect-card.featured {
    grid-column: span 1;
    border: 2px solid var(--primary-blue);
}

.defect-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.defect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.defect-card:hover .defect-image img {
    transform: scale(1.05);
}

.defect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.8), rgba(30, 64, 175, 0.4));
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.defect-type {
    background: var(--secondary-gold);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.defect-content {
    padding: var(--space-xl);
}

.defect-content h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.defect-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.defect-symptoms {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.defect-symptoms li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.defect-symptoms li::before {
    content: "•";
    color: var(--error-red);
    font-weight: bold;
    font-size: var(--text-lg);
    line-height: 1;
    margin-top: 2px;
}

.featured-cta {
    margin-top: var(--space-lg);
}

.showcase-footer {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.urgency-notice {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.notice-icon svg {
    width: 2rem;
    height: 2rem;
}

.notice-content h4 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
}

.notice-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .defect-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .defect-card.featured {
        grid-column: span 1;
    }
    
    .urgency-notice {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
}

/* Legal Expertise Section */
.legal-expertise {
    padding: var(--space-3xl) 0;
    background: var(--gray-800);
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.legal-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legal-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--secondary-gold);
    color: var(--gray-800);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.legal-icon svg {
    width: 2rem;
    height: 2rem;
}

.legal-text h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: white;
    margin: 0;
}

.legal-text p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.legal-importance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.importance-card {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.importance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--secondary-gold);
    color: var(--gray-800);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
}

.importance-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.importance-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-sm);
}

.importance-card p {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

/* Legal Features */
.legal-features {
    margin-top: var(--space-lg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-point {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-size: var(--text-base);
}

.feature-point .feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary-gold);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .legal-background {
        width: 100%;
        opacity: 0.05;
    }
    
    .legal-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .legal-importance {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* Construction Timeline Section */
.construction-timeline {
    padding: var(--space-3xl) 0;
    background: white;
}

.timeline-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.timeline-content {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--error-red) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
}

.timeline-item.critical {
    margin-top: var(--space-lg);
}

.timeline-marker {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.timeline-marker.immediate {
    background: var(--success-green);
}

.timeline-marker.emerging {
    background: var(--secondary-gold);
}

.timeline-marker.serious {
    background: var(--primary-blue);
}

.timeline-marker.critical {
    background: var(--error-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }
}

.timeline-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    flex: 1;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.critical-card {
    border-color: var(--error-red);
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.timeline-period {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.critical-card .timeline-period {
    background: var(--error-red);
}

.timeline-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.timeline-card p {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.timeline-examples {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.timeline-examples li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.timeline-examples li::before {
    content: "→";
    color: var(--primary-blue);
    font-weight: bold;
    font-size: var(--text-base);
}

.critical-cta {
    margin-top: var(--space-lg);
}

.timeline-footer {
    margin-top: var(--space-3xl);
    text-align: center;
}

.legal-notice {
    max-width: 700px;
    margin: 0 auto;
}

.notice-highlight {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--gray-50);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
}

.notice-highlight .notice-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-text {
    color: var(--gray-700);
    line-height: 1.6;
}

.notice-text strong {
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .timeline-track::before {
        left: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .timeline-marker {
        width: 3rem;
        height: 3rem;
    }
    
    .notice-highlight {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

/* Floating Chatbot */
.floating-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: inherit;
}

.chat-button {
    min-width: 180px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    color: white;
    padding: 0 var(--space-lg);
    animation: subtle-bounce 3s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.chat-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.4);
    animation: none;
}

.chat-button-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-button-content svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.chat-button-text {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-widget {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid var(--primary-blue);
}

.floating-chat.chat-open .chat-widget {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.floating-chat.chat-open .chat-button {
    transform: scale(0.95);
    animation: none;
}

.chat-widget-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: white;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-widget-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-widget-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-widget-details h4 {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
}

.chat-widget-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-close svg {
    width: 20px;
    height: 20px;
}

.chat-widget-messages {
    padding: var(--space-lg);
    max-height: 280px;
    overflow-y: auto;
    background: var(--gray-50);
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message-avatar svg {
    width: 16px;
    height: 16px;
}

.chat-message-content {
    background: white;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.chat-message-content p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--gray-700);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.suggestion-btn {
    background: var(--gray-100);
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.chat-widget-input {
    padding: var(--space-md);
    background: white;
    border-top: 1px solid var(--gray-200);
}

.chat-input-container {
    display: flex;
    gap: var(--space-sm);
}

.chat-widget-text-input {
    flex: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 10px 12px;
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-widget-text-input:focus {
    border-color: var(--primary-blue);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.chat-send-btn:hover {
    background: var(--primary-blue-hover);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
}

.chat-widget-footer {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.chat-widget-footer p {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.chat-widget-footer svg {
    width: 12px;
    height: 12px;
}

.chat-widget-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.chat-widget-footer a:hover {
    text-decoration: underline;
}

/* Water Intrusion Section */
.water-intrusion {
    background: linear-gradient(180deg, #f0f9ff 0%, white 100%);
    padding: var(--space-3xl) 0;
}

.water-intro {
    margin-bottom: var(--space-3xl);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.intro-text h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.intro-text p {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--gray-600);
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-blue);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.4;
}

.water-causes {
    margin-bottom: var(--space-3xl);
}

.subsection-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-bottom: var(--space-md);
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
    border-radius: 2px;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.cause-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

.cause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.cause-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.cause-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.cause-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cause-card li {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    color: var(--gray-600);
    position: relative;
    line-height: 1.6;
}

.cause-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2em;
}

.water-consequences {
    background: var(--gray-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3xl);
}

.consequences-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.consequences-header svg {
    width: 2rem;
    height: 2rem;
    color: var(--error-red);
}

.consequences-header h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.consequences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.consequence-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--error-red);
}

.consequence-item h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
}

.consequence-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.water-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid var(--secondary-gold);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.warning-content {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--secondary-gold);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.warning-icon svg {
    width: 2rem;
    height: 2rem;
}

.warning-text {
    flex: 1;
}

.warning-text h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.warning-signs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.sign-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sign-column li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--gray-700);
    line-height: 1.6;
}

.sign-column li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-note {
    background: rgba(217, 119, 6, 0.1);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary-gold);
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}

.warning-note strong {
    color: var(--secondary-gold);
}

.water-action {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.action-content h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: white;
}

.action-content p {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .warning-content {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-signs {
        grid-template-columns: 1fr;
    }
    
    .sign-column li {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
    }
    
    .causes-grid {
        grid-template-columns: 1fr;
    }
    
    .consequences-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .floating-chat {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-widget {
        width: 300px;
        max-height: 400px;
    }
    
    .chat-button {
        min-width: 160px;
        height: 50px;
        padding: 0 var(--space-md);
    }
    
    .chat-button-content svg {
        width: 20px;
        height: 20px;
    }
    
    .chat-button-text {
        font-size: var(--text-xs);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero,
    .flash-messages,
    .form-navigation {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c4a7c 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.blog-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: var(--space-3xl) 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-3xl);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--space-xl);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-navy);
    color: white;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-gray);
    font-size: var(--text-sm);
}

.blog-date i {
    width: 16px;
    height: 16px;
}

.blog-card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--primary-navy);
}

.blog-card-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: var(--text-sm);
}

.blog-author i {
    width: 16px;
    height: 16px;
}

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 0.75rem;
}

.blog-read-more i {
    width: 18px;
    height: 18px;
}

.blog-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-gray);
}

.blog-empty i {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    color: var(--gray-300);
}

.blog-empty h3 {
    font-size: var(--text-2xl);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.blog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: var(--primary-navy);
    color: white;
}

.pagination-btn i {
    width: 18px;
    height: 18px;
}

.pagination-info {
    color: var(--text-gray);
    font-weight: 600;
}

.blog-sidebar {
    position: sticky;
    top: var(--space-lg);
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-200);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-navy);
    color: white;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--text-dark);
    border-radius: 20px;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary-navy);
    color: white;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c4a7c 100%);
    color: white;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.blog-post-page {
    padding: var(--space-3xl) 0;
}

.post-header {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.post-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--primary-navy);
}

.post-breadcrumb i {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.post-title {
    font-size: var(--text-4xl);
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--gray-200);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: var(--text-sm);
}

.meta-item i {
    width: 16px;
    height: 16px;
}

.meta-item a {
    color: var(--primary-navy);
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.post-featured-image {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.post-content {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.post-content p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: var(--text-2xl);
    color: var(--text-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.post-content h3 {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-navy);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-gray);
}

.post-tags {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.post-tags h4 {
    font-size: var(--text-base);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--text-dark);
    border-radius: 20px;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all 0.3s;
}

.post-tag:hover {
    background: var(--primary-navy);
    color: white;
}

.post-footer {
    max-width: 900px;
    margin: 0 auto;
}

.post-cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2c4a7c 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.cta-content h3 {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
}

.post-navigation {
    text-align: center;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: var(--text-3xl);
    }
    
    .blog-subtitle {
        font-size: var(--text-base);
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-title {
        font-size: var(--text-xl);
    }
    
    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .post-title {
        font-size: var(--text-2xl);
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content h3 {
        font-size: var(--text-xl);
    }
}

/* Navigation Links */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-navy);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}
