:root {
    --primary: #0a2342;
    --accent: #2ca58d;
    --light: #f4f7f5;
    --text: #333;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-head: 'Merriweather', serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-main); 
    color: var(--text); 
    line-height: 1.6; 
    background-color: var(--light); 
}

h1, h2, h3 { 
    font-family: var(--font-head); 
    font-weight: 700; 
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

/* Navbar */
.navbar { 
    background: var(--white); 
    padding: 1rem 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: var(--primary); 
}

.highlight { 
    color: var(--accent); 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn-primary { 
    background: var(--accent); 
    color: var(--white); 
    padding: 0.8rem 1.5rem; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    transition: 0.3s; 
    text-decoration: none; 
    display: inline-block; 
}

.btn-primary:hover { 
    background: #238a75; 
    transform: translateY(-2px);
}

.btn-secondary { 
    border: 2px solid var(--primary); 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    transition: 0.3s; 
    background: transparent;
    text-decoration: none;
    color: var(--primary);
    display: inline-block;
}

.btn-secondary:hover { 
    background: var(--primary); 
    color: var(--white); 
}

.btn-full { 
    display: block; 
    width: 100%; 
    text-align: center; 
    background: var(--primary); 
    color: white; 
    padding: 1rem; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px; 
    margin-top: 1rem; 
    transition: 0.3s;
}

.btn-full:hover {
    background: #0d3a6e;
}

.btn-outline-light { 
    border: 2px solid white; 
    color: white; 
    padding: 0.8rem 1.5rem; 
    border-radius: 4px; 
    text-decoration: none; 
    display: inline-block; 
    font-weight: bold; 
    transition: 0.3s;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero { 
    min-height: 85vh; 
    background: linear-gradient(135deg, #0a2342 0%, #1c4b82 100%); 
    color: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    padding-top: 80px;
    padding-bottom: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

.hero-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
    width: 100%; 
    position: relative;
    z-index: 1;
}

.hero-text h1 { 
    font-size: 3.2rem; 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}

.subtitle { 
    font-size: 1.05rem; 
    opacity: 0.9; 
    margin-bottom: 2rem; 
    max-width: 500px; 
}

.address-lookup { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 1rem; 
}

.address-lookup input { 
    flex: 1; 
    padding: 1rem; 
    border-radius: 4px; 
    border: none; 
    font-size: 1rem; 
}

.disclaimer-hero { 
    font-size: 0.8rem; 
    opacity: 0.6; 
}

/* Property Card */
.property-card { 
    background: var(--white); 
    color: var(--text); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
    transform: translateY(20px); 
    opacity: 0; 
    transition: all 0.5s ease; 
}

.property-card.active { 
    transform: translateY(0); 
    opacity: 1; 
}

.card-header { 
    background: #ffc107; 
    padding: 0.5rem; 
    text-align: center; 
    font-size: 0.8rem; 
    font-weight: bold; 
    color: #333; 
}

.badge {
    display: inline-block;
}

.card-image-container { 
    height: 200px; 
    background: #ddd; 
    position: relative; 
    overflow: hidden; 
}

.card-image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-body { 
    padding: 1.5rem; 
}

.card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stats { 
    list-style: none; 
    margin-top: 1rem; 
    font-size: 0.9rem; 
}

.stats li { 
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 0.5rem; 
}

.eligible { 
    color: green; 
    font-weight: bold; 
}

/* Sections */
section { 
    padding: 4rem 0; 
}

.section-light {
    background: var(--light);
}

.section-dark { 
    background: var(--primary); 
    color: var(--white); 
}

.section-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Process Section Styles */
.process-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.process-intro h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.grid-2-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.process-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    border-left: 5px solid var(--accent);
}

.process-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.process-box h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.process-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.process-box p {
    line-height: 1.7;
    color: #555;
}

.why-choose-us {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.grid-4-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Pricing */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
    max-width: 900px; 
    margin: 0 auto; 
}

.pricing-card { 
    background: var(--white); 
    color: var(--text); 
    padding: 2rem; 
    border-radius: 8px; 
    position: relative; 
    text-align: center; 
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular { 
    border: 3px solid var(--accent); 
    transform: scale(1.05); 
}

.pricing-card.popular:hover {
    transform: scale(1.08);
}

.ribbon { 
    position: absolute; 
    top: 0; 
    right: 0; 
    background: var(--accent); 
    color: white; 
    padding: 0.3rem 1rem; 
    font-size: 0.8rem; 
    font-weight: bold; 
    border-bottom-left-radius: 8px; 
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.price { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin: 1rem 0 0.5rem; 
}

.price span { 
    display: block; 
    font-size: 1rem; 
    font-weight: 400; 
    opacity: 0.7; 
}

.sub-price {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.benefits { 
    text-align: left; 
    list-style: none; 
    margin: 2rem 0; 
}

.benefits li { 
    margin-bottom: 0.8rem; 
    font-size: 0.9rem; 
    line-height: 1.5;
}

.pricing-note { 
    text-align: center; 
    margin-top: 2rem; 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

/* Form */
.section-form { 
    background: #eef2f3; 
}

.form-wrapper { 
    max-width: 600px; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 3rem; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.form-wrapper h2 {
    margin-bottom: 0.5rem;
}

.form-wrapper h3 {
    margin-bottom: 1rem;
}

.form-wrapper > p {
    margin-bottom: 2rem;
    color: #666;
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

.form-group input,
.form-group select,
.form-group textarea { 
    width: 100%; 
    padding: 0.8rem; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-checkbox { 
    display: flex; 
    gap: 10px; 
    align-items: start; 
    font-size: 0.85rem; 
    margin-bottom: 1.5rem; 
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

.form-checkbox label {
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

/* Contact Section */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
}

.contact-list { 
    list-style: none; 
    margin-top: 1.5rem; 
}

.contact-list li { 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
}

.contact-list a { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
}

.contact-list a:hover {
    text-decoration: underline;
}

.map-placeholder {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2rem;
}

/* Document Cards */
.doc-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 2rem; 
}

.doc-card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 8px; 
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.doc-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.doc-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Footer */
footer { 
    background: #051324; 
    color: #8892b0; 
    padding: 3rem 0; 
    font-size: 0.85rem; 
    text-align: center; 
}

.footer-content p {
    margin-bottom: 0.8rem;
}

.legal {
    opacity: 0.7;
    font-size: 0.8rem;
    line-height: 1.6;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

/* Modal */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 2000; 
    align-items: center; 
    justify-content: center; 
    overflow-y: auto;
}

.modal:target { 
    display: flex; 
}

.modal-content { 
    background: white; 
    padding: 2rem; 
    width: 90%; 
    max-width: 600px; 
    border-radius: 8px; 
    position: relative; 
    margin: 2rem auto;
}

.modal-wide { 
    max-width: 800px; 
    max-height: 90vh; 
    overflow-y: auto; 
}

.close { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 1.5rem; 
    text-decoration: none; 
    color: #333; 
    z-index: 10;
}

.close:hover {
    color: var(--accent);
}

.legal-text {
    line-height: 1.8;
    font-size: 0.9rem;
    color: #333;
}

.legal-text h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.legal-text ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-text p {
    margin-bottom: 1rem;
}

/* Hidden Elements */
.hidden { 
    display: none !important; 
}

/* Thank You Page */
body.thank-you { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    text-align: center; 
}

/* SIMPLIFIED Print Styles - WORKING VERSION */
@media print {
    /* Hide everything except the modal content we want to print */
    body > *:not(.modal) {
        display: none !important;
    }
    
    /* Hide the dark modal overlay */
    .modal {
        display: block !important;
        position: static !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Make the modal content printable */
    .modal-content {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 1cm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    
    /* Hide buttons and close X */
    .no-print,
    .close,
    button {
        display: none !important;
    }
    
    /* Make sure the print content is visible */
    .print-content {
        display: block !important;
        width: 100% !important;
    }
    
    /* Style the legal text for printing */
    .legal-text {
        font-size: 11pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
    }
    
    .legal-text h3,
    .legal-text h4 {
        color: #000 !important;
        margin-top: 12pt !important;
        margin-bottom: 6pt !important;
    }
    
    .legal-text p {
        margin-bottom: 8pt !important;
    }
    
    .legal-text ul {
        margin: 8pt 0 8pt 20pt !important;
        list-style-type: disc !important;
    }
    
    .legal-text li {
        margin-bottom: 4pt !important;
    }
    
    /* Prevent awkward page breaks */
    .legal-text h4,
    .legal-text ul,
    .legal-text p {
        page-break-inside: avoid !important;
    }
    
    h3 {
        page-break-after: avoid !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .nav-links { 
        display: none; 
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .address-lookup { 
        flex-direction: column; 
    }
    
    .pricing-card.popular { 
        transform: scale(1); 
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .grid-2-process {
        grid-template-columns: 1fr;
    }
    
    .grid-4-benefits {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us {
        padding: 2rem 1.5rem;
    }
}
