#pbo-form,
#pbo-form * {
    box-sizing: border-box;
}

#pbo-form {
    width: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.pbo-search-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.Pbo-main-container {
    position: relative;
    z-index: 10001;
    width: 100%;
}

.Pbo-inputs-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr) minmax(190px, .72fr);
    align-items: stretch;
    width: 100%;
    min-height: 88px;
    overflow: visible;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 46px;
    box-shadow: 0 8px 22px rgba(15, 32, 58, .09);
}

.Pbo-selects-container,
.Pbo-date-passengers-container {
    display: flex;
    min-width: 0;
}

.Pbo-selects-container {
    position: relative;
}

.pbo-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 86px;
    padding: 16px 24px;
    background: #fff;
}

.Pbo-individual-select-container {
    flex: 1 1 50%;
}

.pbo-field::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 20px;
    width: 1px;
    background: #e1e5eb;
}

.origin-destination,
.pbo-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    color: #252c39;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.pbo-field-icon {
    color: #2c67ee;
    font-size: 10px;
}

.Pbo-select-custom {
    position: relative;
    min-width: 0;
}

.custom-selected,
.search-input,
.Pbo-date,
.Pbo-passengers {
    width: 100%;
    min-width: 0;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212936;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 30px;
}

.custom-selected {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-selected:empty::before {
    content: attr(data-placeholder);
    color: #7b8492;
    font-weight: 400;
}

.custom-selected img {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    object-fit: contain;
}

.search-input {
    display: none;
    padding: 0 !important;
}

.Pbo-date,
.Pbo-passengers {
    cursor: pointer;
}

.Pbo-passengers {
    appearance: textfield;
}

.Pbo-passengers::-webkit-inner-spin-button,
.Pbo-passengers::-webkit-outer-spin-button {
    opacity: 1;
}

.Pbo-select-custom .custom-options {
    display: none;
    position: absolute;
    top: calc(100% + 18px);
    left: -24px;
    z-index: 99999;
    width: 360px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 32, 58, .20);
}

.Pbo-select-custom.open .custom-options {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid #edf0f4;
    border-radius: 9px;
    color: #273141;
    cursor: pointer;
    font-size: 14px;
    transition: background .18s ease;
}

.custom-option:last-child {
    border-bottom: 0;
}

.custom-option:hover {
    background: #eef4ff;
}

.custom-option img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.state {
    margin: 4px 0 8px !important;
    padding: 0 !important;
}

.state > p {
    margin: 0 0 4px !important;
    padding: 7px 10px !important;
    background: #f1f4f8 !important;
    border-radius: 8px !important;
    color: #526071;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pbo-swap {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #e1e5eb;
    border-radius: 50%;
    background: #fff;
    color: #2c67ee;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(20, 43, 78, .12);
    transition: transform .18s ease, background .18s ease;
}

.pbo-swap:hover {
    background: #f3f7ff;
    transform: translate(-50%, -50%) rotate(180deg);
}

.Pbo-date-passengers-container > .pbo-field {
    flex: 1 1 50%;
}

.Pbo-button {
    align-self: center;
    width: calc(100% - 24px);
    height: 64px;
    margin: 0 12px;
    padding: 0 24px;
    border: 0;
    border-radius: 34px;
    background: var(--pbo-button, #f7c600);
    color: var(--pbo-button-text, #fff);
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(222, 176, 0, .25);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.Pbo-button:hover {
    background: var(--pbo-button-hover, #ddb100);
    transform: translateY(-1px);
    box-shadow: 0 10px 23px rgba(222, 176, 0, .32);
}

.Pbo-button:active {
    transform: translateY(0);
}

@media (max-width: 980px) {
    .Pbo-inputs-container {
        grid-template-columns: 1fr 1fr;
        border-radius: 28px;
        overflow: visible;
    }

    .Pbo-selects-container {
        grid-column: 1 / -1;
        border-bottom: 1px solid #e1e5eb;
    }

    .Pbo-button {
        height: 60px;
    }
}

@media (max-width: 640px) {
    .pbo-search-shell {
        padding: 0;
        border-radius: 0;
    }

    .Pbo-inputs-container {
        display: flex;
        flex-direction: column;
        border-radius: 24px;
    }

    .Pbo-selects-container,
    .Pbo-date-passengers-container {
        flex-direction: column;
    }

    .pbo-field {
        min-height: 76px;
        padding: 13px 20px;
    }

    .pbo-field::after {
        top: auto;
        right: 20px;
        bottom: 0;
        left: 20px;
        width: auto;
        height: 1px;
    }

    .pbo-swap {
        top: 50%;
        left: auto;
        right: 10px;
        transform: translateY(-50%) rotate(90deg);
    }

    .pbo-swap:hover {
        transform: translateY(-50%) rotate(270deg);
    }

    .Pbo-button {
        width: calc(100% - 24px);
        height: 58px;
        margin: 12px;
    }

    .Pbo-select-custom .custom-options {
        position: fixed;
        top: 12%;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: 70vh;
    }
}
