/* Basic Resets and Global Styles */
:root {
    --primary-color: #28a745; /* Green */
    --secondary-color: #007bff; /* Blue */
    --accent-color: #ffc107; /* Yellow */
    --dark-text: #343a40;
    --light-text: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-text);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* Adjust manually if SASS unavailable */
    background-color: #218838; /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%); /* Adjust manually if SASS unavailable */
    background-color: #0056b3; /* Slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.common-section {
    padding: 80px 0;
    text-align: center;
}

.common-section h2 {
    margin-bottom: 40px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
}

.logo a i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-text);
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--light-text);
}

.service-item.highlighted {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-item.highlighted i {
    color: var(--accent-color);
}

.service-item.highlighted h3,
.service-item.highlighted p {
    color: var(--white);
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Health Care Plan Section */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.plan-card.featured-plan {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-15px);
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-text);
    text-align: center;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
    padding-left: 0;
}

.plan-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--light-text);
}

.plan-card ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.plan-card .btn {
    width: 100%;
    margin-top: 20px;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--dark-text);
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.client-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Forms (Get Quote & Newsletter) */
.quote-form, .newsletter-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: left;
}

.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 #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--light-text);
    font-size: 0.85rem;
}

select[multiple] {
    height: auto;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Section */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.contact-item a {
    color: var(--dark-text);
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--primary-color);
}


.map-container {
    height: 300px;
    box-shadow: 0 5px 20px var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    border-radius: 10px; /* To match container, though iframe itself might ignore */
}

/* Footer */
.main-footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    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 {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* 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;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex; /* Show flex when active */
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh; /* Limit height for scrollable content */
    overflow-y: auto; /* Allow content to scroll */
    text-align: left;
    transform: translateY(-50px);
    animation: slideIn 0.3s ease-out forwards;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--dark-text);
}

.modal-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.modal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.modal-content ul li {
    margin-bottom: 8px;
    color: var(--dark-text);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Animations for Modals */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px var(--shadow);
        padding: 20px 0;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .main-nav ul li a {
        padding: 10px 0;
        display: block;
    }
    .main-nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav ul li a:hover::after,
    .main-nav ul li a.active::after {
        width: 50%;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .service-grid, .features-grid, .plan-cards, .testimonial-grid, .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        width: 100%;
    }
    .footer-section h3 {
        text-align: center;
    }
    .footer-section ul {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .common-section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 60vh;
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }

    .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    .logo a {
        font-size: 1.5rem;
    }
    .logo a i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .menu-toggle {
        margin-left: auto;
    }
    .main-nav.active {
        top: 130px; /* Adjust if logo wraps */
    }
}