/* Input modal*/
.modal .form-privacy__input-container {
    flex-wrap: wrap;
    font-size: 14px;
}

.modal .form-section .input-text {
    height: 62px;
    padding: 17px 10px 0;
    padding-right: 35px;
    letter-spacing: -0.3px;
    transition: 200ms ease all;
    margin-bottom: 0;
    width: 100%;
}

.modal .form-section .input-textarea {
    height: 156px;
    width: 100%;
}

.modal .input-text__label {
    padding-left: 11px;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 5px;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 15px;
    padding-right: 35px;
    opacity: .5;
    -webkit-transition: 200ms ease all;
    -o-transition: 200ms ease all;
    transition: 200ms ease all;
}

.modal .input-text__container {
    display: block;
    position: relative;
    width: 100%;
    /* margin-bottom: 5px; */
}

.modal textarea{
    resize: none;
}

.modal .input-textarea__label {
    top: 14%;
}

.modal .input-text:focus~.input-text__label {
    top: 3px;
    transform: translateY(0);
    font-size: 13px;
}

.modal form .input-text_not-empty {
    top: 3px;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    font-size: 13px;
}

/* Error */
.modal .feedback-form .errortext {
    font-size: 13px;
}

.modal input.border-bottom-error {
    border-bottom: 1px solid red;
}

.alert-message {
    display: block;
    -webkit-animation-duration: 200ms;
    animation-duration: 200ms;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease;
    animation-timing-function: ease;
    max-width: 90%;
    position: absolute;
    left: 12px;
    background: #f25830;
    z-index: 10;
    border-radius: 0 2px 2px 2px;
    padding: 2px 4px 2px 22px;
    font: 13px;
    color: #fff;
}

.alert-message::after {
    content: '';
    display: block;
    height: 6px;
    width: 6px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 3px solid #f25830;
    border-top-color: rgb(242, 88, 48);
    border-right-color: rgb(242, 88, 48);
    border-top-color: transparent;
    border-right-color: transparent;
    position: absolute;
    left: 0;
    bottom: 100%;
}

.alert-message::before {
    content: '';
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    left: 3px;
    top: 5px;
    background: url(images/alert.svg) no-repeat center;
    background-size: auto;
    width: 15px;
    height: 15px;
    background-size: contain;
}

/* Checkbox */
.modal .custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.4;
    /* color: #333; */
    /* Цвет текста */
}

/* Скрываем нативный чекбокс */
.modal .custom-checkbox .input-privacy {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомный чекбокс */
.modal .custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    border: 2px solid #f8b324;
    background-color: transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Эффект при наведении */
.modal .custom-checkbox:hover .input-privacy~.checkmark {
    background-color: rgba(248, 179, 36, 0.1);
}

/* Стиль когда чекбокс отмечен */
.modal .custom-checkbox .input-privacy:checked~.checkmark {
    background-color: transparent;
}

/* Создаем галочку (скрытую по умолчанию) */
.modal .custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #f8b324;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Показываем галочку когда отмечено */
.modal .custom-checkbox .input-privacy:checked~.checkmark:after {
    display: block;
}

/* Стили для ссылки */
.modal .input-privacy__link {
    color: #f8b324;
    text-decoration: underline;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.modal .input-privacy__link:hover {
    color: #e6a11d;
    text-decoration: none;
}

/* Дополнительные стили для фокуса */
.modal .custom-checkbox .input-privacy:focus~.checkmark {
    box-shadow: 0 0 0 2px rgba(248, 179, 36, 0.3);
}

.modal .form-success {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
}

#wait_comp_082ddbef62ecd53db6d53287ab037ff5 {
    display: none;
}

.modal button.button {
    width: 100%;
    max-width: initial;
}

@media only screen and (max-width : 576px) {
    .custom-checkbox {
        flex-wrap: wrap;
    }

    .custom-checkbox .checkmark {
        top: 3px;
        height: 16px;
        width: 16px;
    }

    .modal .custom-checkbox {
        font-size: 12px;
    }
}