/* ════════════════════════════════════════
   VEHICLE SEARCH BAR — [vehicle_search_bar]
════════════════════════════════════════ */
.vl-search-bar {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    padding: 20px 24px;
    width: 100%;
    box-sizing: border-box;
}

.vl-search-bar__top-label {
    color: #E1251B;
    margin-bottom: 1em;
}

.vl-search-bar__form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em 1em;
}

/* ── Rows become transparent so children land directly in the grid ── */
.vl-search_bar__form-row {
    display: contents;
}

/* ── Fields ── */
.vl-search-bar__field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #F1F1F1;
}

/* ── Red category tag ── */
.vl-search-bar__tag {
    font-size: 10px;
    font-weight: 700;
    color: #e53e3e;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

/* ── Select ── */
.vl-search-bar__select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #2d3748;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 14px;
}

.vl-search-bar__select:focus {
    color: #e53e3e;
}

.vl-search-bar__select:disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ── Submit button — pinned to column 4 ── */
.vl-search-bar__action {
    grid-column: 4;
    display: flex;
    align-items: center;
}

.vl-search-bar__btn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #e1251b;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.vl-search-bar__btn:hover  { background: #c53030; }
.vl-search-bar__btn:active { transform: scale(0.97); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .vl-search-bar__form {
        grid-template-columns: repeat(2, 1fr);
    }
    .vl-search-bar__action {
        grid-column: 2;
    }
}

@media (max-width: 500px) {
    .vl-search-bar {
        padding: 16px;
        border-radius: 12px;
    }
    .vl-search-bar__form {
        grid-template-columns: 1fr;
    }
    .vl-search-bar__action {
        grid-column: 1;
    }
    .vl-search-bar__btn {
        width: 100%;
        padding: 14px;
    }
}
