/* =============================================================
   IDACAB – LUXURY NAVY & GOLD BOOKING FORM
   Clean, production‑ready, fully responsive
   No blue – only Navy (#0B1F3A), Gold (#C8A24D), White
   ============================================================= */

/* --- Main Container --- */
.cab-booking-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    position: relative;
    background: linear-gradient(135deg, #fdf9f0 0%, #ffffff 100%);
    border-radius: 48px;
    padding: 2rem;
    box-shadow: 0 30px 50px -20px rgba(11, 31, 58, 0.2);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

/* ----- PROGRESS BAR – Gold & Navy ----- */
#progressbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
    list-style: none;
    counter-reset: step;
    gap: 0.5rem;
    position: relative;
}
#progressbar li {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9a8c6f;
    padding-bottom: 0.85rem;
    border-bottom: 3px solid #e8e0d0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
#progressbar li.active {
    color: #c8a24d;
    border-bottom-color: #c8a24d;
}
#progressbar li::before {
    content: counter(step);
    counter-increment: step;
    width: 44px;
    height: 44px;
    background: #f5efe2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0b1f3a;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid #d4c9b2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
#progressbar li.active::before {
    background: #c8a24d;
    color: #0b1f3a;
    border-color: #c8a24d;
    box-shadow: 0 12px 20px -5px rgba(200,162,77,0.5);
    transform: scale(1.03);
}

/* --- Fieldsets (Multi‑step) --- */
#msform fieldset {
    background: transparent;
    border: 0 none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    position: relative;
    display: none;
    text-align: left;
    transition: all 0.3s ease;
}
#msform fieldset.active-step {
    display: block;
}

/* --- Flex Containers --- */
.flex-fields {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 220px;
    margin-bottom: 1.5rem;
}
.form-field.location-field {
    flex: 2;
    position: relative !important; /* Ensures suggestions position cleanly below parent fields */
}

/* --- Typography (Titles & Subtitles) --- */
.fs-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0b1f3a;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}
.fs-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #c8a24d, #e5c87b);
    margin-top: 10px;
    border-radius: 4px;
}
.fs-subtitle {
    font-weight: 500;
    font-size: 1rem;
    color: #7c6e54;
    margin-bottom: 1.8rem;
    text-align: left;
}

/* --- Form Inputs (pure white, gold focus) --- */
.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #0b1f3a;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

#msform input,
#msform select {
    padding: 0.9rem 1.2rem;
    border: 1px solid #e2d8c4;
    border-radius: 32px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    color: #1f2c3e;
    background-color: #ffffff;
    box-shadow: none;
    font-weight: 500;
    height: 52px;
    line-height: 1.5;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

#msform input::placeholder,
#msform select::placeholder {
    color: #b49b6c;
    font-weight: 500;
    opacity: 1;
}
#msform input:focus,
#msform select:focus {
    outline: none;
    border-color: #c8a24d;
    box-shadow: 0 0 0 5px rgba(200, 162, 77, 0.2);
    background-color: #ffffff;
}
#msform input:hover,
#msform select:hover {
    border-color: #c8a24d;
}

/* Select dropdown arrow (Gold) */
#msform select {
    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='%23c8a24d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
}

/* Meet & Greet & Flight fields */
.meet_and_greet label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0b1f3a;
}
.flight-fields {
    margin-top: 20px;
}
.flight-fields .form-field {
    margin-bottom: 20px;
}

/* Flatpickr styling overrides */
.flatpickr-input {
    background-color: #ffffff !important;
    border: 1px solid #e2d8c4 !important;
    color: #1f2c3e !important;
    border-radius: 32px !important;
}
.flatpickr-input:focus {
    border-color: #c8a24d !important;
    box-shadow: 0 0 0 5px rgba(200, 162, 77, 0.2) !important;
}

