/* Modern Design Enhancements */
:root {
    --primary-dark: #213C59;
    --secondary-blue: #6594B1;
    --accent-pink: #DDAED3;
    --bg-light: #EEEEEE;
    --white: #FFFFFF;
    --text-dark: #333333;
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    font-family: var(--font-family);
    color: var(--text-dark);
}

/* Typography & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background: rgba(33, 60, 89, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-pink) !important;
}

/* Language Switcher */
.lang-switch-btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-left: 15px;
}

.lang-switch-btn:hover {
    background: white;
    color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, var(--primary-dark) 0%, #4a7c9d 100%);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    color: var(--white);
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.clinic-info-card {
    background: linear-gradient(to bottom, #ffffff, #f8fbff);
}

.clinic-info-card:hover {
    transform: translateY(-5px);
}

.form-card {
    position: relative;
    border-top: none;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-pink));
}

/* Services Grid */
.services-grid .service-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border-left: 4px solid var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.services-grid .service-item:hover {
    transform: translateY(-3px);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-right: 15px;
}

.service-text strong {
    display: block;
    color: var(--primary-dark);
}

.service-text span {
    font-size: 0.9rem;
    color: #666;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 4px rgba(101, 148, 177, 0.1);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 35px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(33, 60, 89, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    box-shadow: 0 6px 20px rgba(33, 60, 89, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-pink);
    color: var(--primary-dark);
    border: none;
    font-weight: 700;
}

.btn-accent:hover {
    background-color: #c99dc0;
    color: var(--primary-dark);
}

/* Loading & Alerts */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 12px;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    margin-top: 50px;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.pixel-link {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pixel-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(221, 174, 211, 0.5);
}

footer a {
    color: var(--accent-pink);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Helper for map */
.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    border: 0;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
        /* Slightly smaller to fit */
        white-space: normal;
        /* Allow wrapping */
        max-width: none;
    }

    .card {
        margin-bottom: 20px;
    }

    .form-body {
        padding: 1.5rem !important;
    }

    /* Adjust footer for mobile */
    footer {
        text-align: center;
    }

    .footer-bottom {
        text-align: center !important;
    }

    .footer-bottom .col-md-6 {
        margin-bottom: 10px;
    }
}