﻿
.modal-box {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    z-index: 1001;
    padding: 0;
    overflow: visible;
    transition: 0.3s;
    background-color: #fff;
    padding: 42px 24px;
    overflow-y: auto;
    background: linear-gradient(100.03deg, #F1EFF5 0.99%, #FFFFFF 46.04%, #F1EFF5 85.99%);
}
.modal-box.active {
    display: flex;
}
.modal-box__inside-container {
    margin: auto;
    width: 100%;
}
.modal-box .modal-box__content {
    text-align: center;
    margin-bottom: 48px;
}
.modal-box .heading {
    margin-bottom: 12px;
}
.modal-box .textcontent {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
}
.modal-box .close-modal {
    position: absolute;
    right: 0;
    padding: 30px;
    top: 0;
}
form.contact-form {
    max-width: 555px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}
form.contact-form._sending:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    top: 0;
    left: 0;
    z-index: 100;
}
.form-input {
    border-radius: 16px;
    border: 1px solid var(--violet);
    padding: 14px 16px;
    outline: none;
    font-size: clamp(18px, 2vw, 20px);
    max-width: 100%;
}
textarea.form-input {
    resize: none;
}
form.contact-form ::placeholder {
    color: var(--grey);
}
.form-field {
    transition: .4s;
    position: relative;
    overflow: hidden;
}
.form-field::after {
    content: 'Неправильно введенные данные';
    color: transparent;
    transition: .4s;
    user-select: none;
    position: relative;
    bottom: -20px;
    height: 0;
}
.form-field.copy-field::after {
    content: 'Для обработки заявки нам нужно ваше согласие';
}
.form-field._error::after {
    color: #E4062E;
    bottom: -3px;
    height: auto;
}
.form-field._error .form-input {
    border-color: #E4062E;
}
.form-input:focus {
    border-color: var(--green);
}
#form-message {
    min-height: 115px;
    resize: none;
}
.submit-field .button,
.form-alert-btn {
    border-radius: 64px;
}
.form-alert-btn {
    border: 3px solid var(--green);
    display: inline-block;
}
.submit-field {
    text-align: center;
}
span.copy-field-check {
    position: absolute;
    left: 0;
    display: flex;
    width: 20px;
    height: 20px;
}
.copy-field label {
    padding-left: 24px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: 100%;
}
.form-field.copy-field .copy-field-check:before,
.form-field.copy-field .copy-field-check:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.form-field.copy-field .copy-field-check:before {
    border: 1px solid #828282;
    transition: .4s;
}
.form-field.copy-field input:checked+.copy-field-check:before {
    border: 1px solid var(--green);
    background-color: var(--green);
}
.form-field.copy-field input:checked+.copy-field-check:after {
    background: url(../../../uploads/icons/white-check.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.form-field.copy-field._error .copy-field-check:before {
    border-color: #E4062E;
}
.form-alert-window {
    max-width: 555px;
    margin: 0 auto;
    text-align: center;
}
.form-alert-window .close-alert-window {
    position: absolute;
    top: 0;
    right: 0;
    background: url(../../../uploads/icons/close.svg) no-repeat center;
    width: 16px;
    height: 16px;
    padding: 32px;
}
.contact-form-container .form-alert-window {
    max-width: 455px;
    margin-top: clamp(0px, 109px, 8vw);
}