/* Custom Booking Form Styles for Milwaukee to Muskegon */

.content-wrapper {
    overflow-x: unset;
}

/* Milwaukee / Muskegon: on mobile the nav is hidden — reduce hero top padding so the route bar sits higher */
@media (max-width: 767.98px) {
    body.hide-header-mobile .booking-hero-container {
        padding-top: 12px;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        padding-bottom: 48px;
    }
    /* Room below passenger/vehicle custom selects when scrolling into view (options are position:absolute) */
    #bookingForm .custom-select-single {
        scroll-margin-bottom: min(280px, 48vh);
    }
    #passengersInformationHeading {
        scroll-margin-top: max(8px, env(safe-area-inset-top, 0px));
    }
}

/* Force header colors to match home (index) */
body .header-top {
    background: #425e8c !important;
}
body nav.navbar.navbar-expand-lg.navbar-light,
body nav.navbar.navbar-expand-lg.navbar-light.bg-light,
body nav.navbar.navbar-expand-lg.navbar-light.bg-light.navbar,
body nav.navbar.navbar-expand-lg.navbar-light.bg-light.navbar-light,
body nav.navbar.bg-light {
    background: #ecf3f5 !important;
}
/* Bootstrap sets .bg-light to white; override on header navbar only */
body nav.navbar.bg-light {
    background-color: #ecf3f5 !important;
}

/* Some layouts set inner container to white */
body nav.navbar .container-fluid {
    background: transparent !important;
    background-color: transparent !important;
}

.about-btn-box {
    display: flex;
    justify-content: center;
}
.aboutus-call h2 {
    font-size: 38px;
    font-weight: 700;
}
.aboutus-call h4 {
    font-size: 30px;
    font-weight: 700;
}

/* Reserve space when scrolling to date fields so the full calendar can sit on screen */
.form_bx #datepicker,
.form_bx #datepicker2 {
    scroll-margin-top: min(110px, 20vh);
    scroll-margin-bottom: min(360px, 55vh);
}
.ui-datepicker,
.ui-datepicker * {
    font-family: 'Poppins', sans-serif;
}

/* Modern jQuery UI Datepicker theme (site colors); high z-index so calendar sits above dropdowns */
.ui-datepicker {
    z-index: 20000 !important;
    width: 320px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    border: 2px solid rgba(145, 186, 201, 0.6); /* Light blue solid inner border */
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 0 5px rgba(145, 186, 201, 0.2), 0 20px 50px rgba(0, 0, 0, 0.15); /* Glowing double border effect outside selection */
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 12px 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #425e8c, #425e8c); /* modern gradient header bar */
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 94, 140, 0.15);
}

.ui-datepicker .ui-datepicker-title {
    margin: 0;
    line-height: 24px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: #ffffff;
}

/* Prev/Next buttons with modern arrows */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.15); /* Transparent white overlay */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    margin: 0 !important;
    text-decoration: none !important;
    backdrop-filter: blur(5px);
}
.ui-datepicker .ui-datepicker-prev { left: 8px; }
.ui-datepicker .ui-datepicker-next { right: 8px; }

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    filter: brightness(1.06);
}

/* Hide default jQuery UI icon and draw arrow ourselves */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none;
}
.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #ffffff; /* White arrow color */
    border-right: 2.5px solid #ffffff;
    transform-origin: center;
}
.ui-datepicker .ui-datepicker-prev::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}
.ui-datepicker .ui-datepicker-next::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ui-datepicker table {
    width: 100%;
    margin: 10px 0 0;
    border-collapse: separate;
    border-spacing: 4px 4px;
    font-size: 13px;
    table-layout: fixed; /* prevents overflow */
}

.ui-datepicker th {
    padding: 2px 0;
    text-align: center;
    font-weight: 700;
    color: rgba(66, 94, 140, 0.7);
}

.ui-datepicker td {
    padding: 0;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    color: #425e8c;
    background: #f6f8fb;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.ui-datepicker td a:hover {
    background: rgba(145, 186, 201, 0.22); /* #91BAC9 tint */
    border-color: rgba(145, 186, 201, 0.55);
}

/* Some jQuery UI themes apply hover/focus via ui-state-hover/ui-state-focus */
.ui-datepicker .ui-state-hover,
.ui-datepicker .ui-widget-content .ui-state-hover,
.ui-datepicker .ui-widget-header .ui-state-hover,
.ui-datepicker .ui-state-focus,
.ui-datepicker .ui-widget-content .ui-state-focus,
.ui-datepicker .ui-widget-header .ui-state-focus {
    background: rgba(145, 186, 201, 0.22);
    border-color: rgba(145, 186, 201, 0.55);
    color: #425e8c;
}

/* Today */
.ui-datepicker .ui-datepicker-today a {
    border-color: rgba(66, 94, 140, 0.55); /* #425e8c */
    box-shadow: 0 8px 18px rgba(66, 94, 140, 0.15);
}

/* Selected day */
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-widget-content .ui-state-active,
.ui-datepicker .ui-widget-header .ui-state-active {
    background: #425e8c; /* blue */
    border-color: #425e8c;
    color: #fff;
    box-shadow: 0 10px 22px rgba(66, 94, 140, 0.22);
}

/* Highlighted day (some themes use this = today) */
.ui-datepicker .ui-state-highlight,
.ui-datepicker .ui-widget-content .ui-state-highlight,
.ui-datepicker .ui-widget-header .ui-state-highlight {
    background: #91BAC9;
    border-color: rgba(145, 186, 201, 0.9);
    color: #425e8c;
    box-shadow: 0 10px 22px rgba(145, 186, 201, 0.25);
}

