/* General Styles */
:root {
    --primary-color: #df03a3; /* Green */
    --secondary-color: #5097d9; /* Orange */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #fff;
    --text-color: #555;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #df03a3;
    border-color: #df03a3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5097d9;
    border-color: #5097d9;
}

.btn-appointment {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-appointment:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--light-color);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 450px;
    border-radius: 8px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.insurance-banner {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.insurance-banner h3 {
    color: var(--white-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.insurance-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.insurance-banner .btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.insurance-banner .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.choose-us-item {
    padding: 25px;
}

.choose-us-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.choose-us-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Health Care Plan Section */
.healthcare-plans {
    background-color: var(--light-color);
    padding: 80px 0;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card.featured {
    border-top-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-card:hover:not(.featured) {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.plan-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.plan-card.featured .price {
    color: var(--secondary-color);
}

.plan-card ul {
    margin-bottom: 30px;
}

.plan-card ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.plan-card .btn {
    width: 100%;
    text-align: center;
}

/* Contact Section & Appointment Form */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.appointment-form-container {
    flex: 1.5;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.appointment-form-container h3 {
    margin-bottom: 25px;
}

#appointmentForm label,
#newsletterForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

#appointmentForm input[type="text"],
#appointmentForm input[type="email"],
#appointmentForm input[type="tel"],
#appointmentForm input[type="date"],
#appointmentForm select,
#appointmentForm textarea,
#newsletterForm input[type="text"],
#newsletterForm input[type="email"],
#newsletterForm input[type="date"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#appointmentForm button,
#newsletterForm button {
    width: 100%;
    padding: 12px;
}

.agree-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.agree-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.confirmation-message {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-color);
    padding: 80px 0;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.testimonial-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.testimonial-item p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section ul li {
    color: var(--light-color);
}

.footer-section ul li a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section.contact-footer p {
    display: flex;
    align-items: center;
}

.footer-section.contact-footer i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-section.social a {
    display: inline-block;
    margin-right: 15px;
    color: var(--light-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-section.social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.legal-links a {
    color: var(--light-color);
    margin: 0 5px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Optional: blur background */
}

.modal-content {
    background-color: var(--white-color);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Max width for large screens */
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-color);
    text-decoration: none;
}

.modal-content .btn-close-modal {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px;
    }
    .btn-appointment {
        margin-top: 10px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 30px;
    }
    .hero-image img {
        max-width: 350px;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
    }

    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .contact-info {
        margin-bottom: 30px;
    }
    .appointment-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .service-grid,
    .choose-us-grid,
    .plan-cards,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        margin-top: 15%;
    }
}

@media (max-width: 576px) {
    header .container {
        padding: 0 15px;
    }
    .logo a {
        font-size: 1.5rem;
    }
    nav ul li {
        margin: 5px 8px;
        font-size: 0.9rem;
    }
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 0;
    }
    .hero-image img {
        max-width: 280px;
    }

    .about, .services, .why-choose-us, .healthcare-plans, .contact, .testimonials {
        padding: 60px 0;
    }

    .service-item, .plan-card, .testimonial-item {
        padding: 20px;
    }

    footer {
        padding: 40px 0 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section.contact-footer p {
        justify-content: center;
    }
    .footer-section.social a {
        font-size: 1.2rem;
    }
}