/* General Styling & Reset */
:root {
    --primary-color: #b70e8d; /* Green */
    --primary-dark: #b70e8d;
    --secondary-color: #0e1a80; /* Blue */
    --secondary-dark: #0e1a80;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --white-color: #ffffff;
    --border-color: #e9ecef;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    margin-bottom: 15px;
}

h1 { font-size: 3.2em; line-height: 1.2; }
h2 { font-size: 2.5em; margin-bottom: 30px;}
h3 { font-size: 1.8em; }
h4 { font-size: 1.3em; }

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-text);
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list .btn-primary {
    margin-left: 15px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://via.placeholder.com/1920x1080/E0F2F7/333333?text=Health+Background') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.hero-content {
    flex: 1;
    min-width: 450px;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2em;
}

.hero-content p {
    font-size: 1.3em;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    min-width: 400px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* About Us Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Services and Why Choose Us Grid */
.services-grid, .why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .reason-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

.service-card:hover, .reason-card:hover {
    transform: translateY(-5px);
}

.service-icon, .reason-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3, .reason-card h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.service-card p, .reason-card p {
    font-size: 0.95em;
    color: var(--light-text);
}

/* Health Care Plan Section */
.plan-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.plan-text, .plan-image {
    flex: 1;
    min-width: 300px;
}

.plan-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.plan-text ul {
    margin-bottom: 20px;
}

.plan-text ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--dark-text);
}

.plan-text ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Testimonials Section */
.testimonial-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.testimonial-item {
    min-width: 100%; /* Each item takes full width for slider */
    padding: 40px;
    text-align: center;
    background-color: var(--white-color);
    flex-shrink: 0;
}

.testimonial-item p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.testimonial-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-item span {
    font-size: 0.9em;
    color: var(--light-text);
}

.slider-nav {
    text-align: center;
}

.slider-nav button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color var(--transition-speed);
}

.slider-nav button:hover {
    background-color: var(--secondary-dark);
}

/* Forms (Appointment & Newsletter) */
.appointment-form, .newsletter-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    margin-bottom: 0;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Contact Section */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-info, .contact-map {
    flex: 1;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-info {
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.contact-info p i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.contact-map {
    min-width: 350px;
    overflow: hidden; /* Ensures iframe respects border-radius */
}

.contact-map iframe {
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: var(--white-color);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul {
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    margin-right: 10px;
    border-radius: 50%;
    transition: background-color var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto; /* Centered */
    padding: 30px;
    border-radius: 8px;
    width: 80%; /* Could be more specific like max-width: 800px; */
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
    max-height: 90vh; /* Make content scrollable if too long */
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 0.95em;
    color: var(--light-text);
}

.modal-content ul {
    margin-left: 20px;
    list-style-type: disc;
    margin-bottom: 20px;
}
.modal-content ul li {
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 5px;
}


.close-button {
    color: var(--dark-text);
    font-size: 2.5em;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Newsletter form specific styling within modal */
.modal-content .newsletter-form {
    padding: 0; /* Override default form padding */
    box-shadow: none; /* Override default form box-shadow */
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-image {
        text-align: center;
    }

    .about-content, .plan-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text, .plan-text {
        order: 2; /* Text below image on mobile */
    }
    .about-image, .plan-image {
        order: 1;
        margin-bottom: 30px;
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        order: 2;
        flex-basis: 100%;
        margin-top: 20px;
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        display: none; /* Hidden by default for mobile menu toggle */
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-radius: 8px;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list .btn-primary {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: 120px; /* Adjust for sticky header */
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .services-grid, .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        flex-direction: column;
    }

    .contact-info, .contact-map {
        min-width: unset;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-column:last-child {
        border-bottom: none;
    }
    .social-links {
        justify-content: center;
        display: flex; /* Centers social icons */
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .section-padding {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .logo a {
        font-size: 1.5em;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .close-button {
        font-size: 2em;
        top: 5px;
        right: 15px;
    }
}