/* Reference-inspired search section. Decorative artwork adds no new content. */
.gb-home #theme_search_form {
    padding: 72px 0;
    background-color: #121A5A;
    background-image: linear-gradient(110deg, rgba(18, 26, 90, .35), rgba(18, 26, 90, .08)),
        url('../img/Mountain Campus Poolside Retreat.png');
    background-position: center, center;
    background-size: cover;
    background-repeat: no-repeat;
}
.gb-home #theme_search_form .theme_search_form_area {
    position: relative;
    isolation: isolate;
    padding: 0;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 26px;
    background: linear-gradient(115deg, rgba(255, 255, 255, .96), rgba(242, 238, 255, .94));
    box-shadow: 0 18px 55px #121A5A30;
    min-height: 270px;
}
.gb-home #theme_search_form .theme_search_form_area::before {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 255px;
    background: url('../img/banner/Grand School Campus Hero Banner.png') left bottom / contain no-repeat;
}
.gb-home #theme_search_form .theme_search_form_area::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
    top: 12px;
    right: 20px;
    width: 200px;
    height: 76px;
    background: url('../img/banner/Purple Paper Plane Flight Path.png') center / contain no-repeat;
}
.gb-home #theme_search_form .theme_search_form_area > .gb-search-controls {
    margin-left: 220px;
    padding: 44px 28px 30px 8px;
}
.gb-home #theme_search_form .home-filter > .row {
    display: grid;
    grid-template-columns: 1.35fr 1.1fr 1fr 1fr .85fr;
    gap: 16px;
    margin: 0;
    align-items: start;
    background: transparent;
}
.gb-home #theme_search_form .home-filter > .row > div,
.gb-home #theme_search_form .home-filter > .row > div:not(:last-child),
.gb-home #theme_search_form .home-filter > .row > div:last-child {
    grid-column: auto;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.gb-home #theme_search_form .home-filter > .row > div:nth-child(2),
.gb-home #theme_search_form .home-filter > .row > div:nth-child(3),
.gb-home #theme_search_form .home-filter > .row > div:nth-child(4) {
    border-left: 1px solid #E7E3F5;
    padding-left: 16px;
}
.gb-home #theme_search_form .home-filter h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0;
    margin: 0 0 16px;
    font: 600 13px/1.4 'Manrope', Arial, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    color: #121A5A;
    text-align: left;
}
.gb-home #theme_search_form .home-filter h3::before {
    content: '\f19c';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: #F2EEFF;
    color: #633AF2;
    font: 900 13px/1 'Font Awesome 5 Free';
}
.gb-home #theme_search_form .home-filter > .row > div:nth-child(2) h3::before { content: '\f0c0'; }
.gb-home #theme_search_form .home-filter > .row > div:nth-child(3) h3::before { content: '\f3c5'; }
.gb-home #theme_search_form .home-filter > .row > div:nth-child(4) h3::before { content: '\f02d'; }
.gb-home #theme_search_form .home-filter .filter-section.fee,
.gb-home #theme_search_form .home-filter .filter-section.gender {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.gb-home #theme_search_form .home-filter .filter-section > span,
.gb-home #theme_search_form .home-filter .filter-section > span.active,
.gb-home #theme_search_form .home-filter .filter-section > span:hover {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #633AF2;
    border-radius: 24px;
    color: #fff;
    background: #633AF2;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.4;
    cursor: default;
    transition: none;
}
.gb-home #theme_search_form .home-filter .form-control {
    height: 44px;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #E7E3F5;
    border-radius: 10px;
    background-color: #fff;
    color: #121A5A;
    box-shadow: 0 3px 8px #633AF204;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.gb-home #theme_search_form .home-filter select.form-control:hover {
    border-color: #633AF2;
}
.gb-home #theme_search_form .home-filter select.form-control:focus {
    border-color: #633AF2;
    background-color: #fff;
    box-shadow: 0 0 0 3px #633AF214;
    outline: none;
}
.gb-home #theme_search_form .home-filter select.form-control option {
    background-color: #fff;
    color: #121A5A;
}
.gb-home #theme_search_form .home-filter select.form-control option:checked {
    background-color: #633AF2;
    color: #fff;
}
/* Custom Region / Class dropdowns: theme colors only (no browser-default blue). */
.gb-home #theme_search_form .home-filter .gb-select { position: relative; }
.gb-home #theme_search_form .home-filter select.gb-select-native { display: none; }
.gb-home #theme_search_form .home-filter .gb-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #E7E3F5;
    border-radius: 10px;
    background: #fff;
    color: #121A5A;
    box-shadow: 0 3px 8px #633AF204;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.gb-home #theme_search_form .home-filter .gb-select-btn:hover { border-color: #b6a2f5; background: #fff; }
