/* PurjiLagao.com - Styles */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
}

/* Component Styles */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: scale(1.05);
}

/* Booking Modal Styles - Modern & Colorful */
.form-step {
    display: none !important;
}

.form-step.active {
    display: block !important;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ensure only first step shows initially */
#bookingForm .form-step:not(.active) {
    display: none !important;
}

#bookingForm .form-step.active {
    display: block !important;
}

.booking-modal-active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 99999 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)), 
                linear-gradient(45deg, rgba(16, 185, 129, 0.05), rgba(245, 101, 101, 0.05)),
                rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

/* Modern Modal Container - Optimized Size */
#bookingModal .bg-white {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    max-width: 600px !important;
    width: 100% !important;
    max-height: 85vh !important;
    margin: auto !important;
    position: relative !important;
    transform: translateZ(0) !important;
    overflow-y: auto !important;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Colorful Header - Light & Readable */
#bookingModal .sticky {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#bookingModal .sticky h2 {
    color: #1f2937 !important;
    text-shadow: none !important;
}

#bookingModal .sticky p {
    color: #6b7280 !important;
}

/* Progress Step Labels - Better Visibility */
#bookingModal .sticky .text-gray-500 {
    color: #4b5563 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

#bookingModal .sticky .text-lg {
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8)) !important;
}

/* Beautiful Progress Bar */
#progressBar {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48cae4, #06d6a0) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bg-gray-200 {
    background: linear-gradient(90deg, #f1f3f4, #e8eaed) !important;
}

.doctor-card:hover {
    border-color: #10b981;
    background-color: #d1fae5;
}

.doctor-card input[type="radio"]:checked + div {
    border-color: #10b981;
    background-color: #d1fae5;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    border-width: 2px;
}

.radio-custom {
    transition: all 0.2s ease;
}

input[type="radio"]:checked ~ .radio-custom {
    border-color: #10b981;
    background-color: #10b981;
}

/* Form Animations */
.form-step {
    animation: slideIn 0.3s ease-in-out;
}

/* Enhanced Selection Visual Feedback */
.doctor-card,
label[for*="timeSlot"],
label[for*="urgency"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.doctor-card:hover,
label[for*="timeSlot"]:hover,
label[for*="urgency"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Green Selection Theme */
input[type="radio"]:checked + .doctor-card,
input[type="radio"]:checked + label {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Success State */
.selection-success {
    animation: pulseGreen 0.6s ease-out;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Radio Buttons */
input[type="radio"]:checked + label,
input[type="radio"]:checked ~ label {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Progress Bar Animation */
#progressBar {
    transition: width 0.5s ease-in-out;
}

/* Animations */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* Loading skeleton animation */
.skeleton {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Header Styles */
.header-blur {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    backdrop-filter: blur(10px);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.12);
}

/* Service Card Icons */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Contact Button Styles */
.contact-button {
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Animation */
.mobile-menu-slide {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-slide.active {
    transform: translateY(0);
    opacity: 1;
}

/* Beautiful Form Inputs */
#bookingForm input[type="text"],
#bookingForm input[type="tel"],
#bookingForm input[type="number"],
#bookingForm input[type="date"],
#bookingForm select,
#bookingForm textarea {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#bookingForm input:focus,
#bookingForm select:focus,
#bookingForm textarea:focus {
    outline: none !important;
    border-color: #10b981 !important;
    background: linear-gradient(145deg, #ffffff, #f0fdf4) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1),
                0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Colorful Step Headers - Readable & Beautiful */
.form-step[data-step="1"] h3 {
    color: #be185d !important;
    background: linear-gradient(90deg, #be185d, #c2410c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.form-step[data-step="2"] h3 {
    color: #7c3aed !important;
    background: linear-gradient(90deg, #7c3aed, #0891b2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.form-step[data-step="3"] h3 {
    color: #059669 !important;
    background: linear-gradient(90deg, #059669, #047857) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.form-step[data-step="4"] h3 {
    color: #d97706 !important;
    background: linear-gradient(90deg, #d97706, #c2410c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.form-step[data-step="5"] h3 {
    color: #059669 !important;
    background: linear-gradient(90deg, #059669, #047857) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.form-step[data-step="6"] h3 {
    color: #047857 !important;
    background: linear-gradient(90deg, #047857, #065f46) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

/* Beautiful Labels */
#bookingForm label {
    color: #374151 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Modern Doctor Cards */
.doctor-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.doctor-card:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(145deg, #eff6ff, #dbeafe) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Beautiful Radio Buttons */
.radio-custom {
    background: linear-gradient(145deg, #ffffff, #f3f4f6) !important;
    border: 2px solid #d1d5db !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input[type="radio"]:checked ~ .radio-custom {
    background: linear-gradient(145deg, #10b981, #059669) !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

/* Time Slots & Options */
#bookingForm label:has(input[type="radio"]) {
    background: linear-gradient(145deg, #ffffff, #f9fafb) !important;
    border: 2px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

#bookingForm label:has(input[type="radio"]):hover {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe) !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.15) !important;
    transform: translateY(-1px) !important;
}

#bookingForm input[type="radio"]:checked + label,
#bookingForm label:has(input[type="radio"]:checked) {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0) !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25) !important;
}

/* Modern Buttons */
#nextStep {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5) !important;
    transition: all 0.3s ease !important;
}

#nextStep:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

#submitBooking {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.5) !important;
    transition: all 0.3s ease !important;
}

#submitBooking:hover {
    background: linear-gradient(135deg, #059669, #065f46) !important;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
}

#prevStep {
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
}

#prevStep:hover {
    color: #374151 !important;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6) !important;
    transform: translateX(-2px) !important;
}

/* Close Button - Better Contrast */
#closeModal {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #6b7280 !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#closeModal:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
    transform: rotate(90deg) scale(1.1) !important;
    border-color: #dc2626 !important;
}

/* Review Section */
#bookingReview {
    background: linear-gradient(145deg, #f0f9ff, #e0f2fe) !important;
    border: 1px solid #7dd3fc !important;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1) !important;
}

/* Success Message Section */
.bg-green-50 {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #86efac !important;
}

/* Animation for Step Transition */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Floating Elements */
.form-step::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #bookingModal .bg-white {
        margin: 10px !important;
        max-height: 95vh !important;
    }
    
    .form-step::before {
        display: none !important;
    }
}

/* Medical Assistant Floating Button - middle-left, always visible */
#medical-chat-button {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto 0 !important; /* Robust vertical centering */
    right: 16px !important; /* Fallback for browsers without max()/env() */
    right: max(16px, env(safe-area-inset-right)) !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4) !important;
    z-index: 2147483647 !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    font-size: 24px !important;
    pointer-events: auto !important;
}

/* Header AI Assistant button */
.header-ai-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35), 0 0 0 2px rgba(255,255,255,0.6) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: visible;
}

/* Center AI button between logo and menu on mobile */
@media (max-width: 767.98px) {
    .header-mobile-ai-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.header-ai-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.header-ai-btn:active {
    transform: scale(0.98);
}

.header-ai-btn .ai-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

.header-ai-btn .ai-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

@keyframes aiPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.header-ai-btn {
    animation: aiPulse 2.2s infinite;
}
