.dialog-container.popup-form-dialog {
    z-index: 80;
}

.dialog-popup-form {
    width: 440px;
}

.popup-form__error {
    margin: 6px 0 0;
    color: #f14646;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.popup-form .form-group,
.popup-form .form-group__label,
.popup-form .form-group__input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.popup-form .btn-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.popup-form .form-group__input.is-invalid,
.popup-form__consent.is-invalid .checkbox__label:before {
    box-shadow: inset 0 0 0 1px #f14646;
}

.popup-form textarea.form-group__input {
    display: block;
    width: 100%;
    min-height: 120px;
    margin: 0;
    border: 0;
    outline: none;
    resize: none;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #25282d;
}

.popup-form .form-group__label:has(textarea) .form-group__placeholder {
    top: 16px;
    bottom: auto;
}

.popup-form .form-group__label:has(textarea:not(:placeholder-shown)) .form-group__placeholder {
    display: none;
}

.popup-form__consent .checkbox__label {
    align-items: flex-start;
}

.popup-form__success {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .dialog-popup-form {
        width: auto;
        max-width: 95%;
        padding: 20px 16px;
    }
}