/* --- Location Fields Container --- */
.location-fields-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 44px;
    padding: 2rem;
    border: 1px solid rgba(200, 162, 77, 0.4);
    box-shadow: 0 25px 40px -15px rgba(11, 31, 58, 0.1);
}

/* Autocomplete containers */
.autocomplete-container {
    background-color: #ffffff;
    position: relative;
    margin-bottom: 0;
    display: flex;
    gap: 14px;
    border: 1px solid #e2d8c4;
    border-radius: 30px;
    align-items: center;
    width: 100%;
    padding: 0.6rem 1.4rem;
    transition: all 0.3s ease;
}
.autocomplete-container:focus-within {
    border-color: #c8a24d;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(200,162,77,0.2), 0 8px 20px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.location-icon svg path {
    fill: #c8a24d;
}
.label-container {
    flex: 1;
}
.label-container label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0b1f3a;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}
.autocomplete-container input {
    width: 100%;
    border: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
    font-weight: 500;
    color: #1f2c3e;
    font-family: 'Montserrat', sans-serif;
}

/* LUXURY BRAND ALIGNMENT FOR THE IDEAL POSTCODES CUSTOM DROPDOWN MAPS */
.custom-idpc-dropdown {
    position: absolute;
    top: 100% !important;
    left: 0;
    z-index: 999999 !important;
    background: #ffffff !important;
    border: 2px solid #c8a24d !important;
    border-top: none !important;
    border-radius: 0 0 20px 24px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 15px 30px rgba(11, 31, 58, 0.15) !important;
    width: 100%;
    display: none;
    box-sizing: border-box;
    margin-top: -2px;
}
/*
.custom-idpc-suggestion {
    padding: 14px 18px !important;
    cursor: pointer !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    color: #0b1f3a !important;  Navy base font color selection layer */
    border-bottom: 1px solid #f5efe2;
    text-align: left !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;  Premium clipping dots wrap on long street text */
}
/*
.custom-idpc-suggestion:hover {
    background-color: #fbf7ed !important; /* Luxury muted gold highlight color */
    color: #000000 !important;
}
*/

/* Swap Button Overlay (Desktop design) */
.swap-btn-overlay {
    width: 54px;
    height: 54px;
    background: #ffffff;
    border: 1.5px solid #c8a24d;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    flex-shrink: 0;
    padding: 0;
}
.swap-btn-overlay:hover {
    background: #c8a24d;
    border-color: #c8a24d;
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 15px 25px -8px rgba(200,162,77,0.5);
}
.swap-btn-overlay img {
    width: 24px;
    filter: invert(42%) sepia(84%) saturate(500%) hue-rotate(2deg);
}
.swap-btn-overlay:hover img {
    filter: brightness(0) invert(1);
}

/* Via Locations Row Handling */
.via-locations-flex {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.via-locations-desktop {
    display: flex;
}
.via-locations-mobile {
    display: none;
}
#via-locations-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 180px);
}
.location-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.location-row .autocomplete-container {
    flex: 1;
}
.location-row .swap-btn,
.location-row .remove-via-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.location-row .swap-btn {
    background: #ffffff;
    border: 1px solid #c8a24d;
}
.location-row .swap-btn:hover {
    background: #c8a24d;
}
.location-row .remove-via-btn {
    background: #fff0f0;
    border: 1px solid #e0b4b4;
    color: #b85c5c;
}
.location-row .remove-via-btn:hover {
    background: #fdd8d8;
}

/* --- Action Buttons (Gold Gradients) --- */
#msform .action-button,
#msform .action-button-secondary {
    font-weight: 700;
    border: 0 none;
    border-radius: 60px;
    cursor: pointer;
    padding: 14px 24px;
    margin: 0;
    font-size: 16px;
    text-transform: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}