/* Force remove any default "danger/red" styles from jQuery UI theme */
.ui-datepicker .ui-state-error,
.ui-datepicker .ui-widget-content .ui-state-error,
.ui-datepicker .ui-widget-header .ui-state-error,
.ui-datepicker .ui-state-error-text,
.ui-datepicker .ui-widget-content .ui-state-error-text,
.ui-datepicker .ui-widget-header .ui-state-error-text {
    background: #f6f8fb;
    border-color: rgba(145, 186, 201, 0.6);
    color: #425e8c;
}

/* Disabled day */
.ui-datepicker .ui-state-disabled span {
    background: #eef2f6;
    color: rgba(66, 94, 140, 0.35);
    border-color: transparent;
}

/* Month/year selects (if enabled by jQuery UI options) */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 700;
    padding: 4px 8px;
    outline: none;
}

@media (max-width: 420px) {
    .ui-datepicker { width: 300px; }
    .ui-datepicker td a,
    .ui-datepicker td span { height: 36px; border-radius: 10px; }
}

/* Hide jQuery UI's default trigger button ("...") */
.ui-datepicker-trigger {
    display: none !important;
}

/* Route bar: full-bleed background on the card; text inset matches row + .p-1 fields */
/* width must be 100% + 2×pad: with only negative margins, 100% width leaves the right edge one pad short */
.route-header {
    background: linear-gradient(135deg, #425e8c, #425e8c) !important;
    border-radius: 12px 12px 0 0 !important;
    margin-top: calc(-1 * var(--form-bx-pad, 35px)) !important;
    margin-left: calc(-1 * var(--form-bx-pad, 35px)) !important;
    margin-right: calc(-1 * var(--form-bx-pad, 35px)) !important;
    margin-bottom: 25px !important;
    padding: 20px 0 !important;
    box-shadow: 0 10px 25px rgba(66, 94, 140, 0.2);
    position: relative;
    z-index: 2;
    color: white;
    box-sizing: border-box;
    width: calc(100% + 2 * var(--form-bx-pad, 35px));
    max-width: none;
}

.route-locations {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 60px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    /* Align with .row > .col-* .p-1: gutter halves cancel; inset = form pad + p-1 from card inner */
    padding-left: calc(var(--form-bx-pad, 35px) + 0.25rem);
    padding-right: calc(var(--form-bx-pad, 35px) + 0.25rem);
}
.route-from, .route-to {
    flex: none !important;
    text-align: center;
    padding: 0 10px;
}
.route-location-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.route-location-smalltext {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.route-arrow {
    flex: 0 0 auto;
    padding: 0 15px;
    text-align: center;
}
.route-arrow i {
    font-size: 20px;
    color: #fff;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Form Styles */
.form-check-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}
#continueBtn {
    background: linear-gradient(135deg, #425e8c, #0079a5);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    width: 100%;
    border-radius: 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#continueBtn:hover {
    background: #91BAC9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(145, 186, 201, 0.4);
}
.form_bx {
    --form-bx-pad: 35px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--form-bx-pad);
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Sophisticated Shadow */
    margin-top: 0px !important;
    position: relative;
    z-index: 10;
    margin-bottom: 0px !important;
}

/* Radio and generic accents */
.customradio input:checked ~ .checkmark {
    background-color: #fff;
    border: 2px solid #425e8c;
}
.customradio .checkmark:after {
    background: #425e8c;
}
/* Removed arrow recoloring */

/* Responsive adjustments */
@media (min-width:320px) and (max-width:767px){    
    .header-top, nav.navbar.navbar-expand-lg.navbar-light{
        display: none !important;
    }  
    .route-header {
        box-shadow: none;
    }
    .route-locations {
        gap: clamp(12px, 4vw, 24px);
    }
    .route-arrow {
        padding: 0 8px;
    }
    .route-location-text {
        font-size: 16px;
    }
    .route-location-smalltext {
        font-size: 13px;
    }
    .one-way-trip .dropdown-input, .one-way-trip .form-control {
        height: 85px !important;
        margin: 14px auto 1px;
    }
    .one-way-trip .frm_llbs {
        top: 46px;
    }    
    .roundtrip-trip .dropdown-input, .roundtrip-trip .form-control {
        height: 65px !important;
        margin: 6px auto 1px;
    }
    .roundtrip-trip .frm_llbs {
        top: 28px;
    }  
    button{
        margin-top: 10px;
    }  
    .form-check-box {
        justify-content: center;
        align-items: center;
    }
    .dropdown-input, .form-control {
        height: 80px;
    }
    .searchform-outer {
        padding: 10px 5px;
    }
    .checkmark {
        height: 20px;
        width: 20px;
    }
    .customradio .checkmark:after {
        width: 14px;
        height: 14px;
    }
    .field_lable{
        line-height: 1;  
    }
    .frm_llbs{
        top: 30px;    
    }
    .payment-gateway h4{
        font-size: 12px;
        font-weight: 600
    }
    .about-btn-box {
        display: grid;
        grid-template-columns: 1fr;
    }
    .aboutus-call p {
        font-size: 14px;
    }
    .container.top_innerbox {
        padding-top: 8px;
    }    
    .custom-options{
        max-height: 10px;    
    }
    .custom-select.open .custom-options{
        max-height: 600px;    
    }
    .vehicle-main-outer .custom-options{
        padding: 7px 15px 30px;
    }
    .vehicle-main-outer .custom-option:last-child {
        border-bottom: 1px solid #003768;
    }
    .vehiclecontinuebtn {
        padding-bottom: 250px !important;
    }
}
