.flight-search-box {
    background: #fff;
    border: 1px solid var(--home-line, #dce9e6);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(8, 66, 58, .14);
    box-sizing: border-box;
    padding: 17px 18px 18px;
    position: relative;
    width: 100%;
    z-index: 5;
}

.flight-search-box.is-home {
    margin: -42px auto 55px;
}

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

.flight-search-heading {
    align-items: center;
    display: flex;
    gap: clamp(28px, 5vw, 76px);
    margin-bottom: 10px;
}

.flight-search-heading h2 {
    color: var(--home-ink, #173c37);
    font-size: clamp(19px, 1.65vw, 23px);
    font-weight: 850;
    line-height: 1.2;
    margin: 0;
}

.flight-trip-options {
    align-items: center;
    display: flex;
    gap: 30px;
}

.flight-trip-options label {
    align-items: center;
    color: var(--home-ink, #173c37);
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    gap: 8px;
    margin: 0;
}

.flight-trip-options input {
    accent-color: var(--home-primary, #087a69);
    cursor: pointer;
    height: 18px;
    margin: 0;
    width: 18px;
}

.flight-search-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(360px, 2.25fr) minmax(160px, .9fr) minmax(185px, 1.05fr) minmax(116px, .68fr);
}

.flight-search-box[data-trip="roundtrip"] .flight-search-row {
    grid-template-columns: minmax(330px, 2fr) minmax(145px, .82fr) minmax(145px, .82fr) minmax(170px, 1fr) minmax(116px, .68fr);
}

.flight-route-fields {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    position: relative;
}

.flight-quick-field {
    background: #fff;
    border: 1px solid var(--home-line, #dce9e6);
    border-radius: 7px;
    color: var(--home-ink, #173c37);
    display: block;
    min-height: 54px;
    min-width: 0;
    padding: 7px 12px 6px 48px;
    position: relative;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.flight-quick-field:focus-within,
.flight-passenger-trigger:hover {
    border-color: var(--home-primary, #087a69);
    box-shadow: 0 0 0 3px var(--home-primary-soft, #eef9f7);
}

.flight-field-icon {
    align-items: center;
    background: var(--home-primary, #087a69);
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 26px;
    justify-content: center;
    left: 9px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
}

.flight-field-icon i {
    font-size: 11px;
}

.flight-quick-field label,
.flight-field-copy small {
    color: var(--home-muted, #647a76);
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 3px;
}

.flight-quick-field > input {
    background: transparent;
    border: 0;
    color: var(--home-ink, #173c37);
    display: block;
    font-size: 14px;
    font-weight: 760;
    height: 21px;
    line-height: 21px;
    margin: 0;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.flight-quick-field > input::placeholder {
    color: #82938f;
    opacity: 1;
}

.flight-quick-field > input[type="date"] {
    cursor: pointer;
}

.flight-swap-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--home-line, #dce9e6);
    border-radius: 50%;
    color: var(--home-primary, #087a69);
    display: flex;
    height: 23px;
    justify-content: center;
    left: 50%;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
    width: 23px;
    z-index: 4;
}

.flight-swap-button i {
    font-size: 9px;
    transform: rotate(90deg);
}

.flight-swap-button:hover {
    background: var(--home-primary, #087a69);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

.flight-airport-field {
    position: relative;
}

.flight-airport-suggestions {
    background: #fff;
    border: 1px solid var(--home-line, #dce9e6);
    border-radius: 9px;
    box-shadow: 0 18px 38px rgba(6, 69, 62, .16);
    left: 0;
    max-height: 290px;
    overflow-y: auto;
    padding: 5px;
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 30;
}

.flight-airport-suggestions button {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 6px;
    color: var(--home-ink, #173c37);
    display: grid;
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 9px;
    text-align: left;
    width: 100%;
}

.flight-airport-suggestions button:hover,
.flight-airport-suggestions button.is-active,
.flight-airport-suggestions button:focus-visible {
    background: var(--home-primary-soft, #eef9f7);
}

.flight-airport-suggestions button.is-active {
    box-shadow: inset 3px 0 0 var(--home-primary, #087a69);
}

.flight-airport-code {
    align-items: center;
    background: var(--home-primary-soft, #eef9f7);
    border-radius: 5px;
    color: var(--home-primary, #087a69);
    display: flex;
    font-size: 12px;
    font-weight: 850;
    height: 34px;
    justify-content: center;
}

.flight-airport-suggestions strong,
.flight-airport-suggestions small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-airport-suggestions strong {
    font-size: 13px;
    margin-bottom: 2px;
}

.flight-airport-suggestions small {
    color: var(--home-muted, #647a76);
    font-size: 10px;
}

.flight-passenger-picker {
    min-width: 0;
    position: relative;
}

.flight-passenger-trigger {
    cursor: pointer;
    font: inherit;
    padding-right: 30px;
    width: 100%;
}

.flight-field-copy,
.flight-field-copy strong {
    display: block;
    min-width: 0;
}

.flight-field-copy strong {
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flight-passenger-chevron {
    color: var(--home-muted, #647a76);
    font-size: 9px;
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
}

.flight-passenger-popover {
    background: #fff;
    border: 1px solid var(--home-line, #dce9e6);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(6, 69, 62, .16);
    min-width: 310px;
    padding: 7px 13px 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 30;
}

.flight-passenger-row {
    align-items: center;
    border-bottom: 1px solid var(--home-line, #dce9e6);
    display: flex;
    justify-content: space-between;
    min-height: 61px;
}

.flight-passenger-row > span strong,
.flight-passenger-row > span small {
    display: block;
}

.flight-passenger-row > span strong {
    color: var(--home-ink, #173c37);
    font-size: 13px;
}

.flight-passenger-row > span small {
    color: var(--home-muted, #647a76);
    font-size: 10px;
    margin-top: 2px;
}

.flight-passenger-counter {
    align-items: center;
    display: grid;
    gap: 5px;
    grid-template-columns: 30px 27px 30px;
    text-align: center;
}

.flight-passenger-counter button {
    align-items: center;
    background: var(--home-primary-soft, #eef9f7);
    border: 1px solid var(--home-primary-pale, #d7efeb);
    border-radius: 50%;
    color: var(--home-primary, #087a69);
    display: flex;
    font-size: 17px;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.flight-passenger-counter button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.flight-passenger-counter b {
    color: var(--home-ink, #173c37);
    font-size: 13px;
}

.flight-passenger-done {
    background: var(--home-primary, #087a69);
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    margin-top: 11px;
    min-height: 34px;
    width: 100%;
}

.flight-submit-button {
    align-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--home-primary, #087a69), #fff 18%), var(--home-primary-dark, #055b50));
    border: 0;
    border-radius: 7px;
    box-shadow: 0 9px 18px rgba(8, 122, 105, .18);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 760;
    gap: 7px;
    justify-content: center;
    min-height: 54px;
    padding: 0 17px;
    transition: box-shadow .16s ease, transform .16s ease;
    white-space: nowrap;
}

.flight-submit-button:hover:not(:disabled) {
    box-shadow: 0 12px 24px rgba(8, 122, 105, .25);
    transform: translateY(-1px);
}

.flight-submit-button:disabled {
    cursor: wait;
    opacity: .72;
}

.flight-form-alert {
    align-items: center;
    background: #fff5f3;
    border: 1px solid #ffd6cf;
    border-radius: 7px;
    color: #a23b2d;
    display: flex;
    font-size: 12px;
    gap: 7px;
    margin-top: 10px;
    min-height: 36px;
    padding: 7px 11px;
}

@media (max-width: 1180px) {
    .flight-search-row,
    .flight-search-box[data-trip="roundtrip"] .flight-search-row {
        grid-template-columns: minmax(340px, 1.8fr) repeat(2, minmax(160px, .8fr));
    }

    .flight-search-box[data-trip="roundtrip"] .flight-submit-button,
    .flight-search-box[data-trip="roundtrip"] .flight-passenger-picker {
        grid-column: auto;
    }

    .flight-submit-button {
        min-width: 130px;
    }
}

@media (max-width: 920px) {
    .flight-search-box.is-home {
        margin-top: -24px;
    }

    .flight-search-row,
    .flight-search-box[data-trip="roundtrip"] .flight-search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flight-route-fields {
        grid-column: 1 / -1;
    }

    .flight-submit-button {
        min-height: 54px;
    }
}

@media (max-width: 580px) {
    .flight-search-box {
        border-radius: 10px;
        padding: 15px 12px 13px;
    }

    .flight-search-box.is-home {
        margin-bottom: 52px;
        margin-top: -13px;
    }

    .flight-search-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 13px;
    }

    .flight-trip-options {
        gap: 25px;
    }

    .flight-trip-options label {
        font-size: 14px;
    }

    .flight-search-row,
    .flight-search-box[data-trip="roundtrip"] .flight-search-row,
    .flight-route-fields {
        grid-template-columns: 1fr;
    }

    .flight-route-fields {
        grid-column: auto;
    }

    .flight-swap-button {
        left: auto;
        right: 12px;
        top: 58px;
        transform: none;
    }

    .flight-swap-button:hover {
        transform: scale(1.08);
    }

    .flight-passenger-popover {
        left: 0;
        min-width: 0;
        right: 0;
    }

    .flight-submit-button {
        min-height: 50px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flight-quick-field,
    .flight-swap-button,
    .flight-submit-button {
        transition: none;
    }
}
