/* -------- MODAL -------- */
.modal-wrapper {
    position: fixed;
    z-index: 9;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-wrapper_active {
    display: flex;
    align-items: safe center;
    overflow-x: auto;
    padding: 20px 0;
}

.modal {
    padding: 20px;
    background-color: #FFF;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    position: relative;
}
@media screen and (max-width: 575.98px) {
    .modal {
        max-width: calc(100% - 32px);
    }
}
.modal__title {
    color: #1A1A1A;
}
.modal__subtitle {
    color: rgba(29, 36, 51, 0.65);
    margin-top: 4px;
}
.modal__subtitle_transparent {
    opacity: 0.6;
}
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
}
.modal__form {
    margin-top: 24px;
}
@media screen and (max-width: 575.98px) {
    .modal__form {
        margin-top: 20px;
    }
}
.modal__form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media screen and (max-width: 575.98px) {
    .modal__form-inputs {
        gap: 16px;
    }
}
.modal__form-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
@media screen and (max-width: 575.98px) {
    .modal__form-row {
        flex-direction: column;
        width: 100%;
    }
}
.modal__label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 0 calc(50% - 8px);
}
.modal__label span {
    color: rgba(0, 0, 0, 0.85);
}
.modal__label input, .modal__label textarea {
    width: 100%;
    border: 1px solid #E1E6EF;
}
.modal__btn {
    margin-top: 24px;
    width: 100%;
}
@media screen and (max-width: 575.98px) {
    .modal__btn {
        margin-top: 20px;
    }
}
.modal__caption {
    color: rgba(29, 36, 51, 0.65);
    margin-top: 16px;
}

.modal .wpcf7 form .wpcf7-response-output {
    margin-top: 12px !important;
}
.wpcf7-spinner {
    display: none;
    margin: 0 !important;
}
.wpcf7-not-valid-tip {
    color: #E02D3C !important;
    font-size: 80%;
    margin-top: 4px;
    line-height: 1.2;
}
.wpcf7 form .wpcf7-response-output {
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc;
    border-width: 1px !important;
    font-size: 80% !important;
    border-radius: 8px;
    line-height: 1.2;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #E02D3C;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #00b324;
}