.gb-home #theme_search_form .home-filter .gb-select.open .gb-select-btn { border-color: #633AF2; box-shadow: 0 0 0 3px #633AF214; }
.gb-home #theme_search_form .home-filter .gb-select-btn:focus-visible { outline: 3px solid #633AF2; outline-offset: 2px; }
.gb-home #theme_search_form .home-filter .gb-select-btn .gb-select-value { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: transparent; color: #121A5A; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; cursor: inherit; }
.gb-home #theme_search_form .home-filter .gb-select-chevron { flex: 0 0 auto; width: 16px; height: 16px; color: #633AF2; transition: transform .15s ease-in-out; }
.gb-home #theme_search_form .home-filter .gb-select.open .gb-select-chevron { transform: rotate(180deg); }
.gb-home .gb-select-list {
    position: fixed;
    z-index: 9999;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #E7E3F5;
    border-radius: 14px;
    box-shadow: 0 14px 38px #121A5A18;
    max-height: 220px;
    overflow-y: auto;
    font-size: 12px;
}
.gb-home .gb-select-list[hidden] { display: none; }
.gb-home .gb-select-list[aria-label='Select Class'] { scrollbar-width: none; }
.gb-home .gb-select-list[aria-label='Select Class']::-webkit-scrollbar { display: none; }
.gb-home .gb-select-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 7px;
    color: #121A5A;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}