#msform .action-button {
    background: linear-gradient(115deg, #c8a24d 0%, #ddb866 100%);
    color: #0b1f3a;
    margin-top: 24px;
    letter-spacing: 0.8px;
    box-shadow: 0 10px 24px rgba(200,162,77,0.4);
    position: relative;
    overflow: hidden;
}
#msform .action-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
#msform .action-button:hover::after {
    left: 100%;
}
#msform .action-button:hover {
    background: linear-gradient(115deg, #dbb45c 0%, #e7c77a 100%);
    transform: translateY(-3px);
    box-shadow: 0 20px 32px -10px rgba(200,162,77,0.6);
    color: #041224;
}
#msform .action-button-secondary {
    background: #fefaf0;
    color: #0b1f3a;
    border: 1px solid #c8a24d;
    padding: 0.75rem 2rem;
    letter-spacing: 0.5px;
}
#msform .action-button-secondary:hover {
    background: #c8a24d;
    color: #0b1f3a;
    border-color: #c8a24d;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -10px rgba(200,162,77,0.5);
}
.previous {
    background: #0b1f3a !important;
    color: white !important;
    margin-right: 1rem;
    box-shadow: 0 8px 18px rgba(11,31,58,0.25);
    border: 1px solid rgba(200,162,77,0.4) !important;
}
.previous:hover {
    background: #152c48 !important;
    transform: translateY(-2px);
    color: #f5e6c4 !important;
    box-shadow: 0 12px 22px -8px rgba(11,31,58,0.4);
}

/* --- Vehicle Cards Grid --- */
.vehicle-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 2rem 0;
    max-height: 580px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.vehicle-card {
    border: 1px solid #ece2d0;
    border-radius: 36px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.35s ease;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.03);
}
.vehicle-card:hover {
    border-color: #c8a24d;
    box-shadow: 0 25px 35px -12px rgba(200,162,77,0.25);
    transform: translateY(-5px);
    background: #fefdf9;
}
.vehicle-card.selected {
    border-color: #c8a24d;
    background: #fefaf2;
    box-shadow: 0 8px 24px rgba(200, 162, 77, 0.15);
}
.vehicle-info {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1rem;
}
.vehicle-info img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    background: #fef7ea;
    border-radius: 28px;
    padding: 0.5rem;
    border: 1px solid #f0e7d6;
    transition: transform 0.2s;
}
.vehicle-card:hover .vehicle-info img {
    transform: scale(1.02);
}
.vehicle-content h4 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b1f3a;
    letter-spacing: -0.2px;
}
.vehicle-content p {
    font-size: 0.85rem;
    color: #6f6a5c;
    margin: 0;
    line-height: 1.4;
}

/* --- RE-STRUCTURED LUXURY RATE OPTIONS & FIXED RADIO TICK BUTTONS --- */
.rate-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f0ebdf;
    width: 100%;
}

.rate-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: #2a3548;
    background: #f7f9fc;
    padding: 12px 16px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.rate-options label:hover {
    background: #f0f4f9;
    border-color: rgba(200, 162, 77, 0.3);
}

.rate-options input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    accent-color: #c8a24d;
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
    order: -1;
}

.rate-options label span.fare-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.fare-amount {
    font-weight: 800;
    color: #c8a24d;
    background: rgba(200,162,77,0.12);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-align: right;
    display: inline-block;
}

/* --- Booking Summary --- */
#booking-summary {
    background: linear-gradient(125deg, #fef9ef 0%, #ffffff 100%);
    border: 1px solid rgba(200, 162, 77, 0.5);
    border-radius: 40px;
    padding: 1.6rem 2rem;
    margin: 1.8rem 0;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
#booking-summary h4 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b1f3a;
    border-left: 5px solid #c8a24d;
    padding-left: 1rem;
}
#booking-summary p {
    margin: 0.7rem 0;
    font-size: 0.95rem;
    color: #3e4a5c;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-weight: 500;
    border-bottom: 1px dashed rgba(200,162,77,0.3);
    padding-bottom: 0.5rem;
}
#booking-summary p strong {
    color: #0b1f3a;
    font-weight: 800;
}

