/* Homepage quick search panel (dbc_home only) — refined original layout.
   Scoped to .vh-quick-search and .ui-autocomplete.vh-quick-search-ac —
   no global .search-box / .nav-tabs / .ui-autocomplete overrides. */

.vh-quick-search {
    box-sizing: border-box;
    width: 84%;
    max-width: 1180px;
    margin: 170px auto 0;
    position: relative;
    z-index: 100;
    padding: 26px 28px;
    font-family: 'Fira Sans', sans-serif;
    color: #fff;
    background: rgba(20, 24, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: vhQuickSearchIn 0.5s ease-out;
}

@keyframes vhQuickSearchIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .vh-quick-search { animation: none; }
}

.vh-quick-search *,
.vh-quick-search *::before,
.vh-quick-search *::after {
    box-sizing: border-box;
}

/* left-offset inner column, like the original layout */
.vh-quick-search__inner {
    max-width: 600px;
    margin-left: 15%;
}

.vh-quick-search__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

/* keep the title readable over the hero video even when a browser
   extension or a stale cached stylesheet tries to apply body colors */
.vh-quick-search__title,
.vh-quick-search__title-text,
.vh-quick-search__title-icon {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.vh-quick-search__title-text {
    font-family: 'Fira Sans', sans-serif !important;
    font-size: 20px;
    font-weight: 500;
}

.vh-quick-search__title-icon {
    font-size: 18px;
}

/* classic square tabs attached to the top of the input row —
   selectors keep the header.header prefix to beat the legacy theme rules */
header.header .vh-quick-search .nav-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

header.header .vh-quick-search .nav-tabs > li {
    float: none;
    margin: 0;
}

header.header .vh-quick-search .nav-tabs > li > a,
header.header .vh-quick-search .nav-tabs > li > a:hover,
header.header .vh-quick-search .nav-tabs > li > a:focus {
    margin: 0;
    padding: 10px 26px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: #3a3f45;
    color: #fff;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

header.header .vh-quick-search .nav-tabs > li > a:hover {
    background: #454b52;
    color: #fff;
}

header.header .vh-quick-search .nav-tabs > li.active > a,
header.header .vh-quick-search .nav-tabs > li.active > a:hover,
header.header .vh-quick-search .nav-tabs > li.active > a:focus {
    padding: 10px 26px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: #d9232e;
    color: #fff;
}

/* removes the legacy white arrow under the active tab */
header.header .vh-quick-search .nav-tabs > li.active > a:after {
    display: none;
}

/* white input row with attached red icon button */
.vh-quick-search__form {
    margin: 0;
}

.vh-quick-search__row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.vh-quick-search__row:focus-within {
    box-shadow: inset 0 0 0 2px rgba(217, 35, 46, 0.55);
}

.vh-quick-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
}

.vh-quick-search__input::placeholder {
    color: #9aa4ab;
}

.vh-quick-search__submit {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    border: 0;
    border-radius: 0;
    background: #d9232e;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.vh-quick-search__submit:hover,
.vh-quick-search__submit:focus {
    background: #b81c26;
    color: #fff;
}

/* small solid blue advanced-search link */
.vh-quick-search__advanced {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 3px;
    background: #2a8ad4;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.vh-quick-search__advanced:hover,
.vh-quick-search__advanced:focus {
    background: #1f6fb0;
    color: #fff;
    text-decoration: none;
}

/* visually hidden label for the text inputs */
.vh-quick-search__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* autocomplete menu — only the instances tagged by the homepage fields */
.ui-autocomplete.vh-quick-search-ac {
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    font-family: 'Fira Sans', sans-serif;
    z-index: 1100;
}

.ui-autocomplete.vh-quick-search-ac .ui-menu-item-wrapper {
    padding: 8px 12px;
    border-radius: 2px;
}

.ui-autocomplete.vh-quick-search-ac .ui-state-active {
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: #d9232e;
    color: #fff;
}

/* mobile */
@media (max-width: 600px) {
    .vh-quick-search {
        width: 100%;
        max-width: none;
        margin: 130px 0 0;
        padding: 20px 16px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .vh-quick-search__inner {
        max-width: none;
        margin-left: 0;
    }

    header.header .vh-quick-search .nav-tabs {
        width: 100%;
    }

    header.header .vh-quick-search .nav-tabs > li {
        flex: 1;
    }

    header.header .vh-quick-search .nav-tabs > li > a,
    header.header .vh-quick-search .nav-tabs > li.active > a {
        display: block;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}
