/* Car Index Page Styles
================================================== */

/* Booking Steps Progress
================================================== */
.booking-steps-container {
    background: var(--primary-color);
    padding: 30px 0;
    margin-bottom: 0;
}

.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.step-item.active {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(234, 0, 30, 0.4);
}

.step-item.active .step-number {
    background: #fff;
    color: var(--secondary-color);
    font-weight: 700;
}

.step-item.active .step-title {
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.step-item.disabled {
    opacity: 0.5;
}

.step-item.disabled .step-number {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-item.disabled .step-title {
    color: rgba(255, 255, 255, 0.6);
}

.step-item.completed {
    background: rgba(46, 204, 113, 0.2);
}

.step-item.completed .step-number {
    background: #2ecc71;
    color: #fff;
}

.step-item.completed .step-title {
    color: #2ecc71;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

/* Responsive Steps */
@media (max-width: 991px) {
    .booking-steps {
        gap: 10px;
    }

    .step-item {
        padding: 10px 15px;
    }

    .step-connector {
        width: 20px;
    }

    .step-title {
        font-size: 12px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .booking-steps-container {
        padding: 20px 10px;
    }

    .booking-steps {
        flex-direction: column;
        gap: 0;
    }

    .step-connector {
        width: 2px;
        height: 20px;
        margin: 5px 0;
    }

    .step-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* User Dropdown */
.user_dropdown > ul > li > a {
    font-size: 12px;
}

.user_dropdown > ul > li > a img {
    width: 20px;
}

/* Container Fluid - Large Screens */
@media (min-width: 1366px) {
    .car-index-page .container-fluid {
        padding: 0 200px;
    }
}

/* Padding Custom */
.pt-cust {
    padding-top: 30px;
}

/* Sidebar Section */
.car-index-page .sidebar_section .sidebar_header {
    min-height: 60px;
    margin-bottom: 20px;
}

.car-index-page .form-control:disabled,
.car-index-page .form-control[readonly] {
    background-color: transparent;
    font-size: 12px;
}

.car-index-page .item_shorting .form_item .nice-select {
    font-size: 12px;
    padding-inline-start: 5px !important;
    line-height: 20px !important;
    color: #999999 !important;
}

.car-index-page .sidebar_header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.car-index-page .form-label {
    margin-bottom: 5px !important;
    font-size: 16px;
}

.car-index-page .form_item .nice-select {
    height: 50px;
    line-height: 50px;
}

.car-index-page .sidebar_section .form_item:not(:last-child) {
    margin-bottom: 10px;
}

/* Item Shorting Header */
.item-shorting-header {
    background: #25293F;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.item-shorting-header .item_available {
    color: #fff !important;
}

/* Calendar Input */
.car-index-page .cars-list-calender-input {
    background-color: #fff !important;
}

.my_40{
    margin: 15px 0 !important;
}

/* Filter Form Input - Unified Styles for inputs and selects */
.item-shorting-header .filter-form-input,
.item-shorting-header input.filter-form-input,
.item-shorting-header input.filter-form-input.form-control,
.item-shorting-header select.filter-form-input {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.item-shorting-header select.filter-form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
    cursor: pointer;
}

.item-shorting-header .filter-form-input:focus,
.item-shorting-header input.filter-form-input:focus,
.item-shorting-header select.filter-form-input:focus {
    border-color: var(--primary-color, #6366f1) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.item-shorting-header .filter-form-input::placeholder {
    color: #999 !important;
}

/* Filters accordion (small screens) */
.car-index-page .car-filters-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;

    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.car-index-page .car-filters-toggle:hover,
.car-index-page .car-filters-toggle:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.car-index-page .car-filters-chevron {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.car-index-page .car-filters-chevron:hover,
.car-index-page .car-filters-chevron:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.car-index-page .car-filters-chevron i {
    transition: transform 0.2s ease;
}

.car-index-page .car-filters-chevron:not(.collapsed) i {
    transform: rotate(180deg);
}

/* Desktop: keep filters always visible (even if collapse is not "show") */
@media (min-width: 992px) {
    .car-index-page #carFiltersCollapse.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 991.98px) {
    /* Make the header less tall on mobile */
    .car-index-page .filter_sidebar.sidebar_section {
        padding: 20px;
    }
    .car-index-page .filter_sidebar.sidebar_section .sidebar_header {
        min-height: 60px;
        margin: -20px;
        margin-bottom: 20px;
    }
}