.gb-home .gb-select-list li:hover,
.gb-home .gb-select-list li.gb-active { background: #fff; color: #633AF2; }
.gb-home .gb-select-list li.gb-selected { background: #F2EEFF; color: #633AF2; font-weight: 600; }
.gb-home .gb-select-list li:hover { background: #fff; }
.gb-home .gb-select-list li + li { margin-top: 3px; }
.gb-home .gb-select-list li.gb-selected::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
    .gb-home #theme_search_form .home-filter .gb-select-btn,
    .gb-home #theme_search_form .home-filter .gb-select-chevron { transition: none; }
}
.gb-home #theme_search_form .filter-submit {
    width: 100%;
    height: 44px;
    margin-top: 46px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(120deg, #633AF2, #633AF2);
    box-shadow: 0 8px 20px #633AF225;
    font-size: 13px;
    font-weight: 600;
}
.gb-home #theme_search_form .filter-submit:hover { background: #633AF2; }
.gb-home #theme_search_form .theme_search_form_area hr { display: none; }
.gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child {
    margin-left: 220px;
    padding: 22px 28px 26px 8px;
    border: 0;
    border-top: 1px solid #E7E3F5;
    background: transparent;
}
.gb-home #theme_search_form .popular_tags {
    display: inline-block;
    color: #121A5A;
    font-size: 12px;
    font-weight: 600;
    margin: 0 10px 10px 0;
}
.gb-home #theme_search_form .popular_links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.gb-home #theme_search_form .popular_links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #E7E3F5;
    border-radius: 24px;
    background: #F2EEFF;
    color: #121A5A;
    font-size: 11px;
    line-height: 1.4;
}
.gb-home #theme_search_form .popular_links a::before { content: '\f002'; font: 900 11px/1 'Font Awesome 5 Free'; color: #633AF2; }
.gb-home #theme_search_form .popular_links a:hover { background: #F2EEFF; color: #633AF2; }
.gb-home #theme_search_form :is(input, select, a):focus-visible { outline: 3px solid #633AF2; outline-offset: 3px; }
@media (max-width: 1199px) {
    .gb-home #theme_search_form .theme_search_form_area::before { width: 190px; height: 230px; }
    .gb-home #theme_search_form .theme_search_form_area > .gb-search-controls,
    .gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { margin-left: 175px; }
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(-n+2) { grid-column: span 3; }
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(n+3) { grid-column: span 2; }
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
    .gb-home #theme_search_form {
        padding: 24px 0;
        background-image: linear-gradient(110deg, rgba(18, 26, 90, .35), rgba(18, 26, 90, .08)),
            url('../img/Mountain Campus Pool Retreat-mobile.png');
    }
    .gb-home #theme_search_form .theme_search_form_area { border-radius: 20px; }
    .gb-home #theme_search_form .theme_search_form_area::before { width: 180px; height: 145px; }
    .gb-home #theme_search_form .theme_search_form_area::after { width: 100px; height: 50px; opacity: .55; top: 4px; right: 8px; }
    .gb-home #theme_search_form .theme_search_form_area > .gb-search-controls { margin-left: 0; padding: 38px 20px 24px; }
    .gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { margin-left: 0; padding: 20px 20px 155px; }
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(-n+2),
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(n+3) { grid-column: auto; padding-left: 0; border-left: 0; }
    .gb-home #theme_search_form .home-filter > .row > div:last-child { grid-column: 1 / -1; }
    .gb-home #theme_search_form .filter-submit { margin-top: 0; }
    .gb-home #theme_search_form .home-filter .filter-section > span { padding: 8px 10px; }
    .gb-home #theme_search_form .home-filter h3 { font-size: 12px; gap: 6px; }
    .gb-home #theme_search_form .popular_tags { display: block; }
    .gb-home #theme_search_form .popular_links { display: flex; }
}
@media (max-width: 359px) {
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: minmax(0, 1fr); }
}

