/* General Styling */
:root {
    --primary-color: #f316fe; /* A vibrant green for healthcare */
    --secondary-color: #cf26d7; /* A nice blue */
    --accent-color: #ffc107; /* Yellow/Orange for highlights */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-light: #f4f6f9;
    --bg-dark: #343a40;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #cf26d7; /* Darker green */
}

.section-title {
    font-size: 2.5rem;
    color: var(--bg-dark);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

/* Header */
header {
    background: var(--light-text-color);
    color: var(--text-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 5px var(--shadow-light);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--bg-dark);
}

.logo h1 span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 0;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #666;
}

/* Plans Section */
.plans-section {
    padding: 60px 0;
    background-color: #e9ecef;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--light-text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

.plan-card h3 {
    font-size: 1.8rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.plan-card .price {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-card ul li:last-child {
    border-bottom: none;
}

.plan-card ul li i.fa-check {
    color: var(--primary-color);
    margin-right: 10px;
}

.plan-card ul li i.fa-times {
    color: #dc3545; /* Red for excluded features */
    margin-right: 10px;
}

/* Appointment Section */
.appointment-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.appointment-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-text-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    border-top: 4px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--bg-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-weight: bold;
    text-align: center;
    display: none; /* Hidden by default */
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--light-text-color);
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col p {
    line-height: 1.8;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-media a {
    color: var(--light-text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #aaa;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden; /* Use visibility for smooth transitions */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: var(--light-text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px); /* Initial state for animation */
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.popup-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

.popup-content strong {
    color: var(--bg-dark);
}

.popup-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
    color: #444;
}

.popup-content ul li {
    margin-bottom: 5px;
}

.popup-content .form-group label {
    color: #333;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid, .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px 10px 10px;
    }
    .hero {
        height: 60vh;
        padding: 50px 0;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .services-grid, .plans-grid {
        grid-template-columns: 1fr;
    }
    .plan-card.featured {
        transform: none; /* Remove scaling on smaller screens */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-col ul {
        padding: 0; /* Remove default padding for centered lists */
    }
    .footer-col ul li {
        display: inline-block; /* Make list items inline for cleaner look */
        margin: 0 10px 10px 10px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .appointment-form {
        padding: 20px;
    }
    .popup-content {
        padding: 20px;
    }
    .popup-content h2 {
        font-size: 1.5rem;
    }
}