/* ========================================
   PREMIUM CONSULTATION PAGE DESIGN
   "Glass & Gold" Aesthetic
   ======================================== */

:root {
    --premium-gold: #D4AF37;
    --premium-gold-light: #F3E5AB;
    --premium-teal: #0F766E;
    --premium-dark: #1A202C;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --blur-strength: 12px;
}

/* Background Override */
body {
    background-color: #F8FAFC !important;
    /* Cleaner background */
}

/* Premium Hero Section */
.premium-hero {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Reduced height from 85vh to 70vh */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/inside.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -80px;
    /* Pull behind header if transparent */
    padding-top: 100px;
    /* Adjusted padding */
    color: white;
}

/* Create a dark overlay gradient for text readability */
/* Lightened overlay for a fresher look */
.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 56, 52, 0.35), rgba(15, 118, 110, 0.25)); /* Lighter */
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    /* Center everything */
    text-align: center;
    /* Center text */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(var(--blur-strength));
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
    animation: fadeInDown 0.8s ease-out;
}

.premium-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 900px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
    color: #ffffff !important;
    /* FORCE WHITE */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.premium-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    opacity: 0.95;
    line-height: 1.7;
    margin: 0;
    color: #f0fdfa !important;
    /* FORCE LIGHT */
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
    /* animation: fadeInUp 0.8s ease-out 0.6s both; REMOVED per user request for stability */
}

/* Premium Buttons */
.btn-premium-primary {
    background: var(--premium-gold);
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    /* Hardware acceleration to prevent flicker */
    transform: translateZ(0);
}

.btn-premium-primary:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background: #C5A028;
    color: #fff;
}

.btn-premium-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

.btn-premium-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) translateZ(0);
    color: white;
}

/* Sections */
.premium-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif; /* Elegant serif */
    font-size: 3.5rem; /* Slightly larger */
    font-weight: 600;
    color: var(--premium-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748B;
    max-width: 700px;
    margin: 0 auto 70px;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 48px 32px; /* A bit more breathing room */
    border-radius: 32px; /* Softer corners */
    box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.08); /* Floating shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(15, 118, 110, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(15, 118, 110, 0.15); /* More bloom */
    border-color: rgba(212, 175, 55, 0.15); /* Subtle gold tint on border */
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(212, 175, 55, 0.1));
    border-radius: 50%; /* Perfect circle */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); /* Inner highlight */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--premium-teal);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--premium-dark);
}

.feature-description {
    color: #64748B;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Pricing Cards */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pricing-card {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    padding: 48px 40px;
    border-radius: 32px; /* Softer rounded */
    border: 1px solid #E2E8F0;
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); /* Floating shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(15, 118, 110, 0.12);
}

.pricing-card.highlight {
    border: 2px solid var(--premium-gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #D4AF37, #C5A028); /* Gradient gold ribbon */
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4);
    white-space: nowrap;
    z-index: 2;
    width: max-content;
    max-width: 90%;
    text-align: center;
}

.highlight .price-title-card {
    font-size: 1.5rem;
    /* Larger for Head Doctor */
    color: var(--premium-gold);
    /* Emphasize with gold */
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F1F5F9;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--premium-dark);
    line-height: 1;
}

.price-unit {
    font-size: 1.5rem;
    color: #94A3B8;
    font-weight: 500;
}

.price-title-card {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--premium-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: #475569;
    font-size: 1.05rem;
}

.check-icon {
    color: var(--premium-teal);
    font-weight: bold;
    background: rgba(15, 118, 110, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Booking Section Wrapper */
.booking-section-wrapper {
    background: #F8FAFC;
    padding: 0 0 100px;
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(15, 118, 110, 0.15);
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.05);
}

/* Override Booking Widget Inner Styles to blend seamlessly if needed */
#bionika-booking-widget {
    min-height: auto;
    box-shadow: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Modal */
.contact-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    text-align: center;
}

.contact-modal-backdrop.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--premium-dark);
    margin-bottom: 8px;
}

.modal-subtitle {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    color: var(--premium-dark);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.contact-btn-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-title {
        font-size: 2.25rem;
    }

    .premium-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem; /* Better scale for mobile */
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn-premium-primary,
    .btn-premium-glass {
        width: 100%;
        justify-content: center;
    }

    .pricing-card {
        padding: 40px 24px; /* Better mobile padding */
        border-radius: 28px;
    }

    .pricing-card.highlight {
        transform: none !important; /* Disable scale on mobile to prevent overflow */
        margin: 20px 0;
        border-width: 2px;
    }

    .pricing-wrapper {
        gap: 24px;
        padding: 0 16px;
    }

    .feature-card {
        padding: 32px 24px;
        margin: 0 16px; /* Avoid edge hugging */
    }
}

/* ========================================
   STICKY CTA BAR (Bottom Mobile Nav)
   ======================================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-cta-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.sticky-icon-btn {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
    position: relative;
}

.sticky-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.sticky-icon-btn:hover {
    color: var(--premium-gold);
    transform: translateY(-3px);
}

.sticky-icon-btn:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

/* Add separator lines */
.sticky-icon-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .sticky-cta-bar {
        bottom: 16px;
        padding: 10px 20px;
        gap: 20px;
        width: 90%;
        max-width: 320px;
        justify-content: space-between;
    }

    .sticky-icon-btn:not(:last-child)::after {
        display: none;
    }
}