.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;  - Prevents flicker */
}

.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;
    }
}