.vrm-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uk-number-plate-input {
    width: 100%;
    max-width: 220px;
    min-width: 200px;
    height: 60px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Courier New', 'Charles Wright', monospace, sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%), url('/assets/images/ui/uk-number-plate-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #1a1a1a;
    border-radius: 6px;
    padding: 16px 20px;
    color: #000000;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    transition: all 0.2s ease;
    position: relative;
}

.uk-number-plate-input:focus {
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.15),
        0 0 0 3px rgba(0, 123, 255, 0.25),
        0 0 0 1px rgba(255,255,255,0.8) inset;
}

#lookupButton,
.vrm-lookup-btn {
    height: 60px;
    padding: 0 24px;
    background: #c40000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(254, 10, 10, 0.3);
}

#lookupButton:hover,
.vrm-lookup-btn:hover {
    background: #cc0808;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 10, 10, 0.4);
}

@media (max-width: 768px) {
    .uk-number-plate-input {
        max-width: 180px !important;
        min-width: 160px !important;
        height: 50px !important;
        font-size: 16px !important;
        letter-spacing: 2px !important;
        padding: 12px 16px !important;
    }
    .vrm-input-container {
        flex-direction: column !important;
        gap: 8px !important;
    }
    #lookupButton {
        height: 50px !important;
        width: 100% !important;
        max-width: 180px !important;
    }
}

#vrmError {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    clear: both;
}

#booking-form-container {
    display: none;
}

.eligibility-warning {
    display: none;
    margin-top: 10px;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

.eligibility-warning--info {
    background: #e8f4fd;
    border-color: #4a90c4;
    color: #1a3d5c;
}

.eligibility-warning p {
    margin: 6px 0 0 0;
    font-size: 14px;
}

.eligibility-warning a {
    color: #856404;
    font-weight: bold;
    text-decoration: underline;
}

.eligibility-warning--info a {
    color: #1a3d5c;
}

.service-other-hidden {
    display: none;
}

.calendar-legend-today {
    border: 2px solid #b91c1c;
    color: #b91c1c;
    background-color: white;
}

.calendar-legend-today-dot {
    background-color: #b91c1c;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
}

.calendar-legend-sunday {
    background-color: #ffeeee;
    color: rgba(57, 57, 57, 0.3);
}

.calendar-legend-disabled-text {
    text-decoration: line-through;
    font-size: 10px;
}

.calendar-legend-holiday {
    background-color: #fff0f0;
    color: rgba(57, 57, 57, 0.3);
    border-color: rgba(255, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .holiday-hours-info.mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .holiday-hours-info.mobile-only {
        display: block !important;
    }
}

.booking-progress-rail {
    display: none;
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.booking-progress-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.booking-progress-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #4b5563;
    background: #ffffff;
    min-width: 0;
}

.booking-progress-step-index {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.booking-progress-step-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-progress-step-label-short {
    display: none;
}

.booking-progress-rail.is-compact-labels .booking-progress-step-label-full {
    display: none;
}

.booking-progress-rail.is-compact-labels .booking-progress-step-label-short {
    display: block;
}

.booking-progress-step.is-current {
    border-color: #c41230;
    background: #fff5f7;
    color: #991b1b;
}

.booking-progress-step.is-current .booking-progress-step-index {
    border-color: #c41230;
    background: #c41230;
    color: #ffffff;
}

.booking-progress-step.is-done {
    border-color: #d1fae5;
    background: #ecfdf5;
    color: #065f46;
}

.booking-progress-step.is-done .booking-progress-step-index {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
    font-size: 0;
}

.booking-progress-step.is-done .booking-progress-step-index::before {
    content: "✓";
}

.booking-progress-step.is-locked {
    opacity: 0.72;
}

.booking-step-banner {
    display: none;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #c41230;
    border-radius: 8px;
    background: #f9fafb;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
}

.booking-step-banner strong {
    display: block;
    color: #111827;
    margin-bottom: 0.15rem;
}

.booking-step-banner span {
    color: #4b5563;
}

.booking-step-section {
    border-radius: 8px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.booking-step-section.is-current {
    background: #fff7f7;
    box-shadow: inset 0 0 0 1px rgba(196, 18, 48, 0.22);
}

.booking-step-section.is-locked {
    opacity: 0.84;
}

.booking-step-section.is-done {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

@media (min-width: 768px) {
    .booking-progress-rail,
    .booking-step-banner {
        display: block;
    }
}

@media (max-width: 1023px) {
    .booking-progress-rail-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/*
 * Mobile booking date picker (≤767px): vendor Flatpickr static mode uses
 * position:absolute below the input (overlay). Keep that overlay so the page
 * does not reserve a large calendar-sized gap. Do not put overflow-x/y other
 * than visible on the wrappers — that clips the absolute calendar. Constrain
 * width so the day grid fits the container instead of spilling past the edge.
 * Scoped to #date-picker-section; booking.css loads after flatpickr.min.css.
 */
@media (max-width: 767px) {
    #date-picker-section,
    #date-picker-section .date-input-wrapper {
        max-width: 100%;
        overflow: visible;
    }

    #date-picker-section .flatpickr-wrapper {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        /* Keep wrapper height to the input only; calendar overlays below. */
        overflow: visible;
        z-index: 30;
    }

    #date-picker-section .flatpickr-calendar.static,
    #date-picker-section .flatpickr-calendar.inline,
    #date-picker-section .flatpickr-calendar.open {
        position: absolute !important;
        top: calc(100% + 2px) !important;
        left: 0 !important;
        right: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        z-index: 40;
    }

    #date-picker-section .flatpickr-months,
    #date-picker-section .flatpickr-innerContainer,
    #date-picker-section .flatpickr-rContainer,
    #date-picker-section .flatpickr-days {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #date-picker-section .flatpickr-current-month {
        max-width: 100%;
        font-size: 110%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #date-picker-section .dayContainer {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #date-picker-section .flatpickr-day {
        max-width: none;
        height: 34px;
        line-height: 34px;
    }
}
