.custom-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99999;
}

.custom-modal.is-active {
display: block;
}

.custom-modal__overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(15, 23, 42, 0.65);
backdrop-filter: blur(4px);
}

.custom-modal__content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #ffffff;
padding: 40px 30px 35px;
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
text-align: center;
width: 90%;
max-width: 420px;
}

.custom-modal__icon {
width: 64px;
height: 64px;
background: #e8f5e9;
color: #2e7d32;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}

.custom-modal__title {
margin: 0 0 10px;
font-size: 24px;
font-weight: 700;
color: #1e293b;
letter-spacing: -0.5px;
}

.custom-modal__text {
margin: 0 0 28px;
font-size: 15px;
line-height: 1.5;
color: #64748b;
}

.custom-modal__btn {
width: 100%;
background-color: #20558a;
color: #ffffff;
border: none;
padding: 14px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: background-color 0.2s ease, transform 0.1s ease;
}

.custom-modal__btn:hover {
background-color: #18426c;
}

.custom-modal__btn:active {
transform: scale(0.98);
}

/* Общие стили для сообщений об ошибках */
.error-message {
    color: #e53935;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
    display: block;
    text-align: left;
}

/* Скрываем пустые спаны, чтобы не создавали лишних отступов */
.error-message:empty {
    display: none;
}

/* Фикс для кнопки загрузки файла */
.upload-img {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.upload-img .error_attachment {
    margin-top: 6px;
}
/* Подсветка текстовых полей и textarea при ошибке */
.contact-form input.error,
.contact-form textarea.error,
.contact-form .form__item.error .input,
.contact-form .form__item.error .textarea {
    border: 1px solid #e53935 !important;
    background-color: #fff8f8 !important;
    outline: none !important;
}

/* Подсветка блока выбора файла при ошибке */
.contact-form .upload-img.error,
.contact-form .upload-img.has-error,
.contact-form .js-input-file.error {
    border: 1px dashed #e53935 !important;
    background-color: #fff8f8 !important;
}

/* Изменение цвета текста в кнопке прикрепления файла */
.contact-form .upload-img.error .upload-img__link,
.contact-form .js-input-file.error .upload-img__link {
    color: #e53935 !important;
}

/* Красная рамка для ошибочных текстовых полей */
.contact-form input.error,
.contact-form textarea.error {
    border: 1px solid #e53935 !important;
    background-color: #fff8f8 !important;
}

/* Красная рамка для блока файла */
.contact-form .upload-img.error,
.contact-form .upload-img.has-error {
    border: 1px dashed #e53935 !important;
    background-color: #fff8f8 !important;
}

.contact-form .upload-img.error .upload-img__link {
    color: #e53935 !important;
}

.upload-img .error_attachment {
    color: #e53935 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
}