* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.cr_container {
    max-width: auto;
    margin: 0 auto;
}

.cr_search-container {
    /* background-color: #ff7c00; */
    /* background-color: #c9c9c9; */
    background-color: #517fb8;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-left: 150px;
}

.cr_results-container {
    margin-top: 20px;
    padding: 20px;
    min-height: 1500px;
    /* Added for demonstration purposes */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cr_header {
    background-color: #ffd100;
    padding: 20px;
    text-align: center;
}

.cr_logo {
    font-size: 32px;
    font-weight: bold;
    color: #000;
}

.cr_search-form {
    padding-top: 5px;
    padding-bottom: 10px;
    background-color: #eae6e6;
    /* background-color: #034ca7; */
    padding-left: 100px;
}

.cr_search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    background-color: white;
}

.cr_tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: bold;
}

.cr_tab.cr_active {
    border-bottom: 3px solid #ffd100;
}

.cr_form-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.cr_location-section,
.cr_dates-section,
.cr_options-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cr_form-group {
    min-width: auto;
    position: relative;
}

/* #price-show {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0px;
    min-width: auto;
    position: relative;
} */

.cr_form-group label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

.cr_form-group input,
.cr_form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 90%;
}

.cr_location-input {
    width: 200px;
}

.cr_date-input {
    width: 130px;
}

.cr_time-select {
    width: 100px;
}

.cr_vehicle-select {
    width: 150px;
}

.cr_age-select {
    width: 150px;
}
#type {
    width: 100px;
}

.cr_checkbox-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.cr_checkbox-group label {
    margin: 0 0 0 5px;
    font-size: 12px;
}

.cr_search-button {
    background-color: #f9f9f9;
    color: #000;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    height: 50px;
    margin-left: 125px;
    margin-top: 15px;
}

.cr_search-button:hover {
    background-color: #ff7c00;
    color: #fff;
}

.cr_promo-section {
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.cr_promo-section label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 12px;
}

.cr_promo-input {
    display: flex;
    width: 250px;
}

.cr_promo-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.cr_promo-input button {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.cr_location-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.cr_suggestion {
    padding: 10px;
    cursor: pointer;
}

.cr_suggestion:hover {
    background-color: #f5f5f5;
}

/* Added styles for car results */
.cr_car-item {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: white;
}

.cr_car-item h3 {
    margin-top: 0;
    color: #333;
}

/* Condensed search form styles for sticky header */
.cr_search-container.cr_condensed .cr_search-form {
    padding: 10px;
}

.cr_search-container.cr_condensed .cr_search-tabs {
    display: none;
}

/* Responsive design styles */
/* ========================================= */
@media (min-width: 1024px) and (max-width: 1279px) {
    .cr_container {
        width: auto;
        margin: 0 auto;
    }

    .cr_search-container {
        /* background-color: #034ca7; */
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 50px;
    }

    .cr_search-button {
        margin-left: 100px;
    }
    #price-show {
        width: 150px;
    }
    .cr_form-group input,
    .cr_form-group select {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        width: 80%;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .cr_container {
        width: auto;
        margin: 0 auto;
    }

    .cr_search-container {
        /* background-color: #034ca7; */
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 200px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 150px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .cr_container {
        width: auto;
        margin: 0 auto;
    }

    .cr_search-container {
        /* background-color: #034ca7; */
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 250px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 100px;
    }
}

/* Extra-large desktops */
@media (min-width: 1920px) {
    .cr_container {
        width: auto;
        margin: 0 auto;
    }

    .cr_search-container {
        /* background-color: #034ca7; */
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 400px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 150px;
    }
}

/* ======================================= */

/* @media (min-width: 1200px) {
    .cr_container {
        width: auto;
        margin: 0 auto;
    }

    .cr_search-container {
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 100px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 150px;
    }
} */

@media (max-width: 992px) {
    .cr_container {
        width: 95%;
        margin: 0 auto;
    }

    .cr_search-container {
        background-color: #eae6e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-left: 5px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 150px;
    }
}

@media (max-width: 920px) {
    .cr_container {
        width: 100%;
        margin: 0 auto;
    }

    .cr_search-container {
        padding-left: 5px;
    }

    .cr_search-button {
        margin-left: 50px;
    }
    #price-show {
        width: 150px;
    }
}

@media (max-width: 835px) {
    .cr_container {
        width: 100%;
        margin: 0 auto;
    }
    .cr_search-container {
        padding-right: -250px;
    }

    .cr_search-button {
        margin-left: 120px;
    }

    #price-show {
        width: 0px;
    }

    .cr_form-group input,
    .cr_form-group select {
        width: 90px;
    }
}

@media (max-width: 768px) {
    /* .cr_search-container {
        display: none;
    }
    .cr_search-container {
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
        text-align: center;
    }

    .cr_form-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cr_location-section,
    .cr_options-section {
        width: 100%;
        text-align: center;
    }

    .cr_form-group {
        width: 100%;
        margin-bottom: 0px;
    }

    .cr_form-group label {
        display: none;
    }

    #price-show {
        width: 100%;
    }

    .cr_search-button {
        margin-top: 0px;
    }

    .cr_search-button {
        height: 30px;
        padding: 2px 5px;
        display: block;
        margin: 0px auto 0 auto;
        text-align: center;
        width: 50%;
        justify-content: center;
    }

    .cr_form-group input,
    .cr_form-group select {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
    } */

    /* Hide the original search container on mobile */
    .cr_search-container {
        display: none;
        padding-top: 100px;
    }

    /* Show mobile search form */
    .cr_search-form-mobile {
        display: block !important;
        background-color: #c0c0c0;
        border-radius: 8px;
        padding: 15px;
        margin: 5px 5px;
        margin-top: -20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .cr_search-form-mobile .cr_form-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
    }

    .cr_search-form-mobile .cr_location-section,
    .cr_search-form-mobile .cr_options-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .cr_search-form-mobile .cr_form-group {
        width: 100%;
    }

    .cr_search-form-mobile .cr_form-group label {
        display: none;
    }

    .cr_search-form-mobile .cr_form-group input,
    .cr_search-form-mobile .cr_form-group select {
        text-align: left;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
    }

    .cr_search-form-mobile .cr_search-button {
        background-color: #f9f9f9;
        color: #000;
        border: none;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 10px;
        cursor: pointer;
        display: block;
        margin: 15px auto 0 auto;
        text-align: center;
        width: auto;
        text-decoration: none;
    }

    .cr_search-form-mobile .cr_search-button:hover {
        background-color: rgb(234, 233, 229);
    }

    .cr_search-form-mobile #price-show {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cr_header {
        padding: 10px;
    }

    .cr_logo {
        font-size: 24px;
    }

    .cr_tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .cr_form-group label {
        font-size: 11px;
    }

    .cr_form-group input,
    .cr_form-group select {
        padding: 8px;
        font-size: 12px;
    }

    .cr_search-button {
        font-size: 14px;
    }

    .cr_results-container {
        padding: 10px;
    }

    .cr_form-group input,
    .cr_form-group select {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
    }
}

/* Additional improvements for sticky header responsiveness */
.cr_search-container.cr_condensed {
    padding-left: 10px;
}

@media (max-width: 480px) {
    .cr_search-form {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .cr_form-container {
        margin-left: 0;
        gap: 5px;
    }

    .cr_form-group input,
    .cr_form-group select {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
    }
}