/* CarSearchBar Modal Overlay Styles */
.car-search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(2px);
}

.car-search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.car-search-modal-overlay.active .hs_navigation_header_wrapper{
    z-index: 99999999!important;
}
/* Ensure header and car search bar stay above overlay */
header,
.x_slider_form_main_wrapper {
    position: relative;
    z-index: 9999;
}

/* Select2 dropdown overlay handling */
.select2-container--open {
    z-index: 10000 !important;
}

.select2-dropdown {
    z-index: 10000 !important;
}

/* Enhanced focus styles for inputs */
.x_slider_form_main_wrapper input:focus,
.x_slider_form_main_wrapper select:focus {
    outline: none;
    transition: all 0.2s ease;
}

/* Date picker focus enhancement */

/* Select dropdown focus enhancement */

/* Button hover effect */
#carRez:hover {
   
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-search-modal-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .x_slider_form_main_wrapper {
        margin: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile select2 adjustments */
    .select2-container--default .select2-selection--single {
        height: 38px !important;
        line-height: 36px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important;
    }
}

/* Animation for form elements */
.x_slider_form_main_wrapper {
    transition: all 0.3s ease;
}

.x_slider_form_main_wrapper.modal-active {
   
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Select2 dropdown animation */
.select2-dropdown {
    animation: select2DropdownFadeIn 0.2s ease-in-out;
}

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