/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b3d91; /* Deeper, more authoritative blue */
    --secondary-color: #1565c0; /* Rich blue for gradients */
    --accent-color: #e7c247; /* True metallic gold */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 300; /* Default to light */
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* Slower, smoother animation */
    opacity: 0;
}

.delay-100 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.3s; }
.delay-300 { animation-delay: 0.45s; }
.delay-400 { animation-delay: 0.6s; }

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 60px 0;
    background: url('bg-image.webp') no-repeat left center/cover;
    background-attachment: fixed;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 29, 66, 0.72) 0%, rgba(13, 71, 161, 0.62) 100%);
    z-index: 1;
}

.hero-section .relative-z {
    position: relative;
    z-index: 2;
}

/* Typography Enhancements */
h1.display-3 {
    font-weight: 600 !important; /* Semi-bold instead of bold */
    letter-spacing: -1px;
}

h3 {
    font-weight: 300 !important; /* Light weight for subtitles */
    letter-spacing: 0.5px;
}

h5.text-uppercase {
    font-weight: 500 !important;
    letter-spacing: 4px; /* Wider tracking for elegance */
    font-size: 0.85rem;
}

.text-gold {
    color: var(--accent-color) !important;
}

/* Glassmorphism Card */
.glass-effect {
    background: rgba(255, 255, 255, 0.03) !important; /* More transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card-form {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: none;
}

/* Icon Squares */
.icon-square {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    transition: all 0.4s ease;
}

.icon-square:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Links */
.contact-link {
    font-weight: 300 !important;
    letter-spacing: 0.5px;
}

/* Form Styling */
.form-floating > .form-control,
.form-floating > .form-select {
    background-color: #fcfcfc !important;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    height: 52px;
    font-weight: 300;
    font-size: 0.95rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    background-color: #ffffff !important;
    border-color: transparent; /* Removed border color */
    box-shadow: none;
    border-bottom: none; /* Removed bottom border */
}

.form-floating > label {
    font-weight: 300;
    font-size: 0.9rem;
    color: #8898aa;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 30px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
    background: #051429 !important; /* Very dark navy */
}

/* Footer Socials */
.footer-socials a {
    color: var(--text-light);
    margin-right: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a:last-child {
    margin-right: 0;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

/* Semantic Classes for Clean HTML */
.section-header-row {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    text-align: center;
}

.construction-badge {
    /* text-transform: uppercase; Removed for elegance */
    margin-bottom: 1rem;
    color: var(--accent-color);
    letter-spacing: 1px; /* Reduced spacing slightly */
    font-size: 0.95rem; /* Slightly larger for readability */
    font-weight: 400; /* Lighter weight */
}

.doctor-title {
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 600;
    font-size: 3.5rem; /* Equivalent to display-3 */
}

.doctor-subtitle {
    opacity: 0.9;
    font-weight: 300;
    font-size: 1.75rem; /* Equivalent to h3 */
}

.contact-details-container {
    padding: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item.align-top {
    align-items: flex-start;
}

.contact-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    transition: all 0.4s ease;
}

.contact-icon-wrapper:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-icon-wrapper i {
    color: var(--text-light);
}

.contact-label {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.775em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 300;
    display: block;
    position: relative;
}

.contact-value.address-text {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Responsive Design & Refactoring */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .doctor-title {
        font-size: 2.5rem;
    }
    
    .contact-details-container {
        padding: 1.7rem;
        margin-bottom: 2rem;
    }

    .row.justify-content-between {
        justify-content: center !important;
    }
}

@media (max-width: 767.98px) {
    .doctor-title {
        font-size: 2rem;
    }

    .doctor-subtitle {
        font-size: 1.3rem;
    }
}

/* Reset overrides for extracted classes to ensure no conflict with Bootstrap */
.form-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Restored Header Classes */
.contact-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);;
    padding-bottom: 1rem;
    display: inline-block;
    color: var(--text-light);
    font-weight: 500;
}

.appointment-header {
    background: transparent;
    border: none;
    padding: 1.5rem 1.5rem 0 1.5rem;
    text-align: center;
}

.appointment-header h3 {
    font-weight: 500 !important;
}

@media (min-width: 992px) {
    .appointment-header {
        padding: 3rem 3rem 0 3rem;
    }
}
