/* ========================================
   FISIOTERAPI BOOKING SYSTEM - STEP 8 CSS
   Complete styling for multi-step booking form
   Fixed Version - No Errors
======================================== */

/* ========================================
   STEP PROGRESS INDICATOR
======================================== */

.step-progress {
    max-width: 600px;
    margin: 0 auto;
}

.step-indicator {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    z-index: 2;
}

.step-indicator.active {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    animation: pulse-glow 2s infinite;
}

.step-indicator.completed {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    transform: scale(1.05);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    }
    50% {
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.7);
    }
}

.step-progress .flex-grow-1 {
    height: 3px;
    background: linear-gradient(90deg, var(--gray-300) 0%, var(--gray-200) 100%);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

/* ========================================
   BOOKING STEPS
======================================== */

.booking-step {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.booking-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: stepFadeIn 0.6s ease-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SERVICE SELECTION CARDS
======================================== */

.service-selection-card {
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
}

.service-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-selection-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
}

.service-selection-card:hover::before {
    left: 100%;
}

.service-selection-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.2);
}

.service-selection-card .service-icon {
    transition: transform 0.4s ease;
}

.service-selection-card:hover .service-icon,
.service-selection-card.selected .service-icon {
    transform: scale(1.1) rotateY(15deg);
}

.service-selection-card .pricing-info {
    background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.service-selection-card.selected .pricing-info {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.04) 100%);
    border-color: var(--primary-blue);
}

/* ========================================
   THERAPIST SELECTION CARDS
======================================== */

.therapist-card {
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
}

.therapist-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.therapist-card:hover,
.therapist-card.selected {
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
}

.therapist-card:hover::after,
.therapist-card.selected::after {
    transform: scaleX(1);
}

.therapist-card .therapist-photo {
    transition: all 0.4s ease;
}

.therapist-card:hover .therapist-photo,
.therapist-card.selected .therapist-photo {
    transform: scale(1.05);
}

.therapist-card .badge {
    transition: all 0.3s ease;
}

.therapist-card:hover .badge,
.therapist-card.selected .badge {
    transform: scale(1.05);
    background: var(--primary-blue) !important;
    color: white !important;
}

/* ========================================
   CALENDAR WIDGET
======================================== */

.calendar-widget {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.calendar-day:hover::before {
    width: 100%;
    height: 100%;
}

.calendar-day:hover {
    border-color: var(--primary-blue);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.calendar-day.disabled,
.calendar-day.past {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
    color: white;
    border-color: var(--warning);
}

.calendar-day.today.selected {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-color: var(--primary-blue);
}

/* ========================================
   TIME SLOT BUTTONS
======================================== */

.time-slot-btn {
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.time-slot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.time-slot-btn:hover::before {
    left: 100%;
}

.time-slot-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.time-slot-btn.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.time-slot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-300);
}

.time-slot-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   PATIENT SEARCH
======================================== */

.patient-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.patient-search-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.patient-search-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transition: width 0.3s ease;
}

.patient-search-item:hover {
    background: rgba(79, 70, 229, 0.05);
    padding-left: 1.25rem;
}

.patient-search-item:hover::before {
    width: 4px;
}

.patient-search-item:last-child {
    border-bottom: none;
}

/* ========================================
   FORM ENHANCEMENTS
======================================== */

.form-floating {
    position: relative;
}

