/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7dd7d8; /* Blue */
    --secondary-color: #6c757d; /* Grey */
    --accent-color: #1aca7f; /* Green */
    --light-bg: #f8f9fa; /* Light grey */
    --dark-text: #343a40; /* Dark grey */
    --light-text: #ffffff;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.section-description {
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1aca7f; /* Darker blue */
    border-color: #1aca7f;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}


/* Header */
header {
    background-color: var(--light-text);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 202, 127, 0.7), rgba(26, 202, 127, 0.7)), url('../img/hero.jpg') no-repeat center center/cover;
    color: var(--light-text);
    padding: 150px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
    font-size: 1.1em;
    padding: 15px 35px;
    animation: zoomIn 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* About Section */
.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-item p {
    color: var(--secondary-color);
}

/* Why Choose Us Section */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reason-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.reason-item i {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.reason-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.reason-item p {
    color: var(--secondary-color);
}

/* Health Care Plans Section */
.health-plans-section {
    background-color: var(--light-bg);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(26, 202, 127, 0.2);
    transform: scale(1.03);
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.plan-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--secondary-color);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-card ul li {
    margin-bottom: 10px;
    color: var(--dark-text);
    font-size: 1.05em;
}

.plan-card ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.plan-card ul li i.text-red {
    color: #dc3545; /* Red for unchecked */
}

.plan-card .btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* 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(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section & Form */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.contact-info h3, .quote-form-container h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1aca7f;
}

.quote-form-container {
    background-color: var(--light-text);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--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: 1em;
    color: var(--dark-text);
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 202, 127, 0.25);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}


/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

footer .footer-links {
    margin-top: 20px;
}

footer .footer-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--primary-color);
}

/* Confirmation Messages */
.confirmation-message {
    background-color: var(--accent-color);
    color: var(--dark-text);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    opacity: 0; /* Hidden by default */
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.confirmation-message.show {
    opacity: 1;
    transform: translateY(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.5); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex; /* Show the modal */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeInScale 0.3s ease-out;
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Scroll if content overflows */
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

.modal-content h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark-text);
    text-align: left;
}

.modal-content p, .modal-content ul {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: left;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-content ul li {
    margin-bottom: 8px;
}


.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-text);
    text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 15px;
    }

    .hero-section h1 {
        font-size: 2.8em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .service-grid, .reason-grid, .plan-grid, .testimonial-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: none; /* Remove scaling on smaller screens */
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .logo a {
        font-size: 1.5em;
    }

    nav ul {
        justify-content: center;
        margin-top: 15px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2em;
    }

    .hero-section {
        padding: 100px 0;
        min-height: 500px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.8em;
    }

    .contact-info, .quote-form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .logo {
        margin-bottom: 10px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.8em;
    }

    .footer-links {
        flex-direction: column;
        display: flex;
    }

    .footer-links a {
        margin: 5px 0;
    }
}
