.booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding:8px;
    color: white;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: var(--dbrl);
    border-top-right-radius: var(--dbrl);
}
.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}
div.header-text h2 {
    font-size: 20px;
    font-weight: 700;
}
.booking-header div.header-text p {
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
}
.header-badge {
    background: rgba(255, 255, 255, 0.15);
    padding:5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.mpcrbm_search_holder{
    padding:10px;
    background-color:#ecf1f5;
    border-radius: var(--dbrl);
}
.mprcbm_search_button_holder{
    display: flex;
    width: 150px;
    justify-content: right;
}

.mpcrbm_search-button {
    background: var(--color_theme);
    color: white;
    border: none;
    padding: 10px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 150px;
    /*margin: 2rem auto 0;*/
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.mprcbm_search_icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.mpcrbm_horizontal_search_form{
    display: flex;
    gap:5px;
    flex-direction: column;
}
.mpcrbm_inline_search_form{
    display: flex;
    width: 100%;
    flex: 1;
    gap: 10px;
}

.mpcrbm_manual_end_place{
    margin-top: 0 !important;
}
.mpcrbm_width_33{
    width: 33.33%;
}
.mpcrbm_width_50{
    width: 50%;
}
.mprcbm_checkbox_group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 15px;
}
.mprcbm_checkbox_group_new {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 5px 0 5px 0;
}

.mprcbm_checkbox_search_btn_holder{
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.mpcrbm_search_title{
    display: flex !important;
    align-items: center;
    font-size: 14px;
    padding: 10px 0;
    padding-top: 0;
    color:#5b6b7a;
}

.mpcrbm_search_title i{
    font-size: 16px;
    color: #566676;
}

.mprcbm_text{
    margin: 2px;
}

.mpcrbm_extra_service_item span.mprcbm_text {
    padding-left: 10px;
    font-size: 16px;
}

.custom-divider {
    border: none;
    border-top: 1px solid #ccc; /* change color if needed */
    margin: 20px 0; /* space above and below */
}
.mpcrbm-vertical-divider {
    width: 2px;
    background-color: #dddddd;
    padding:1px;
    margin: 0 10px;
}

 .mpcrbm_horizontal_section_divider {
	 height: 1px;
	 background-color: #e5e7eb;
	 margin: 26px 0 !important;
 }
 .mpcrbm_horizontal_section_label {
	 font-size: 12px;
	 font-weight: 600;
	 color: #6b7280;
	 text-transform: uppercase;
	 letter-spacing: 0.5px;
	 margin: 12px 0;
 }
.mpcrbm_horizontal_date_time_input{
	 background: #fff;
	 border-radius: 12px;
	 padding:8px;
	 /*width: 33.33%;*/
	 display: flex;
	 gap: 1px;
 }
 .mpcrbm_horizontal_booking_title{
	 color: #666666;
	 text-align: center;
 }

.mpcrbm_inline_search_form label span i{ 
	margin-right: 5px;
}
.mpcrbm_search_area{
    width: 100%;
}
@media only screen and (max-width:1200px) {
    .mpcrbm_inline_search_form{
        flex-direction: column;
    }
    .mpcrbm_horizontal_date_time_input{
        width: 100%;
    }

}

/* ==========================================================================
   Modern redesign — standalone search-widget page only.
   .mpcrbm-search-widget-modern is set only in templates/registration/
   get_details_new.php. single_car_search_details.php (the car-details page's
   own booking widget) renders this same .mpForm/.input_select/.mpcrbm_search-
   button markup from this same site-wide-loaded file, so every rule below is
   scoped under that class — none of it touches the car-details price box.
   ========================================================================== */
.mpcrbm-search-widget-modern {
    --mpcrbm-sw-radius: 16px;
    --mpcrbm-sw-radius-sm: 10px;
    --mpcrbm-sw-border: #e5e7eb;
    --mpcrbm-sw-text: #1f2937;
    --mpcrbm-sw-text-faded: #6b7280;
    --mpcrbm-sw-bg: #f8fafc;

    background: #fff;
    border-radius: var(--mpcrbm-sw-radius);
    border: 1px solid var(--mpcrbm-sw-border);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
    /* No overflow:hidden here: .input_select_list (the time/location dropdowns,
       mp_global/assets/mp_style/mpcrbm_global.css) is position:absolute and pops
       out below its field — clipping the card would cut those off. The header
       below already has its own matching top corner radius, so it doesn't need
       the outer clip either. */
}

/* ===== Header ===== */
.mpcrbm-search-widget-modern .booking-header {
    background: #764ba2; /* fallback for browsers without color-mix() */
    background: linear-gradient(135deg, var(--color_theme, #F12971) 0%, color-mix(in srgb, var(--color_theme, #F12971) 55%, #1e1b4b) 100%);
    padding: 22px 24px;
    border-top-left-radius: var(--mpcrbm-sw-radius);
    border-top-right-radius: var(--mpcrbm-sw-radius);
}

.mpcrbm-search-widget-modern .header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.mpcrbm-search-widget-modern div.header-text h2 {
    font-size: 21px;
    margin: 0 0 2px;
}

.mpcrbm-search-widget-modern .booking-header div.header-text p {
    opacity: .85;
    margin: 0;
}

.mpcrbm-search-widget-modern .header-badge {
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Form body ===== */
.mpcrbm-search-widget-modern .mpcrbm_search_holder {
    background: var(--mpcrbm-sw-bg);
    padding: 20px;
    border-bottom-left-radius: var(--mpcrbm-sw-radius);
    border-bottom-right-radius: var(--mpcrbm-sw-radius);
}

.mpcrbm-search-widget-modern .mpcrbm_horizontal_search_form {
    gap: 12px;
}

/* ===== Field groups (location / date / time) ===== */
.mpcrbm-search-widget-modern .mpcrbm_horizontal_date_time_input {
    background: #fff;
    border: 1px solid var(--mpcrbm-sw-border);
    border-radius: var(--mpcrbm-sw-radius-sm);
    padding: 2px 8px;
    gap: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mpcrbm-search-widget-modern .mpcrbm_horizontal_date_time_input:focus-within {
    border-color: #d9dce1;
    box-shadow: 0 0 0 3px rgba(241, 41, 113, .12); /* fallback for browsers without color-mix() */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color_theme, #F12971) 12%, transparent);
}

.mpcrbm-search-widget-modern .input_select {
    padding: 6px 10px;
}

.mpcrbm-search-widget-modern .mpcrbm-vertical-divider {
    background-color: var(--mpcrbm-sw-border);
    width: 1px;
    margin: 4px;
}

.mpcrbm-search-widget-modern .mpcrbm_search_title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--mpcrbm-sw-text-faded);
    padding: 4px 0 2px;
}

.mpcrbm-search-widget-modern .mpcrbm_search_title i {
    color: var(--color_theme, #F12971);
    font-size: 15px;
}

.mpcrbm-search-widget-modern .formControl {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--mpcrbm-sw-text);
    border: none;
    padding: 0;
    background: transparent;
}

/* ===== Time dropdown (start_time_list / return_time_list) =====
   Redesigned into a wrapping 3-column grid of rounded "chips" instead of
   one tall single-column list — much easier to scan 48 half-hour slots.
   Only the <li> layout changes here; the <ul>'s own display:none/slideDown
   toggle (mp_global/assets/mp_style/mpcrbm_global.js) is left untouched —
   jQuery's slideDown restores display:block (not flex/grid) once its
   animation finishes, so a flex/grid <ul> would get silently fought back
   to block. inline-block <li>s avoid that fight entirely; font-size:0 on
   the <ul> (reset back to 12.5px on the <li>s) just collapses the
   whitespace PHP's loop leaves between each <li> tag so exactly 3 fit
   per row instead of wrapping early. */
.mpcrbm-search-widget-modern .input_select_list {
    padding: 10px;
    border: 1px solid var(--mpcrbm-sw-border);
    border-radius: var(--mpcrbm-sw-radius-sm);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
    background: #fff;
    font-size: 0;
}

.mpcrbm-search-widget-modern .input_select_list li {
    display: inline-block;
    box-sizing: border-box;
    width: 33.333%;
    vertical-align: top;
    margin: 0;
    padding: 9px 4px;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    color: var(--mpcrbm-sw-text);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.mpcrbm-search-widget-modern .input_select_list li:hover {
    background: #fdf1f5 !important; /* fallback for browsers without color-mix() */
    background: color-mix(in srgb, var(--color_theme, #F12971) 12%, #fff) !important;
    color: var(--color_theme, #F12971) !important;
    font-weight: 700;
}

.mpcrbm-search-widget-modern .input_select_list::-webkit-scrollbar {
    width: 6px;
}

.mpcrbm-search-widget-modern .input_select_list::-webkit-scrollbar-thumb {
    background: var(--mpcrbm-sw-border);
    border-radius: 3px;
}

ul.input_select_list.start_time_list {
    width: 280px;
    max-width: calc(100vw - 32px);
    padding: 20px !important;
}

ul.input_select_list.return_time_list {
    width: 280px;
    max-width: calc(100vw - 32px);
    padding: 20px !important;
}

/* "Return" section — a divider-with-label instead of plain uppercase text
   floating between the pick-up and return field rows. */
.mpcrbm-search-widget-modern .mpcrbm_horizontal_section_label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mpcrbm-sw-text-faded);
    margin: 4px 0;
}

.mpcrbm-search-widget-modern .mpcrbm_horizontal_section_label::before,
.mpcrbm-search-widget-modern .mpcrbm_horizontal_section_label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--mpcrbm-sw-border);
}

/* ===== Checkbox + search row ===== */
.mpcrbm-search-widget-modern .mprcbm_checkbox_search_btn_holder {
    align-items: center;
    margin-top: 14px;
}

.mpcrbm-search-widget-modern .mprcbm_checkbox_group_new {
    background: #fff;
    border: 1px solid var(--mpcrbm-sw-border);
    padding: 10px 14px;
    margin: 0;
    flex: 1 1 auto;
}

.mpcrbm-search-widget-modern .mprcbm_search_button_holder {
    width: auto;
}

.mpcrbm-search-widget-modern .mpcrbm_search-button {
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    max-width: none;
    box-shadow: 0 6px 16px rgba(241, 41, 113, .35); /* fallback for browsers without color-mix() */
    box-shadow: 0 6px 16px color-mix(in srgb, var(--color_theme, #F12971) 35%, transparent);
}

.mpcrbm-search-widget-modern .mpcrbm_search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(241, 41, 113, .45); /* fallback for browsers without color-mix() */
    box-shadow: 0 8px 20px color-mix(in srgb, var(--color_theme, #F12971) 45%, transparent);
}

@media (max-width: 600px) {
    .mpcrbm-search-widget-modern .mprcbm_checkbox_search_btn_holder {
        flex-direction: column;
        align-items: stretch;
    }
}