/* Universal Reset and Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a1b9a; /* Purple */
    --secondary-color: #00897b; /* Teal */
    --accent-color: #ff7043; /* Coral */
    --dark-color: #2e2e2e;
    --light-color: #fafafa;
    --text-color: #424242;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Section Styling */
section {
    padding: 80px 0;
    text-align: center;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
}

.section-subhead {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.primary-cta {
    background-color: var(--primary-color);
    color: white;
}

.secondary-cta {
    background-color: var(--secondary-color);
    color: white;
}

.tertiary-cta {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 1. Header Styling */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 25px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

/* 2. Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/hero.webp'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5em;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-ctas {
    margin-top: 30px;
}

/* 3. About Us */
.about-us {
    background-color: var(--light-color);
    padding: 60px 0;
}

.about-us p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* 4. Our Services */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* 5. Why Choose Us */
.why-choose-us {
    background-color: #e9ecef;
    text-align: left;
}

.why-choose-us .container {
    max-width: 900px;
}

.why-choose-us ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.why-choose-us li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 10px 0;
    width: 48%;
}

.why-choose-us li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 6. Health Insurance & Plans */
.health-insurance {
    background-color: var(--primary-color);
    color: white;
}

.health-insurance h2,
.health-insurance p {
    color: white;
}

.health-insurance .cta-button {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* 7. Testimonials */
.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
    font-style: italic;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
}

/* 8. Contact Details & Appointment Form */
.contact-section {
    background-color: #f3f3f3;
    text-align: left;
}

.contact-section .container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-details,
.appointment-form-container {
    flex: 1;
}

.contact-details h2 {
    margin-top: 0;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.appointment-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.appointment-form-container h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.date-time-group {
    display: flex;
    gap: 15px;
}

.date-group, .time-group {
    flex: 1;
}

.confirmation-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

/* 9. Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-media {
    margin: 20px 0;
}

.social-media a {
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9em;
    color: #adb5bd;
}

/* 10. Popup Modules (Modals) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    text-align: left;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-close-btn {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    float: right;
}

.modal-close-btn:hover {
    background-color: var(--text-color);
}

/* Newsletter Specific Styling */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
    }
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }
    .navbar ul li a {
        margin: 5px 10px;
    }
    .header .cta-button {
        display: none; /* Hide top CTA on small screens for better navigation visibility */
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.2em;
    }
    .contact-section .container {
        flex-direction: column;
    }
    .why-choose-us li {
        width: 100%;
    }
}