/* Custom CSS for elements that need more specific styling */

/* ===== MODAL STYLES ===== */
/* Modal Overlay */
.modal-overlay {
    transition: opacity 300ms ease-in-out;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

/* Modal Container - Fixed height at 95vh */
.modal-container {
    transition: all 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
    opacity: 1;
    display: flex;
    flex-direction: column;
    height: 95vh;
    max-height: 95vh;
    overflow: hidden;
}

/* Responsive modal widths - increased by 50% */
@media (max-width: 639px) {
    .modal-container {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    #appointment-modal {
        padding: 0 !important;
    }
    
    .modal-header-container {
        padding: 0.75rem !important;
    }
    
    .modal-header-container h2 {
        font-size: 0.875rem !important;
    }
    
    #step-1-indicator,
    #step-2-indicator,
    #step-3-indicator,
    #step-4-indicator {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.75rem !important;
    }
    
    #step-1-label,
    #step-2-label,
    #step-3-label,
    #step-4-label {
        font-size: 0.625rem !important;
    }
    
    #progress-1-2,
    #progress-2-3,
    #progress-3-4 {
        width: 1rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .service-option {
        padding: 0.75rem !important;
    }
    
    .service-option .w-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .service-option h4 {
        font-size: 0.875rem !important;
    }
    
    .service-option p {
        font-size: 0.75rem !important;
    }
    
    .calendar-container .grid.grid-cols-7 > div {
        padding: 0.25rem !important;
        font-size: 0.75rem !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .modal-container {
        max-width: 1050px !important;
        /* was 700px, now +50% */
    }
}

@media (min-width: 1024px) and (max-width: 1599px) {
    .modal-container {
        max-width: 1350px !important;
        /* was 900px, now +50% */
    }
}

@media (min-width: 1600px) {
    .modal-container {
        max-width: 1650px !important;
        /* was 1100px, now +50% */
    }
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.9);
    opacity: 0;
}

/* Modal Header & Progress - Fixed positioning */
.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Progress Indicator Enhancement - Larger circles with better contrast */
#step-1-indicator,
#step-2-indicator,
#step-3-indicator,
#step-4-indicator {
    transition: all 0.3s ease;
}

/* Labels alongside circles */
.progress-indicator-label {
    color: #4b5563;
    transition: color 0.3s ease;
}

/* Active state label */
.progress-indicator-label.active {
    color: #2563eb;
    font-weight: 600;
}

/* Completed state label */
.progress-indicator-label.completed {
    color: #059669;
    font-weight: 600;
}

/* Step title header in form body */
.step-title-header {
    animation: fadeInUp 0.4s ease;
}

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

/* Modal Body Scrollbar Styling with Enhanced Scroll Shadows */
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-bottom: 1.5rem;
    background:
        linear-gradient(white 30%, rgba(255, 255, 255, 0)) center top,
        linear-gradient(rgba(255, 255, 255, 0), white 70%) center bottom,
        radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) center top,
        radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) center bottom;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

/* Enhanced gradient overlay at bottom to indicate more content - REMOVED for flexbox layout */
/* .modal-body::after removed - no longer needed with proper flexbox footer */

