.directions-select {
    position: relative;
    width: 100%;
}

.directions-select__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}

.directions-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.directions-select__value.is-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.directions-select__arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, color 0.2s ease;
}

.directions-select__arrow.is-open,
.directions-select__control:hover .directions-select__arrow {
    color: var(--white, #ffffff);
}

.directions-select__arrow.is-open {
    transform: rotate(180deg);
}

.directions-select__dropdown {
    position: absolute;
    top: calc(100% + clamp(4px, 0.31vw, 6px));
    left: 0;
    width: 100%;
    min-width: 160px;
    background: rgba(18, 18, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 clamp(8px, 1.04vw, 20px) clamp(20px, 2.08vw, 40px) rgba(0, 0, 0, 0.6);
    z-index: 100;
    box-sizing: border-box;
}

.directions-select__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.directions-select__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(8px, 0.625vw, 12px) clamp(14px, 1.25vw, 24px);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.15s ease;
}

.directions-select__option:last-child {
    border-bottom: none;
}

.directions-select__option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.directions-select__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.directions-select__box {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.directions-select__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #121216;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.directions-select__option input:checked + .directions-select__box {
    background: var(--white, #ffffff);
    border-color: var(--white, #ffffff);
}

.directions-select__option input:checked + .directions-select__box::after {
    opacity: 1;
}

.directions-select__option input:focus-visible + .directions-select__box {
    outline: 1px solid var(--white, #ffffff);
    outline-offset: 2px;
}

.directions-select__text {
    font-family: PP Neue Montreal, sans-serif;
    font-size: clamp(13px, 0.88vw, 17px);
    line-height: 1.35;
    color: var(--white, #ffffff);
}

@media (min-width: 1025px) {
    .cta-form .cta-form__row--directions,
    .cta-contacts-form .cta-contacts-form__row--directions {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .cta-form .directions-select__value.is-placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .directions-select__dropdown {
        position: static;
        margin-top: 4px;
        box-shadow: none;
    }
}
