.top-form__container {
    background-color: #FFFFFF;
    width: 100%;
    border-bottom: 1px solid #DEE4F0;
}

.top-form {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 20px;
    gap: 10px;
}

.top-form .label-custom-placeholder {
    flex: 0 0 48%;
}

.top-form .select2-container {
    flex: 0 0 200px;
}

.initial__form-wrapper {
    grid-column: 1/-1;
    height: 38px;
}

.top-form label {
    border: 1px solid #DEE4F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 4px 10px 4px 15px;
}

.top-form label span:not(.custom-placeholder) {
    display: none
}

.top-form label input {
    height: 15px;
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;
    color: #000000;
    width: 100%;
}

.top-form .label-custom-placeholder {
    align-items: flex-end;
    height: 39px;
    position: relative;
}

.input-wrapper {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: flex-end;
}

.custom-placeholder {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #181C19;
}

.custom-placeholder.custom-placeholder--top {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;  
    transform: translateY(0);
    top: 5px;
    color: #6D6D77;
}

.top-form__container .select2-selection *, .select2-results__option {
    font-size: 14px;
}

.initial__form-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #DEE4F0;
    border-radius: 12px;
    padding: 4px;
    width: 200px;
}

.initial__form-wrapper input {
    position: absolute;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.initial__form-wrapper input:checked + label {
    color: #FFFFFF;
}

.initial__form-wrapper {
    position: relative;
}

.initial__form-wrapper::after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    left: 4px;
    width: calc(50% - 4px);
    height: 30px;
    background: var(--green);
    border-radius: 8px;
    transition: all var(--trans);
    z-index: 1;
    background-color: var(--blue);
}

.initial__form-wrapper--toggler-active::after {
    transform: translate(100%, -50%);
    left: auto;
}

#input-cargo {
    right: 0;
}

.initial__form-wrapper label {
    flex: 0 0 50%;
    border: none;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #181C19;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

@media(min-width: 780px) {

    .top-form__container .select2-selection *, .select2-results__option {
        font-weight: 400;
        font-size: 16px;
        line-height: 20px !important;
        color: var(--black) !important;
    }

    .top-form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        padding: 20px 70px;
    }

    .initial__form-wrapper {
        grid-column: span 1;
        width: 100%;
        height: 48px;
    }

    .initial__form-wrapper::after {
        height: 37px;
    }
}

@media (min-width: 1440px) {

    .top-form .label-custom-placeholder {
        flex: 0 0 auto;
    }

    .top-form {
        width: 100%;
        max-width: 1220px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 20px 20px;
        gap: 10px;
    }

    .top-form label span:not(.custom-placeholder) {
        display: block;
        width: 68px;
        height: 38px;
        background-image: url(../images/sticker-ru.png);
        background-size: 68px 38px;
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .switch--active::after {
        transform: translate(calc(100% - 8px), -50%);
    }


    .top-form .label-custom-placeholder {
        height: 52px;
    }

    .custom-placeholder.custom-placeholder {
        left: 100px;
    }

    .custom-placeholder.custom-placeholder--top {
        top: 9px;
    }

    .top-form {
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 70px;
        padding: 20px 0;
    }

    .top-form label {
        border-radius: 16px;
        padding: 7px 16px;
    }

    .initial__form-wrapper {
        grid-column: span 1;
    }

    .top-form label input {
        height: 20px;
        width: 100%;
        font-size: 16px;
        line-height: 20px;
    }

    .input-wrapper {
        position: relative;
        width: 100%;
        height: 36px;
        display: flex;
        align-items: flex-end;
    }

     .custom-placeholder {
        font-size: 16px;
        line-height: 20px;
        left: 100px;
    }

     .custom-placeholder.custom-placeholder--top {
        font-size: 12px;
        line-height: 15px;
    }

    .initial__form-wrapper {
        border-radius: 16px;
        padding: 7px 16px;
    }

    .initial__form-wrapper label {
        font-size: 16px;
        line-height: 20px;
    }

    .initial__form-wrapper::after {
        width: calc(50% - 8px);
        height: 40px;
    }

    .initial__form-wrapper {
        height: 54px;
    }


}