/* Scroll hint arrow (appears on first load only) - adjusted for flexbox */
.scroll-hint-arrow {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    animation: bounce-down 2s ease-in-out 3;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes bounce-down {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}

.scroll-hint-arrow.show {
    opacity: 0.6;
}

.scroll-hint-arrow i {
    font-size: 1.5rem;
    color: #3b82f6;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Footer Styling - Pure Flexbox */
.modal-footer {
    flex: 0 0 auto;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* Footer button enhancements */
.modal-footer button {
    min-height: 48px;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.modal-footer button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-footer button:active:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.modal-footer button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.modal-footer button:active:not(:disabled) {
    transform: translateY(0);
}

.modal-footer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
}

/* Mobile responsive footer - Enhanced with flexbox */
@media (max-width: 768px) {
    .modal-footer {
        flex-shrink: 0;
    }
    
    .modal-footer>div {
        flex-direction: column-reverse !important;
        gap: 0.75rem !important;
    }

    .modal-footer button {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px;
    }

    .modal-footer>div>div {
        width: 100%;
        flex-direction: column-reverse;
        gap: 0.75rem !important;
    }

    /* Ensure Next button appears first (top) for better UX */
    #modal-next-btn {
        order: -1;
    }
}

/* Very small screens - Icon only buttons */
@media (max-width: 374px) {
    .modal-footer button .button-text {
        display: none;
    }

    .modal-footer button {
        padding: 0.875rem;
        min-width: 48px;
    }

    .modal-footer button i {
        margin: 0 !important;
        font-size: 1.25rem;
    }
}

/* Back button specific styling */
#modal-back-btn {
    background: white;
    border: 2px solid #d1d5db;
}

#modal-back-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Submit button special styling (Step 4) */
#modal-next-btn.submit-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

#modal-next-btn.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* Next button - Ensure green background */
#modal-next-btn:not(.submit-btn) {
    background: linear-gradient(to right, #16a34a, #15803d) !important;
}

#modal-next-btn:not(.submit-btn):hover:not(:disabled) {
    background: linear-gradient(to right, #15803d, #166534) !important;
}

/* Next button pulse animation when enabled */
@keyframes button-enable-pulse {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(22, 163, 74, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(22, 163, 74, 0.6),
                    0 0 0 4px rgba(22, 163, 74, 0.2);
    }
}

#modal-next-btn:not(:disabled).pulse-enabled {
    animation: button-enable-pulse 1.5s ease-in-out 3;
}

#modal-next-btn:not(:disabled).pulse-enabled:hover {
    animation: none;
}

/* Tooltip for disabled button */
.button-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

.button-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

button:disabled:hover .button-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Enhanced Loading state */
#modal-next-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#modal-next-btn.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Multi-stage loading state for footer */
.modal-footer.loading {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-message {
    font-weight: 600;
    color: #3b82f6;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Error recovery state */
.error-recovery-container {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0.5rem;
}

.error-recovery-container .retry-btn {
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s;
}

.error-recovery-container .retry-btn:hover {
    background: #dc2626;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Pre-selection Highlight Animation */
@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
        border-color: #fbbf24;
    }

    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
        border-color: #f59e0b;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
        border-color: #3b82f6;
    }
}

.service-option.preselected {
    animation: highlight-pulse 1s ease-out;
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

/* Modal Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Modal Max Height Utility */
.max-h-\[90vh\] {
    max-height: 90vh;
}

.max-w-6xl {
    max-width: 72rem;
    /* 1152px - Tailwind's max-w-6xl */
}

/* Modal Close Button - No animation, absolute top-right for all screens */
/* Sizes reduced by 25%: Phone 2.5->1.875rem, Tablet 3->2.25rem, Laptop 3.5->2.625rem */
#close-modal {
    transition: none;
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    width: 1.875rem;
    height: 1.875rem;
    z-index: 50 !important;
}

#close-modal i {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    #close-modal {
        top: 0.75rem !important;
        right: 0.75rem !important;
        left: auto !important;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    #close-modal i {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
    #close-modal {
        top: 0.75rem !important;
        right: 1rem !important;
        left: auto !important;
        width: 2.625rem;
        height: 2.625rem;
    }
    
    #close-modal i {
        font-size: 0.9375rem;
    }
}

#close-modal:hover {
    transform: none;
}

/* Focus trap styling */
.modal-container:focus-visible {
    outline: none;
}