.form-floating .form-control,
.form-floating .form-select {
    border: 2px solid var(--gray-300);
    transition: all 0.3s ease;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.form-floating label {
    padding: 1rem 0.75rem;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label,
.form-floating .form-select:focus ~ label,
.form-floating .form-select:not([value=""]) ~ label {
    color: var(--primary-blue);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Validation states */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.8-.8 4.72-4.72L6.32 0 2.3 4.02.98 2.7 0 3.68l2.3 3.05z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}

/* ========================================
   PRICING SUMMARY
======================================== */

.pricing-summary {
    background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.pricing-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.pricing-summary h6 {
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

/* ========================================
   BOOKING SUMMARY CARDS
======================================== */

.booking-step .border {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-step .border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.booking-step .border:hover::before {
    transform: scaleX(1);
}

.booking-step .border:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

/* ========================================
   BUTTON ENHANCEMENTS
======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-primary:disabled {
    background: var(--gray-400);
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-400);
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--gray-400);
    border-color: var(--gray-400);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   CARD ENHANCEMENTS
======================================== */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%) !important;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.card-header.bg-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* ========================================
   ALERT ENHANCEMENTS
======================================== */

.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(25px, -25px);
}

.alert-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.alert-info::before {
    background: var(--info);
}

.alert-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.alert-warning::before {
    background: var(--warning);
}

.alert-danger {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.alert-danger::before {
    background: var(--danger);
}

.alert-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.alert-success::before {
    background: var(--success);
}

/* ========================================
   PAYMENT PAGE SPECIFIC STYLES
======================================== */

.payment-method-card {
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.6s ease;
}

.payment-method-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

.payment-method-card:hover::before {
    left: 100%;
}

.payment-method-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.payment-method-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.payment-method-card.selected::after {
    transform: scaleX(1);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: all 0.4s ease;
}

.payment-method-card.selected .payment-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1) rotateY(15deg);
}

.countdown-timer {
    background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    font-weight: 600;
    animation: pulseGlow 2s infinite;
    position: relative;
    overflow: hidden;
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
    }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.security-badge {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.security-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   CONFIRMATION PAGE SPECIFIC STYLES
======================================== */

.success-animation {
    animation: successBounce 1.2s ease-out;
}

@keyframes successBounce {
    0% { 
        transform: scale(0) rotate(0deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 1; 
    }
    75% {
        transform: scale(0.9) rotate(270deg);
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        opacity: 1; 
    }
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    font-size: 3.5rem;
    color: white;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    position: relative;
}

.success-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.booking-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success) 0%, #059669 100%);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.qr-code-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-300);
    text-align: center;
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    border-color: var(--primary-blue);
    background: rgba(79, 70, 229, 0.02);
}

.next-steps-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.next-steps-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.step-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.6s ease;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.step-item:hover::before {
    left: 100%;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.1) rotateY(15deg);
}

.whatsapp-reminder {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-reminder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: whatsappPulse 3s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.download-btn {
    background: linear-gradient(135deg, var(--info) 0%, #0284c7 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, var(--info) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.share-btn {
    background: linear-gradient(135deg, var(--warning) 0%, #f59e0b 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, var(--warning) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.payment-status {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.payment-status.paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-status.paid:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.05);
}

.payment-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: pendingPulse 2s infinite;
}

@keyframes pendingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   LOADING STATES
======================================== */

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.spinner-border.text-primary {
    color: var(--primary-blue) !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.loading-content {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    max-width: 400px;
    animation: scaleIn 0.4s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   MODAL ENHANCEMENTS
======================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ========================================
   ANIMATION UTILITIES
======================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

.stagger-animation {
    animation: staggerFadeInUp 0.6s ease-out;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-bottom {
    animation: slideInBottom 0.6s ease-out;
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CUSTOM UTILITIES
======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.shadow-primary {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.border-primary-2 {
    border: 2px solid var(--primary-blue) !important;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ========================================
   NOTIFICATION ENHANCEMENTS
======================================== */

.alert.position-fixed {
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert.fade.show {
    animation: slideInRight 0.4s ease-out;
}

/* ========================================
   SCROLLBAR STYLING
======================================== */

.patient-search-results::-webkit-scrollbar {
    width: 6px;
}

.patient-search-results::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.patient-search-results::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.patient-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .step-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-progress .flex-grow-1 {
        width: 3px;
        height: 40px;
        margin: 0 auto;
    }
    
    .step-indicator {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-selection-card,
    .therapist-card {
        margin-bottom: 1.5rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .time-slot-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    .patient-search-results {
        position: relative;
        top: 0;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        border-top: 1px solid var(--gray-300);
    }
}

@media (max-width: 576px) {
    .booking-step {
        padding: 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .step-indicator {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .service-selection-card .pricing-info {
        font-size: 0.85rem;
    }
    
    .calendar-widget {
        padding: 1rem;
    }
    
    .therapist-card .therapist-photo img,
    .therapist-card .therapist-photo div {
        width: 50px !important;
        height: 50px !important;
    }
    
    .time-slot-btn {
        margin-bottom: 0.5rem;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
======================================== */

@media (prefers-reduced-motion: reduce) {
    .step-indicator,
    .service-selection-card,
    .therapist-card,
    .calendar-day,
    .time-slot-btn,
    .btn,
    .card {
        transition: none;
        animation: none;
    }
    
    .step-indicator.active {
        animation: none;
    }
    
    .success-animation,
    .countdown-timer,
    .whatsapp-reminder {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-selection-card,
    .therapist-card,
    .payment-method-card {
        border-width: 3px;
    }
    
    .calendar-day {
        border-width: 3px;
    }
    
    .time-slot-btn {
        border-width: 3px;
    }
    
    .btn-primary,
    .btn-success,
    .download-btn,
    .share-btn {
        border: 2px solid currentColor;
    }
}

/* Focus indicators for keyboard navigation */
.service-selection-card:focus,
.therapist-card:focus,
.calendar-day:focus,
.time-slot-btn:focus,
.payment-method-card:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
======================================== */

@media (prefers-color-scheme: dark) {
    .booking-card,
    .step-item,
    .payment-method-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .qr-code-container {
        background: #1f2937;
        border-color: #374151;
    }
    
    .next-steps-card {
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
        border-color: rgba(79, 70, 229, 0.3);
    }
}

/* ========================================
   ERROR STATES
======================================== */

.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--danger);
}

.retry-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    color: white;
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .booking-step:not(.active),
    .step-progress,
    .btn,
    .whatsapp-reminder {
        display: none !important;
    }
    
    .booking-card,
    .step-item {
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .service-selection-card,
    .therapist-card {
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
}

/* ========================================
   FINALIZATION
======================================== */

/* Ensure all elements have proper z-index stacking */
.step-progress { z-index: 100; }
.patient-search-results { z-index: 1000; }
.loading-overlay { z-index: 9999; }
.modal { z-index: 10000; }

/* Performance optimizations */
.booking-step,
.service-selection-card,
.therapist-card,
.payment-method-card {
    will-change: transform;
}

/* Prevent layout shifts */
.calendar-day,
.time-slot-btn,
.step-indicator {
    min-height: 40px;
    min-width: 40px;
}

/* Final accessibility touches */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ========================================
   END OF BOOKING SYSTEM CSS
   Total Lines: 1400+ - Complete & Error-Free
======================================== */

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-height: 40px;
}

.calendar-day:hover:not(.past):not(.disabled) {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.calendar-day.selected {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.calendar-day.past {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.time-slot-btn.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}