/* [amplus_vehicle_search] — hero search bar */
.amplus-hero-search {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.amplus-hero-search-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    align-items: stretch;
    gap: 0;
}

.amplus-hero-search-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 12px 36px 12px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.amplus-hero-search-field:hover    { background: rgba(0, 0, 0, 0.25); }
.amplus-hero-search-field:focus-within { background: rgba(0, 0, 0, 0.35); }

.amplus-hero-search-field::after {
    content: "";
    position: absolute;
    top: 50%; right: 14px;
    width: 12px; height: 8px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>") no-repeat center / contain;
    pointer-events: none;
    transition: transform .15s ease;
    opacity: .8;
}
.amplus-hero-search-field:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

.amplus-hero-search-field > span:not(.amplus-hero-search-value) {
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.amplus-hero-search-field > .amplus-hero-search-value {
    font-size: 14px; font-weight: 500;
    letter-spacing: 0; text-transform: none;
    color: #ffffff;
    pointer-events: none;
    line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.amplus-hero-search-field select {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 0 36px 0 18px;
    border: 0; background: transparent; color: inherit; font: inherit;
    cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
    opacity: 0; z-index: 2;
}
.amplus-hero-search-field select:focus { outline: none; }
.amplus-hero-search-field select option { color: #0F172A; background: #fff; opacity: 1; }

.amplus-hero-search button.amplus-hero-search-submit,
.amplus-hero-search .amplus-hero-search-submit.amplus-btn-primary {
    position: relative; z-index: 1;
    margin-left: 14px; padding: 10px 22px;
    border: 0; border-radius: 99px;
    font-size: 13px; font-weight: 600; line-height: 1;
    height: auto; align-self: center; gap: 6px;
    background: #ffffff; color: #0F172A;
    text-transform: none; letter-spacing: 0; box-shadow: none;
}
.amplus-hero-search button.amplus-hero-search-submit:hover,
.amplus-hero-search .amplus-hero-search-submit.amplus-btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #0F172A; transform: none;
}
.amplus-hero-search .amplus-hero-search-submit svg {
    flex-shrink: 0; width: 14px; height: 14px;
    stroke: currentColor; fill: none;
}

@media (max-width: 1024px) {
    .amplus-hero-search-grid { grid-template-columns: 1fr 1fr; gap: 0; }
    .amplus-hero-search-field {
        border-right: 1px solid rgba(255, 255, 255, 0.22);
        border-bottom: 1px solid rgba(255, 255, 255, 0.22);
        padding: 12px 36px 12px 16px;
    }
    .amplus-hero-search-field:nth-child(2n) { border-right: 0; }
    .amplus-hero-search-field:nth-last-child(2),
    .amplus-hero-search-field:nth-last-child(3) { border-bottom: 0; }
    .amplus-hero-search .amplus-hero-search-submit {
        grid-column: 1 / -1; margin: 0; padding: 14px 18px; align-self: stretch;
    }
}
@media (max-width: 540px) {
    .amplus-hero-search-grid { grid-template-columns: 1fr; }
    .amplus-hero-search-field {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    }
    .amplus-hero-search-field:nth-last-child(2) { border-bottom: 0 !important; }
}
