.booking-widget {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;

    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.booking-steps .step {
    flex: 1;
    text-align: center;

    display: inline-block;
    padding: 10px 22px;
    border-radius: 25px;
    margin: 0 5px;
    background: #e9eefa;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    position: relative;
}

.booking-steps .step.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}

.booking-steps .step.completed::after {
    content: '✔';
    color: #22c55e;
    position: absolute;
    right: -18px;
    font-size: 1em;
}

.error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-left: 8px;
}


.tab-content {
    display: none;

    transition: opacity .32s;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.tab-content.active {
    display: block;

    opacity: 1;
    pointer-events: all;
    position: relative;
}

.booking-widget {
    position: relative;
    /* Needed for tab absolute positioning */
    min-height: 500px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="pickup"],
input[type="dropoff"],
input[type="email"],
input[type="name"],
input[type="text"],
input[type="special_comment"],
input[type="password"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.vehicle-card {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #f9f9f9;

    border: 2px solid #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 1px 6px rgba(30, 42, 80, 0.08);
    display: inline-block;
    margin: 10px 16px 20px 0;
    padding: 18px 22px;
    vertical-align: top;
    width: 220px;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s;
    background: #fff;
}

.vehicle-card.selected {
    border: 2px solid #1976d2;
    box-shadow: 0 2px 6px #1976d2aa;
    background: #f5faff;
}

.vehicle-card.selected,
.vehicle-card:hover {
    border-color: #1976d2;
    box-shadow: 0 3px 14px rgba(25, 118, 210, 0.16);
}



button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(90deg, #1976d2 60%, #22c55e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #1976d255;
    transition: background 0.23s, box-shadow 0.18s;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(90deg, #1459b3 60%, #16a34a 100%);
    box-shadow: 0 4px 14px #1976d288;
}

.btnBack {
    background: #e9eefa !important;
    color: #007bff !important;
    border: 1.5px solid #007bff !important;
    font-weight: 600 !important;
}

#btnToStep3,
#btnPayNow,
#btnGetPrice {
    width: 100%;
    margin-top: 14px;
}

.vehicle-card label input[type="radio"] {
    accent-color: #1976d2;
    margin-right: 5px;
}

.booking-widget label input[type="checkbox"] {
    accent-color: #1976d2;
    margin-right: 5px;
}

input[type="date"]:disabled,
input[type="time"]:disabled {
    background: #f0f7fa !important;
    color: #888 !important;
    cursor: not-allowed;
    border: 1.5px solid #aee9fb !important;
}

#returnFields.filled input:not([type="checkbox"]) {
    border: 2px solid #22c55e;
    background: #e6faea;
}

#is_return {
    transform: scale(1.12);
    accent-color: #1976d2;
}

/**/

#itineraryForm {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    background: none;
    box-shadow: none;
}

#itineraryForm label {
    font-weight: 500;
    color: #222;
    margin-bottom: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#itineraryForm input[type="pickup"],
#itineraryForm input[type="dropoff"],
#itineraryForm input[type="date"],
#itineraryForm input[type="time"] {
    width: 100%;
    font-size: 1em;
    padding: 10px 8px;
    border-radius: 4px;
    border: 1.2px solid #c6dbf6;
    background: #f8fbff;
    margin: 0;
    box-sizing: border-box;
}

/* Inline return checkbox and label */
#itineraryForm .inline-checkbox,
#itineraryForm label[for="is_return"] {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0 0 0.5em 0;
}

#is_return {
    margin-right: 8px;
    accent-color: #1976d2;
    width: 16px;
    height: 16px;
}

/* Return fields full width, stack if needed */
#returnFields {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0 0 0.2em 0;
}

#returnFields label {
    flex: 1;
    font-weight: 500;
}

@media (max-width: 600px) {
    #returnFields {
        flex-direction: column;
        gap: 6px;
    }
}

/*#btnGetPrice {
    width: 100%;
    font-size: 1em;
    margin: 12px 0 0 0;
}*/


/**/


@media (max-width: 600px) {
    .booking-widget {
        max-width: 100vw;
        width: 100vw;
        padding: 4vw 2vw;
        border-radius: 0;
        border: none;
        min-height: 100vh;
        box-shadow: none;
    }

    .booking-steps {
        flex-direction: column;
        gap: 6px;
    }

    .tab-content,
    .booking-widget {
        min-height: 360px;
    }

    .vehicle-card {
        width: 100%;
        margin: 8px 0;
    }

    label {
        font-size: 1.02em;
    }

    input,
    select,
    textarea {
        font-size: 1.07em;
        padding: 12px;
    }

    button,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
        padding: 14px;
        font-size: 1.12em;
    }
}

/* === TaxiWidget embed overrides (append at end) === */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Let the widget breathe a bit wider on desktop (optional) */
.booking-widget {
    max-width: 960px;
}

/* Lay out vehicles in a responsive grid instead of inline-blocks */
#vehicleOptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Make each card a tidy flex row; override previous inline-block/width/margins */
.vehicle-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: auto;
    /* override width:220px */
    margin: 0;
    /* grid handles spacing */
    padding: 12px;
    /* keep your padding tidy */
    border-radius: 12px;
    /* matches your look */
}