/* --- Map Container --- */
#map {
    height: 400px;
    width: 100%;
    margin: 1rem 0 1.8rem;
    border-radius: 40px;
    overflow: hidden;
    border: 3px solid #c8a24d;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.12);
}

/* --- Phone & Dropdowns --- */
.phone-input-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}
.phone-input-container select,
.phone-input-container #country_code {
    flex: 0 0 auto;
    width: 120px;
    padding: 14px 12px;
    border: 1px solid #e2d8c4;
    border-radius: 32px;
    background-color: #ffffff;
    color: #1f2c3e;
    font-size: 14px;
    height: 52px;
    transition: all 0.2s;
}
.phone-input-container .phone-input {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e2d8c4;
    border-radius: 32px;
    padding: 14px 16px;
    color: #1f2c3e;
    height: 52px;-
   
}

/* --- Payment Redirect & Loader --- */
.payment-redirect {
    text-align: center;
    padding: 2rem;
    background: #fef9f0;
    border-radius: 40px;
}
.loader {
    border: 4px solid #ece0cc;
    border-top: 4px solid #c8a24d;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#form-message {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    color: #0b1f3a;
}

/* =============================================================
   PRODUCTION SMOOTH RESPONSIVE BREAKPOINTS (FIXED FOR MOBILE)
   ============================================================= */

/* Tablet View Layout Adjustments */
@media (max-width: 1024px) {
    .cab-booking-form-container {
        padding: 24px;
        border-radius: 36px;
    }
    .fs-title {
        font-size: 24px;
    }
    .vehicle-options {
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 16px;
    }
}

/* Smartphone / Mobile View Landscape & Portrait Layout Optimization */
@media (max-width: 768px) {
    .cab-booking-form-container {
        padding: 20px;
        border-radius: 28px;
    }
    
    .flex-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        position: relative;
    }
    .form-field.location-field {
        flex: none;
        width: 100%;
        min-width: 100%;
        margin-bottom: 0;
    }

    .swap-btn-overlay {
        display: none !important; 
    }
    
    .fs-title {
        font-size: 22px;
    }
    #msform input, #msform select {
        height: 48px;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .vehicle-options {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .vehicle-card {
        border-radius: 24px;
        padding: 16px;
    }
    .rate-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .vehicle-info {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .vehicle-info img {
        width: 65px;
        height: 65px;
        border-radius: 16px;
    }
    
    .via-locations-desktop {
        display: none !important;
    }
    .via-locations-mobile {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 8px;
    }
    #via-locations-wrapper {
        width: 100% !important;
    }
    #add-via-btn {
        width: 100%;
        margin: 8px 0;
    }
    .location-fields-container {
        padding: 16px;
        border-radius: 28px;
    }
    .autocomplete-container {
        padding: 6px 14px;
        border-radius: 24px;
    }
    #booking-summary {
        padding: 1.2rem;
        border-radius: 24px;
    }
    #map {
        height: 260px;
        border-radius: 24px;
    }
}

/* Tiny Screen Displays Formatting Optimization */
@media (max-width: 480px) {
    .cab-booking-form-container {
        padding: 16px;
    }
    .fs-title {
        font-size: 19px;
    }
    .fs-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 8px;
    }
    .phone-input-container select,
    .phone-input-container #country_code {
        width: 100% !important;
        max-width: 100% !important;
    }
    .phone-input {
        width: 100%;
    }
    
    #msform .action-button,
    #msform .action-button-secondary {
        width: 100%;
        box-sizing: border-box;
    }
    .previous {
        margin-right: 0;
        margin-bottom: 10px;
    }
    #map {
        height: 220px;
    }
}

/* Global Reset Optimization Framework fixes */
:focus {
    outline: none;
}
button, input, select, textarea {
    color: inherit;
}
button, .action-button, .action-button-secondary, .remove-via-btn {
    min-height: 44px;
    min-width: 44px;
}