.hero-swiper {
    height: 100vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Swiper navigation buttons styling */
.swiper-button-next,
.swiper-button-prev {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(0, 0, 0, 0.3);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Swiper pagination styling */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white !important;
    transform: scale(1.2);
}

/* Animation for slide content */
.swiper-slide-active .animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.swiper-slide-active .animate-delay-200 {
    animation-delay: 0.2s;
}

.swiper-slide-active .animate-delay-400 {
    animation-delay: 0.4s;
}

/* Inline Validation Styles */
.form-field-container {
    position: relative;
    margin-bottom: 1rem;
}

.input-wrapper {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.validation-icon i {
    font-size: 1.125rem;
}

.error-message {
    display: flex;
    align-items: center;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    animation: slideInDown 0.3s ease;
}

.error-message i {
    margin-right: 0.375rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input.border-red-500,
select.border-red-500,
textarea.border-red-500 {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease;
}

input.border-green-500,
select.border-green-500,
textarea.border-green-500 {
    border-color: #10b981 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Multi-Step Form Styles */
.form-step {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-step.hidden {
    display: none;
}

.form-step.slide-out-left {
    animation: slideOutToLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.slide-out-right {
    animation: slideOutToRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.slide-in-left {
    animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.slide-in-right {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

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

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .form-step,
    .form-step.slide-out-left,
    .form-step.slide-out-right,
    .form-step.slide-in-left,
    .form-step.slide-in-right {
        animation: fadeIn 0.2s ease;
    }
}

.service-option {
    transition: all 0.3s ease;
}

.service-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Blue service card - Psychiatric Evaluation */
.service-option-blue:has(input:checked) {
    border-color: #2563eb !important;
    background-color: #dbeafe !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-option-blue:has(input:checked) .w-12 {
    background-color: #2563eb !important;
}

.service-option-blue:has(input:checked) .w-12 i {
    color: white !important;
}

/* Green service card - Medication Management */
.service-option-green:has(input:checked) {
    border-color: #16a34a !important;
    background-color: #dcfce7 !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.service-option-green:has(input:checked) .w-12 {
    background-color: #16a34a !important;
}

.service-option-green:has(input:checked) .w-12 i {
    color: white !important;
}

/* Purple service card - Individual Therapy */
.service-option-purple:has(input:checked) {
    border-color: #9333ea !important;
    background-color: #f3e8ff !important;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.service-option-purple:has(input:checked) .w-12 {
    background-color: #9333ea !important;
}

.service-option-purple:has(input:checked) .w-12 i {
    color: white !important;
}

/* Teal service card - Telehealth */
.service-option-teal:has(input:checked) {
    border-color: #0d9488 !important;
    background-color: #ccfbf1 !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.service-option-teal:has(input:checked) .w-12 {
    background-color: #0d9488 !important;
}

.service-option-teal:has(input:checked) .w-12 i {
    color: white !important;
}

/* Calendar Styles */
.calendar-day {
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #dbeafe;
}

.calendar-day.available {
    background-color: #f0f9ff;
    color: #1d4ed8;
    font-weight: 500;
}

.calendar-day.selected {
    background-color: #3b82f6;
    color: white;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.time-slot {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.time-slot:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.time-slot.selected {
    border-color: #3b82f6;
    background-color: #3b82f6;
    color: white;
}

.time-slot.booked {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    cursor: not-allowed;
}

/* Progress Indicator Animations - Three State System */
.progress-complete {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    animation: scaleCheckmark 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-complete::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.125rem;
    font-weight: bold;
    animation: popIn 0.3s ease-out 0.2s backwards;
}

@keyframes scaleCheckmark {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.progress-active {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: white !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

.progress-active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(22, 163, 74, 0.6);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.progress-upcoming {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
}

.progress-line-complete {
    background: linear-gradient(to right, #16a34a, #15803d) !important;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-line-complete::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #16a34a, #15803d);
    animation: progressLineGrow 0.5s ease-out forwards;
    transform: translateX(-100%);
}

.progress-line-active {
    background: linear-gradient(to right, #16a34a 0%, #16a34a 50%, #d1d5db 50%, #d1d5db 100%);
    background-size: 200% 100%;
    animation: progressLineGrow 0.5s ease-out forwards;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-body {
        padding-bottom: 1.5rem;
    }

    .form-step {
        padding: 16px 0;
    }

    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .flex.justify-between {
        flex-direction: column;
        gap: 12px;
    }

    .flex.justify-between button {
        width: 100%;
    }

    .progress-indicator {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-indicator>div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .progress-indicator .w-8 {
        display: none;
    }

    .calendar-container {
        margin-bottom: 24px;
    }

    .service-option {
        margin-bottom: 12px;
    }

    .time-slots-container {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Reduce header/footer height on mobile for more body space */
    .modal-header {
        padding: 0.75rem !important;
    }

    .modal-footer {
        padding: 0.75rem 1rem !important;
    }

    .modal-body {
        padding: 1rem !important;
    }

    /* Make progress circles smaller on mobile */
    #step-1-indicator,
    #step-2-indicator,
    #step-3-indicator,
    #step-4-indicator {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.875rem !important;
    }

    /* Mobile footer - vertical stack */
    .modal-footer .flex {
        flex-direction: column-reverse !important;
        gap: 0.5rem;
    }

    .modal-footer button {
        width: 100% !important;
        padding: 0.875rem 1.5rem !important;
    }

    .modal-footer .flex-1 {
        display: none;
    }

    /* Next button on top (primary action) */
    #modal-next-btn-container {
        order: -1;
    }

    /* Shorten button text on mobile */
    #modal-next-btn::after {
        content: attr(data-mobile-text);
    }

    #modal-next-btn {
        font-size: 0.9375rem;
    }
}

/* Touch-friendly sizing for mobile */
@media (max-width: 640px) {
    .time-slot {
        padding: 16px;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .calendar-day {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    button {
        min-height: 48px;
        font-size: 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 16px;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* Slide in from left */
@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

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

/* Slide in from right */
@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

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

/* Scale animation */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bounce animation */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -10px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -5px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

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

.animate-bounce-in {
    animation: bounce 1s ease-out;
}

/* Delayed animations */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-400 {
    animation-delay: 400ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
    animation: slideInLeft 0.3s ease-out;
}

#mobile-menu {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-origin: top;
}

/* Button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Floating animation for icons */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for important elements */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Intersection Observer animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Special effects for Schedule Consultation button */
.schedule-btn {
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #2563eb);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.schedule-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.schedule-btn::after {
    content: '✨';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.schedule-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
    background-size: 100% 100%;
}

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

.schedule-btn:hover::after {
    opacity: 1;
    right: 10px;
}

.schedule-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Pulsing ring effect */
.schedule-btn-wrapper {
    position: relative;
    display: inline-block;
}

.schedule-btn-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Magnetic effect */
.schedule-btn:hover {
    cursor: pointer;
}

/* Glow effect */
.schedule-btn {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.schedule-btn:hover {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
}

/* Responsive optimizations for 15-inch laptops (1366x768 to 1920x1080) */
@media screen and (min-width: 1024px) and (max-width: 1920px) {
    .container {
        max-width: 1200px;
    }

    #contact .container {
        max-width: 1400px;
    }

    /* Contact form optimizations */
    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    #contact-form .space-y-4>*+* {
        margin-top: 1rem;
    }

    /* Contact section heights */
    #contact textarea {
        min-height: 80px;
    }

    /* Better spacing for laptop screens */
    .hero-image {
        height: 75vh;
    }

    .hero-image h1 {
        font-size: 3.5rem;
    }

    .hero-image p {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

/* Specific optimizations for common 15-inch laptop resolutions */
@media screen and (width: 1366px) and (height: 768px) {
    #contact {
        padding: 2rem 0;
    }

    .hero-image {
        height: 70vh;
    }

    .hero-image h1 {
        font-size: 3rem;
    }
}

/* Enhanced responsive grid for contact form */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #contact-form .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* ===== PRICING SECTION RESPONSIVE STYLES ===== */
/* Enhanced pricing grid for better responsiveness */
.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
}

/* Mobile phones (up to 639px) */
@media (max-width: 639px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        max-width: 100% !important;
    }

    .pricing-card {
        padding: 1.25rem !important;
        margin: 0 0.5rem;
    }

    .pricing-card h3 {
        font-size: 1.375rem !important;
        line-height: 1.3;
    }

    .pricing-card .text-4xl {
        font-size: 2.5rem !important;
    }
}

/* Small tablets (640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem;
    }

    .pricing-card {
        padding: 1.375rem !important;
    }
}

/* Large tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
        max-width: 48rem !important;
    }

    .pricing-card {
        padding: 1.5rem !important;
    }
}

/* Small laptops (1024px to 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.25rem;
        max-width: 80rem !important;
    }

    .pricing-card {
        padding: 1.25rem !important;
    }

    .pricing-card h3 {
        font-size: 1.375rem !important;
        line-height: 1.3;
    }

    .pricing-card ul li span {
        font-size: 0.875rem !important;
    }
}

/* 15-inch laptops and medium desktops (1280px to 1599px) - MAIN TARGET */
@media (min-width: 1280px) and (max-width: 1599px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
        max-width: 85rem !important;
    }

    .pricing-card {
        padding: 1.5rem !important;
        min-height: 450px;
    }

    .pricing-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .pricing-card .text-4xl {
        font-size: 2.75rem !important;
    }
}

/* Large desktops (1600px and above) */
@media (min-width: 1600px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem;
        max-width: 90rem !important;
    }

    .pricing-card {
        padding: 2rem !important;
        min-height: 500px;
    }
}

/* Enhanced spacing and readability for all pricing cards */
.pricing-card .text-center.mb-6 {
    margin-bottom: 1.5rem !important;
}

.pricing-card .text-center.mb-6:last-of-type {
    margin-bottom: 1.25rem !important;
}

/* Better button positioning */
.pricing-card .text-center.mt-auto {
    margin-top: auto;
    padding-top: 1rem;
}

/* Ensure consistent icon sizes */
.pricing-card .w-16.h-16 {
    width: 3.5rem !important;
    height: 3.5rem !important;
}

.pricing-card .w-16.h-16 i {
    font-size: 1.75rem !important;
}

/* List styling improvements */
.pricing-card ul li {
    align-items: flex-start;
    line-height: 1.5;
}

.pricing-card ul li i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Special styling for cancellation policy card */
.pricing-card.bg-red-50 {
    border-left: 4px solid #dc2626;
}

.pricing-card.bg-red-50:hover {
    background-color: #fef2f2 !important;
}

/* ===== MOBILE HEADER RESPONSIVE STYLES ===== */
/* Base mobile header styles */
.mobile-logo {
    transition: all 0.3s ease;
}

.mobile-title {
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.mobile-title:hover {
    text-decoration: none;
}

.mobile-text-proactive {
    color: #1f2937;
    font-weight: 700;
}

.mobile-text-mental-health {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Extra small mobile phones (320px to 374px) */
@media (max-width: 374px) {
    header {
        padding: 0.75rem 0;
    }

    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-logo {
        height: 2.25rem !important;
        width: auto !important;
        margin-right: 0.5rem !important;
    }

    .mobile-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .mobile-text-proactive,
    .mobile-text-mental-health {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    .mobile-menu-btn {
        padding: 0.375rem !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .mobile-menu-btn svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
        stroke-width: 2.5;
    }
}

/* Small mobile phones (375px to 424px) - iPhone SE, etc. */
@media (min-width: 375px) and (max-width: 424px) {
    header {
        padding: 0.75rem 0;
    }

    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-logo {
        height: 2.5rem !important;
        width: auto !important;
        margin-right: 0.625rem !important;
    }

    .mobile-title {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }

    .mobile-text-proactive,
    .mobile-text-mental-health {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }

    .mobile-menu-btn {
        padding: 0.5rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .mobile-menu-btn svg {
        width: 1.375rem !important;
        height: 1.375rem !important;
        stroke-width: 2.5;
    }
}

/* Medium mobile phones (425px to 767px) - Most smartphones */
@media (min-width: 425px) and (max-width: 767px) {
    header {
        padding: 0.875rem 0;
    }

    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mobile-logo {
        height: 2.75rem !important;
        width: auto !important;
        margin-right: 0.75rem !important;
    }

    .mobile-title {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .mobile-text-proactive,
    .mobile-text-mental-health {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .mobile-menu-btn {
        padding: 0.5rem !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .mobile-menu-btn svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
        stroke-width: 2;
    }
}

/* Small tablets and large phones in landscape (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    header {
        padding: 1rem 0;
    }

    header .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .mobile-logo {
        height: 3rem !important;
        width: auto !important;
        margin-right: 1rem !important;
    }

    .mobile-title {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }

    .mobile-text-proactive,
    .mobile-text-mental-health {
        font-size: 1.125rem !important;
        line-height: 1.3 !important;
    }

    .mobile-menu-btn {
        padding: 0.75rem !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .mobile-menu-btn svg {
        width: 2rem !important;
        height: 2rem !important;
        stroke-width: 2;
    }
}

/* Desktop and large screens (1024px and above) */
@media (min-width: 1024px) {
    header nav {
        display: flex !important;
    }

    header .mobile-menu-btn {
        display: none !important;
    }

    .mobile-logo {
        height: 2.5rem !important;
    }

    .mobile-title {
        font-size: 1.5rem !important;
    }

    .mobile-text-proactive,
    .mobile-text-mental-health {
        font-size: 1.5rem !important;
    }
}

/* Header container improvements for mobile */
@media (max-width: 767px) {
    header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    header .container {
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Ensure proper flex behavior */
    header .flex {
        align-items: center;
        justify-content: space-between;
        gap: 0;
        height: auto;
    }

    /* Logo and title container */
    header .flex-1 {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1;
        overflow: visible;
    }

    /* Title responsive behavior */
    .mobile-title {
        text-decoration: none;
        display: flex;
        align-items: center;
        flex: none;
        min-width: 0;
    }

    .mobile-title:hover {
        text-decoration: none;
    }

    /* Mobile menu button enhancements */
    .mobile-menu-btn:active {
        transform: scale(0.95);
        background-color: #e5e7eb;
    }

    .mobile-menu-btn:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 1px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 767px) and (pointer: coarse) {
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
        padding: 0.75rem;
    }

    .mobile-title {
        line-height: 1.3;
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
    .mobile-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .mobile-logo {
        height: 2rem !important;
    }

    .mobile-title {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}

/* Dark mode support for mobile header */
@media (prefers-color-scheme: dark) and (max-width: 767px) {
    header {
        background-color: #1f2937;
        border-bottom: 1px solid #374151;
    }

    .mobile-title {
        color: #60a5fa;
    }

    .mobile-menu-btn {
        color: #d1d5db;
    }

    .mobile-menu-btn:hover {
        color: #60a5fa;
        background-color: #374151;
    }
}

/* Keyboard Shortcuts Help Tooltip */
.keyboard-shortcuts-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.keyboard-shortcuts-tooltip.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.keyboard-shortcuts-tooltip h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.keyboard-shortcuts-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyboard-shortcuts-tooltip li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

.keyboard-shortcuts-tooltip kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

/* Glass Morphism Effect (Optional Premium Feature) */
.modal-header.glass-morphism {
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-footer.glass-morphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(12px)) {
    .modal-header.glass-morphism {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }
    .modal-footer.glass-morphism {
        background: #ffffff;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modal-header,
    .modal-footer {
        border: 2px solid currentColor;
    }
    
    #modal-next-btn:not(:disabled) {
        border: 2px solid white;
    }
    
    .progress-active::before {
        border-width: 3px;
    }
}

/* Booking Modal Styles */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.booking-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.booking-modal-content {
    position: relative;
    background-color: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10;
    margin: 1rem;
}

.booking-modal.active .booking-modal-content {
    transform: scale(1);
}

.booking-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4b5563;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
}

.booking-modal-close:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Ensure form fits in modal */
.booking-modal .form-step {
    padding: 0.5rem;
}

/* ===== INTERNATIONAL TELEPHONE INPUT STYLES ===== */
.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 90px !important;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.iti__tel-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.iti__country-container {
    padding: 0;
}

.iti__selected-country {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-right: 1px solid #d1d5db;
    border-radius: 0.5rem 0 0 0.5rem;
}

.iti__selected-country:hover {
    background-color: #f3f4f6;
}

.iti__dropdown-content {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    max-height: 250px;
}

.iti__search-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
}

.iti__country {
    padding: 0.5rem 0.75rem;
}

.iti__country:hover {
    background-color: #eff6ff;
}

.iti__country--highlight {
    background-color: #dbeafe;
}

.iti__dial-code {
    color: #6b7280;
}

.iti__selected-dial-code {
    color: #374151;
    font-weight: 500;
    margin-left: 0.5rem;
}

.iti__arrow {
    border-top-color: #6b7280;
}

.iti__arrow--up {
    border-bottom-color: #6b7280;
}

/* Phone input validation states */
.iti .iti__tel-input.field-error {
    border-color: #ef4444 !important;
}

.iti .iti__tel-input.field-success {
    border-color: #10b981 !important;
}

/* Mobile responsive for phone input */
@media (max-width: 640px) {
    .iti__tel-input {
        padding-left: 80px !important;
        font-size: 16px;
    }
    
    .iti__dropdown-content {
        max-width: calc(100vw - 2rem);
    }
}