/* Image sizing within the card */
.vehicle-card img {
    width: 96px;
    height: auto;
    border-radius: 10px;
    flex: 0 0 auto;
}

/* Steps can wrap on small screens to prevent overflow */
.booking-steps {
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile polish */
@media (max-width: 600px) {
    .booking-widget {
        padding: 16px;
        border: none;
        border-radius: 0;
    }

    .vehicle-card {
        width: 100%;
    }

    #btnToStep3,
    #btnBack,
    #btnGetPrice,
    #btnPayNow {
        width: 100%;
    }
}

/* --- Fix Quotation card overflow: 2-col grid --- */
#vehicleOptions {
    overflow: hidden;
}

/* safety */

.vehicle-card {
    display: grid;
    /* override the earlier flex */
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    width: auto;
    /* override old fixed width */
    margin: 0;
    /* grid handles spacing */
    min-width: 0;
    /* allow content to shrink */
    padding: 12px;
    border-radius: 12px;
}

.vehicle-card img {
    width: 80px;
    /* matches first column */
    height: auto;
    border-radius: 10px;
    grid-column: 1 / 2;
    grid-row: 1 / span 4;
    /* image spans the content rows */
}

.vehicle-card h4,
.vehicle-card p,
.vehicle-card label {
    grid-column: 2 / 3;
    /* all text in the right column */
    margin: 2px 0;
    min-width: 0;
    /* prevent text forcing overflow */
    overflow-wrap: anywhere;
    /* wrap long words, if any */
}

.vehicle-card h4 {
    font-size: 1rem;
    line-height: 1.25;
}

.vehicle-card label input[type="radio"] {
    transform: translateY(1px);
}

/* Mobile: tighter image and spacing if needed */
@media (max-width: 420px) {
    .vehicle-card {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 10px;
        padding: 10px;
    }

    .vehicle-card img {
        width: 68px;
    }
}

/* --- Vehicle grid spacing & sizing --- */
.tab-step-2 .quotation-summary {
    margin-bottom: 12px;
}

/* outer breathing room for the grid */
#vehicleOptions {
    display: grid;
    /* already set, rest safe to repeat */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    /* space between cards */
    margin: 8px 0 18px;
    /* space above/below the grid */
    padding: 2px;
    /* tiny inner padding so shadows aren't clipped */
}

/* tighten columns slightly on medium screens */
@media (max-width: 900px) {
    #vehicleOptions {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
}

/* single column on phones with comfy spacing */
@media (max-width: 600px) {
    #vehicleOptions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 8px 0 16px;
    }
}

/* Card layout (2-col grid: image + content) */
.vehicle-card {
    display: grid;
    /* override any earlier flex */
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    width: auto;
    /* no fixed width */
    margin: 0;
    /* grid handles spacing */
    min-width: 0;
    /* allow wrapping */
    padding: 14px;
    /* a hair more padding */
    border-radius: 12px;
}

.vehicle-card img {
    width: 80px;
    height: auto;
    border-radius: 10px;
    grid-column: 1 / 2;
    grid-row: 1 / span 4;
}

.vehicle-card h4,
.vehicle-card p,
.vehicle-card label {
    grid-column: 2 / 3;
    margin: 2px 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Neater "Select" row */
.vehicle-card label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* slightly smaller image on narrow phones */
@media (max-width: 420px) {
    .vehicle-card {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px;
    }

    .vehicle-card img {
        width: 68px;
    }
}


/* ==== FINAL VEHICLE CARD LAYOUT & SPACING OVERRIDES ==== */
/* Grid spacing between cards */
#vehicleOptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    /* modern shorthand */
    grid-gap: 18px;
    /* legacy Safari */
    margin: 10px 0 20px;
    padding: 2px;
}

/* Card: force grid (wins over earlier inline-block/flex) */
.vehicle-card {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    /* modern */
    row-gap: 8px;
    grid-column-gap: 16px;
    /* legacy Safari */
    grid-row-gap: 8px;
    align-items: start;
    width: auto !important;
    margin: 0 !important;
    /* grid controls spacing */
    min-width: 0;
    padding: 16px;
    border-radius: 12px;
}

/* Image column */
.vehicle-card img {
    width: 88px;
    height: auto;
    border-radius: 10px;
    grid-column: 1/2;
    grid-row: 1/span 4;
}

/* Text column spacing */
.vehicle-card h4,
.vehicle-card p,
.vehicle-card label {
    grid-column: 2/3;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vehicle-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.25;
}

.vehicle-card p {
    margin: 4px 0;
    /* add breathing room between lines */
    line-height: 1.35;
}

.vehicle-card label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* space between radio + "Select" */
    margin-top: 8px;
}

/* Medium screens: allow slightly narrower cards */
@media (max-width: 900px) {
    #vehicleOptions {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
        grid-gap: 16px;
    }
}

/* Phones: single column */
@media (max-width: 600px) {
    #vehicleOptions {
        grid-template-columns: 1fr;
        gap: 14px;
        grid-gap: 14px;
    }

    .vehicle-card {
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 14px;
        grid-column-gap: 14px;
        padding: 14px;
    }

    .vehicle-card img {
        width: 76px;
    }
}

