:root {
    --primary-color: #0369a1;
    --secondary-color: #f0f9ff;
    --text-main: #334155;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: #ffffff;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); }
.contact-number { font-size: 1.1rem; font-weight: 600; }
.hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 4rem 5%; background: linear-gradient(135deg, var(--secondary-color) 0%, #e0f2fe 100%);
}
.hero-text { flex: 1; min-width: 300px; padding-right: 2rem; }
.hero-text h1 { font-size: 3rem; color: #0f172a; margin-bottom: 1rem; line-height: 1.2; }
.hero-text p { font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.6; }
.form-container { flex: 0 1 400px; background: #ffffff; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.form-container h3 { margin-top: 0; color: var(--primary-color); font-size: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; }
.submit-btn { width: 100%; padding: 1rem; background-color: var(--primary-color); color: white; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
.submit-btn:hover { background-color: #0284c7; }

/* Global Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; width: 100%; background: #ffffff; border-top: 1px solid #cbd5e1; padding: 1rem; text-align: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; display: flex; justify-content: center; align-items: center; gap: 15px;}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--text-main); }
.cookie-banner button { padding: 0.5rem 1.5rem; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* --- About Page --- */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}
.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.vetting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.vetting-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}
.vetting-card h3 {
    color: #0f172a;
    margin-top: 0;
    font-size: 1.3rem;
}
.vetting-card p {
    margin-bottom: 0;
    line-height: 1.6;
}


/* --- Contact Page --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
    align-items: flex-start;
}
.contact-info {
    flex: 1;
    min-width: 300px;
}
.contact-info h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.info-block {
    margin-bottom: 1.5rem;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.info-block strong {
    color: #0f172a;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}
.info-block p {
    margin: 0;
    line-height: 1.5;
}


/* --- Premium Aggregator Hero --- */
.hero-premium {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    padding: 6rem 5%;
    text-align: center;
    color: white;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Floating Search Bar */
.search-box-container {
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 3rem;
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form input, .search-form select {
    flex: 1;
    padding: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1.1rem;
    color: #334155;
    outline: none;
}
.search-form input:focus, .search-form select:focus {
    border-color: #0284c7;
}
.search-btn {
    background: #0f172a;
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.search-btn:hover {
    background: #1e293b;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.signal {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    /* 1. Header & Nav */
    header { 
        flex-direction: column; 
        align-items: center; 
        gap: 1rem; 
        text-align: center; 
        padding: 1.5rem 1rem; /* Reduced padding for more screen space */
    }
    nav { 
        justify-content: center; 
        flex-wrap: wrap; 
        width: 100%;
    }
    
    /* 2. Typography Scaling */
    .hero-text h1, .page-header h1 { 
        font-size: 1.7rem; 
        line-height: 1.3; 
    }
    h2, .cta-banner h2 { 
        font-size: 1.4rem; 
    }
    .hero-text p { 
        font-size: 1rem; 
    }
    
    /* 3. Hero Section (CRITICAL FIX) */
    .hero { 
        flex-direction: column; 
        padding: 2rem 1rem; /* Reduced side padding */
        width: 100%;
        box-sizing: border-box; /* Stops padding from widening the screen */
    }
    .hero-text { 
        padding-right: 0; 
        margin-bottom: 2rem; 
        text-align: center; 
        min-width: 0; /* This stops the text from pushing off-screen */
        width: 100%;
    }
    
    /* 4. Form Container */
    .form-container { 
        width: 100%; 
        box-sizing: border-box;
    }
    .form-container h3 {
        text-align: center;
        font-size: 1.3rem;
    }
    
    /* 5. Cookie Banner */
    .cookie-banner { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center;
    }
}

.contact-container { 
        gap: 2rem; 
        padding: 2rem 1rem; 
    }
    
.hero-content h1 { font-size: 2.2rem; }
    .search-box-container { border-radius: 12px; padding: 1.5rem; }
    .search-form { flex-direction: column; }
    .search-btn { padding: 1.2rem; border-radius: 8px; }
    .search-form input, .search-form select { border-radius: 8px; }
    
    
/* --- Modular Review Engine --- */
.reviews-section {
    background-color: #f8fafc;
    padding: 5rem 5%;
    text-align: center;
}
.reviews-header h2 {
    color: #0f172a;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.reviews-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    text-align: left;
    border-top: 4px solid var(--primary-color);
}
.review-stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.review-text {
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.review-author strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
}
.review-author span {
    color: #64748b;
    font-size: 0.9rem;
}
    
/* --- Internal Page Headers --- */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 5%;
}
.page-header h1 { margin: 0 0 1rem 0; font-size: 2.5rem; }
.page-header p { font-size: 1.2rem; margin: 0; opacity: 0.9; }

/* --- Services Grid --- */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card h3 { color: var(--primary-color); margin-top: 0; font-size: 1.4rem; }
.service-card p { line-height: 1.6; color: var(--text-main); margin-bottom: 0; }

/* --- Call to Action Banner --- */
.cta-banner {
    text-align: center;
    background: var(--secondary-color);
    padding: 4rem 5%;
}
.cta-banner h2 { color: #0f172a; margin-top: 0; }


/* --- Floating Care Help Widget --- */
.floating-help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.floating-help-widget:hover {
    transform: translateY(-4px);
    background-color: #0369a1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}
.widget-text { 
    font-weight: 600; 
    font-size: 1.05rem; 
}

/* Adjust for mobile screens so it doesn't block content */
@media (max-width: 768px) {
    .floating-help-widget {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
    }
    .widget-text {
        font-size: 0.95rem;
    }
}