.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal .callback-popup-form-bot {
    margin-top: 5px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    padding: 0;
}

.modal__content {
    background-color: #fff;
    padding: 30px;
    width: 100%;
    max-width: 500px;

    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;

    padding: 60px 55px 50px 55px;
    color: #ffffff;
    background: #A9464D;
}

/* Анимация появления */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 20px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Анимация */
.modal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal__content h2 {
    margin-bottom: 10px;
}
.modal textarea {
    border-radius: 3px;
    width: 100%;
    height: 80px;
    padding: 8px 15px;
    border: 0;
    font-family: "circe";
    margin-bottom: 5px;
    margin-top: 5px;
}
.modal .callback-banner-l {
    margin-bottom: 5px;
}
.modal input[type="submit"]:hover {
    opacity: 0.8;
}
.modal input[type="submit"] {
    border-radius: 3px;
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 0;
    margin-bottom: 5px;
    margin-top: 5px;
    font-family: "circe";
    background: #000;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 15px;
}
.modal .input-wrap input {
    border-radius: 3px;
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 0;
    margin-bottom: 5px;
    margin-top: 5px;
    font-family: "circe";
}
.modal font.notetext {
    color: #dfdfdf;
}