/* --- Tighter vertical rhythm --- */
.vehicle-card {
    row-gap: 4px;
}

.vehicle-card h4 {
    margin: 0 0 4px;
    line-height: 1.25;
}

.vehicle-card p {
    margin: 2px 0;
    line-height: 1.35;
}

.vehicle-card label {
    margin-top: 6px;
    gap: 8px;
}

/* --- Mobile fix: force space between IMG and text even if column-gap fails --- */
@media (max-width: 600px) {

    /* reduce grid gap a bit on phones */
    .vehicle-card {
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 6px;
        grid-column-gap: 6px;
        /* legacy Safari */
        row-gap: 2px;
        padding: 12px;
    }

    .vehicle-card img {
        width: 76px;
    }

    /* Fallback shim: add left margin to ALL non-image children so text never touches/overlaps the image */
    .vehicle-card> :not(img) {
        margin-left: 8px;
    }
}

/* ==== Clean vehicle grid (paste at very end) ==== */

/* Grid that spaces cards properly */
.tab-step-2 #vehicleOptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 12px 0 18px;
}

@media (max-width:600px) {
    .tab-step-2 #vehicleOptions {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Card reset + layout */
.tab-step-2 #vehicleOptions .vehicle-card {
    all: unset;
    /* wipe earlier conflicting rules */
    display: grid;
    grid-template-columns: 84px 1fr;
    /* image | text */
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    padding: 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(30, 42, 80, .08);
    width: auto;
    min-width: 0;
}

.tab-step-2 #vehicleOptions .vehicle-card.selected {
    border-color: #1976d2;
    box-shadow: 0 2px 6px rgba(25, 118, 210, .25);
    background: #f5faff;
}

/* Image column */
.tab-step-2 #vehicleOptions .vehicle-card img {
    grid-column: 1/2;
    grid-row: 1 / span 4;
    width: 84px;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

/* Text column */
.tab-step-2 #vehicleOptions .vehicle-card h4,
.tab-step-2 #vehicleOptions .vehicle-card p,
.tab-step-2 #vehicleOptions .vehicle-card label {
    grid-column: 2/3;
    min-width: 0;
    overflow-wrap: anywhere;
    margin: 0;
    /* start clean */
}

.tab-step-2 #vehicleOptions .vehicle-card h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.25;
}

.tab-step-2 #vehicleOptions .vehicle-card p {
    margin: 2px 0;
    line-height: 1.35;
}

.tab-step-2 #vehicleOptions .vehicle-card label {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile: guarantee space between image & text (fallback for flaky column-gap) */
@media (max-width:600px) {
    .tab-step-2 #vehicleOptions .vehicle-card {
        grid-template-columns: 72px 1fr;
        column-gap: 10px;
        padding: 12px;
    }

    .tab-step-2 #vehicleOptions .vehicle-card img {
        width: 72px;
    }

    .tab-step-2 #vehicleOptions .vehicle-card>*:not(img) {
        margin-left: 8px;
    }

    /* hard buffer */
}

/* Safety: prevent host-site CSS from floating/positioning children */
.tab-step-2 #vehicleOptions .vehicle-card *,
.tab-step-2 #vehicleOptions .vehicle-card img {
    float: none;
    position: static;
}

/* Mobile: show only the current step chip */
/* Desktop: hide the mobile indicator */
.mobile-step-indicator { display: none; }

/* Mobile step header */
@media (max-width: 600px) {
  .booking-steps { display: none; } /* hide the 4 chips entirely */
  .mobile-step-indicator {
    display: block;
    background: #e9eefa;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .mobile-step-indicator strong {
    display: block;
    color: #0f2d5c;
  }
  .mobile-step-indicator small {
    color: #667085;
  }
  .mobile-progress {
    height: 4px;
    background: #dfe7fb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
  }
  .mobile-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1976d2 60%, #22c55e 100%);
    transition: width .25s ease;
  }
}

/* --- iOS date/time sizing & tap-target fix --- */
#itineraryForm input[type="date"],
#itineraryForm input[type="time"],
#returnFields   input[type="date"],
#returnFields   input[type="time"] {
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;        /* prevents iOS zoom-in on focus */
  min-height: 44px;       /* Apple HIG minimum tap size */
  line-height: 1.2;
  padding: 12px 10px;     /* slightly larger so the control doesn’t collapse */
}

/* Make the internal value area tall enough on WebKit (Safari/iOS) */
#itineraryForm input[type="date"]::-webkit-date-and-time-value,
#itineraryForm input[type="time"]::-webkit-date-and-time-value,
#returnFields  input[type="date"]::-webkit-date-and-time-value,
#returnFields  input[type="time"]::-webkit-date-and-time-value {
  min-height: 1.2em;
}

/* Tighten only on very small phones, but keep 44px min height */
@media (max-width: 380px) {
  #itineraryForm input[type="date"],
  #itineraryForm input[type="time"],
  #returnFields   input[type="date"],
  #returnFields   input[type="time"] {
    padding: 10px 8px;
  }
}