/* Full reference composition with the requested heading and control icons. */
.gb-home #theme_search_form > .container { width: calc(100% - 64px); max-width: 1660px; }
.gb-home #theme_search_form .theme_search_form_area { min-height: 360px; }
.gb-home #theme_search_form .gb-search-intro { position: absolute; top: 32px; left: 32px; width: 255px; }
.gb-home #theme_search_form .gb-search-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #F2EEFF; color: #633AF2; border-radius: 24px; padding: 7px 12px; font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
.gb-home #theme_search_form .gb-search-intro h2 { font: 700 29px/1.2 'Manrope', Arial, sans-serif; letter-spacing: -.035em; color: #121A5A; margin: 0 0 12px; }
.gb-home #theme_search_form .gb-search-intro p { font-size: 13px; line-height: 1.6; color: #74748D; margin: 0; }
.gb-home #theme_search_form .theme_search_form_area::before { width: 290px; height: 155px; }
.gb-home #theme_search_form .theme_search_form_area > .gb-search-controls { margin-left: 310px; padding: 58px 32px 36px 0; }
.gb-home #theme_search_form .home-filter > .row { grid-template-columns: 1.35fr 1.2fr 1fr 1fr 1.1fr; gap: 20px; }
.gb-home #theme_search_form .home-filter h3 { margin-bottom: 0; font-size: 14px; }
.gb-home #theme_search_form .gb-field-help { font-size: 11px; line-height: 1.4; margin: 2px 0 20px 38px; color: #74748D; }
.gb-home #theme_search_form .filter-submit { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 67px; height: 48px; white-space: nowrap; }
.gb-home #theme_search_form .filter-submit > .fa-search { font-size: 17px; }
.gb-home #theme_search_form .filter-submit > .fa-arrow-right { font-size: 12px; }
.gb-home #theme_search_form .home-filter select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23633AF2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { margin-left: 290px; padding: 24px 32px 28px 20px; }
.gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child .col-lg-12 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gb-home #theme_search_form .popular_tags { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.gb-home #theme_search_form .gb-search-fire { font-size: 23px; line-height: 1; }
@media (min-width: 1200px) and (max-width: 1399px) {
    .gb-home #theme_search_form .home-filter > .row { gap: 12px; }
    .gb-home #theme_search_form .home-filter > .row > div:nth-child(n+2) { padding-left: 10px; }
    .gb-home #theme_search_form .filter-submit { gap: 6px; font-size: 11px; }
}
@media (max-width: 1199px) {
    .gb-home #theme_search_form > .container { width: calc(100% - 40px); }
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .gb-home #theme_search_form .theme_search_form_area > .gb-search-controls { margin-left: 290px; padding-top: 36px; }
    .gb-home #theme_search_form .gb-search-intro { width: 225px; left: 28px; }
    .gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { margin-left: 270px; }
    .gb-home #theme_search_form .gb-field-help { margin-left: 0; }
}
@media (max-width: 991px) {
    .gb-home #theme_search_form .gb-search-intro { position: relative; top: auto; left: auto; width: auto; padding: 28px 28px 0; max-width: 520px; }
    .gb-home #theme_search_form .theme_search_form_area > .gb-search-controls { margin-left: 0; padding: 28px; }
    .gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { margin-left: 0; padding: 24px 28px 165px; }
}
@media (max-width: 767px) {
    .gb-home #theme_search_form > .container { width: calc(100% - 24px); padding-inline: 0; }
    .gb-home #theme_search_form > .container > .row { margin-inline: 0; }
    .gb-home #theme_search_form > .container > .row > div { padding-inline: 0; }
    .gb-home #theme_search_form .gb-search-intro { padding: 28px 20px 0; }
    .gb-home #theme_search_form .gb-search-intro h2 { font-size: 27px; max-width: 310px; }
    .gb-home #theme_search_form .theme_search_form_area > .gb-search-controls { padding: 28px 20px; }
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gb-home #theme_search_form .filter-submit { margin-top: 0; }
    .gb-home #theme_search_form .theme_search_form_area > .oneway_search_form:last-child { padding-inline: 20px; }
    .gb-home #theme_search_form .theme_search_form_area::after { top: 10px; width: 80px; opacity: .5; }
    .gb-home #theme_search_form .popular_links a { font-size: 11px; }
}
@media (max-width: 359px) {
    .gb-home #theme_search_form .home-filter > .row { grid-template-columns: minmax(0, 1fr); }
}

/* Native picker styling when supported; keeps OS fallback on older browsers. */
@supports (appearance: base-select) {
    .gb-home #theme_search_form .home-filter select.form-control,
    .gb-home #theme_search_form .home-filter select.form-control::picker(select) { appearance: base-select; }
    .gb-home #theme_search_form .home-filter select.form-control { background-image: none; padding-right: 14px; }
    .gb-home #theme_search_form .home-filter select.form-control::picker-icon { color: #633AF2; transition: rotate .15s; }
    .gb-home #theme_search_form .home-filter select.form-control:open::picker-icon { rotate: 180deg; }
    .gb-home #theme_search_form .home-filter select.form-control::picker(select) { margin-top: 8px; padding: 8px; border: 1px solid #E7E3F5; border-radius: 14px; background: #fff; box-shadow: 0 14px 38px #121A5A18; max-height: 260px; overflow-y: auto; }
    .gb-home #theme_search_form .home-filter select.form-control option { padding: 11px 12px; margin: 2px 0; border: 0; border-radius: 7px; background: #fff; color: #121A5A; font-size: 13px; }
    .gb-home #theme_search_form .home-filter select.form-control option:focus,
    .gb-home #theme_search_form .home-filter select.form-control option:checked { background: #F2EEFF; color: #633AF2; outline: none; }
    .gb-home #theme_search_form .home-filter select.form-control option:hover { background: #fff; color: #633AF2; }
    .gb-home #theme_search_form .home-filter select.form-control option::checkmark { color: #633AF2; }
}
