/* Custom Properties / Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #495057;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

/* Layout Container */
section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Buttons (CTAs) */
.cta-button {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-button.primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cta-button.secondary:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

.cta-button.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


/* 1. Header (Global Navigation) */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.header-ctas {
    display: flex;
    gap: 10px;
}

.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--dark-color);
}


/* 2. Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--white) 0%, #e9ecef 100%);
    min-height: 80vh;
    gap: 40px;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5em;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-content .subheading {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.key-highlights {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    font-size: 1.1em;
    font-weight: bold;
}

.key-highlights div i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    /* Simulate image styling */
    height: 400px;
    background: #ced4da; /* Placeholder background */
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--text-color);
}

/* 3. About Us */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    height: 300px;
    background: #adb5bd; /* Placeholder background */
    border-radius: var(--border-radius);
}

.trust-badges {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    font-weight: bold;
    color: var(--secondary-color);
}

.trust-badges i {
    margin-right: 8px;
}

/* 4. Our Services */
.services-section {
    background-color: #f1f3f5;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* 5. Why Choose Us */
.why-choose-section {
    background-color: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason {
    padding: 25px;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: background-color 0.3s;
}

.reason:hover {
    background-color: #e9ecef;
}

.reason i {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.reason h3 {
    font-size: 1.3em;
}

/* 6. Health Care Plans */
.plans-section {
    background-color: #f1f3f5;
}

.plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.plan-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 300px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.plan-card h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.price-indication {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.price-indication span {
    font-size: 0.5em;
    font-weight: normal;
    color: var(--text-color);
}

.coverage-summary {
    margin-bottom: 20px;
    font-style: italic;
    min-height: 40px; /* Ensures height consistency */
}

.plan-card ul {
    text-align: left;
    margin-bottom: 30px;
}

.plan-card li {
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.plan-card li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.plan-cta {
    width: 100%;
}

/* 7. & 8. Forms */
.form-section {
    background-color: var(--white);
}

.form-section form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 45%; /* Two columns by default */
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section input[type="date"],
.form-section input[type="time"],
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
}

.form-section textarea {
    resize: vertical;
}

.form-section button[type="submit"] {
    margin-top: 10px;
}

.confirmation-message {
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    width: 100%;
    font-weight: bold;
}

.success-hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* 9. Testimonials */
.testimonials-section {
    background-color: #f1f3f5;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 45%;
}

.testimonial-card .rating {
    color: gold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.patient-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.patient-name {
    font-weight: bold;
    color: var(--dark-color);
}

.service-used {
    font-size: 0.9em;
    color: var(--text-color);
}

/* 10. Newsletter */
.newsletter-section {
    text-align: center;
    padding: 60px 5%;
    background-color: var(--primary-color);
    color: var(--white);
}

.newsletter-section h2 {
    color: var(--white);
}

.newsletter-section h2::after {
    background: var(--white);
}

#newsletterForm {
    max-width: 700px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#newsletterForm .form-group {
    flex: 1 1 auto;
    min-width: 200px;
}

#newsletterForm input[type="text"],
#newsletterForm input[type="email"],
#newsletterForm input[type="date"] {
    background: var(--white);
    color: var(--dark-color);
    border: none;
}

#newsletterForm .checkbox-group {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsletterForm input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

#newsletterForm label {
    font-weight: normal;
    color: var(--white);
}

#newsletterForm .cta-button {
    background-color: var(--secondary-color);
}
#newsletterForm .cta-button:hover {
    background-color: #1e7e34;
}
#newsletter-confirmation {
    background-color: #c3e6cb;
    color: #155724;
}

/* 12. Footer */
footer {
    background: var(--dark-color);
    color: #adb5bd;
    padding: 40px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-grid h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-about p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.footer-links ul {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 0.8em;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding-top: 100px;
    }

    .hero-image {
        margin-top: 30px;
        max-width: 100%;
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .key-highlights {
        justify-content: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }

    .about-grid {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
    }

    .plans-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .plan-card {
        width: 100%;
        max-width: 400px;
    }
    
    .testimonial-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide nav links */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        margin: 10px 0;
    }

    .header-ctas {
        display: none; /* Hide CTAs on smaller screens when nav is collapsed */
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    .form-section form {
        gap: 15px;
        padding: 20px;
    }
    
    .form-group {
        flex: 1 1 100%; /* Single column for forms on mobile */
    }

    .testimonials-slider {
        flex-direction: column;
    }
}

/* ================================
   Newsletter Section Styles
   ================================ */



/* Section Container */
.newsletter-section {
    background: linear-gradient(135deg, #e9f7f2, #fdfefe);
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card Layout */
#newsletterForm {
    background-color: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Heading */
.newsletter-section h2 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Intro Text */
#newsletterForm > p {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

/* Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-light);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Focus States */
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 143, 107, 0.15);
    background-color: var(--white);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

/* Button */
.cta-button.primary {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(47, 143, 107, 0.25);
    transform: translateY(-1px);
}

.cta-button.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(47, 143, 107, 0.2);
}

/* Confirmation Message */
.confirmation-message {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.confirmation-message.success-hidden {
    display: none;
}

.confirmation-message:not(.success-hidden) {
    display: block;
    background-color: #e6f6ef;
    color: var(--success-color);
    border: 1px solid #bfe7d5;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 480px) {
    #newsletterForm {
        padding: 2rem 1.5rem;
    }

    .newsletter-section h2 {
        font-size: 1.6rem;
    }
}

/* =========================
   Trigger Links
========================= */
.legal-links {
    text-align: center;
    margin: 3rem 0;
}

.legal-links a {
    margin: 0 0.75rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* =========================
   Modal Overlay
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =========================
   Modal Box
========================= */
.modal {
    background: var(--white);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.35s ease;
}

/* =========================
   Modal Header
========================= */
.modal-header {
    padding: 1.25rem 1.5rem;
    background: #f0f8f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--dark);
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--muted);
}

/* =========================
   Modal Body
========================= */
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
}

.modal-body h3 {
    margin-top: 1.2rem;
    color: var(--primary);
    font-size: 1.05rem;
}

.modal-body p {
    margin-top: 0.5rem;
}

/* =========================
   Modal Footer
========================= */
.modal-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    text-align: right;
}

.modal-footer button {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: var(--white);
}

/* =========================
   Animations
========================= */
@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }
}
