/* Модальное окно */
.cf7-success-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
    z-index: 1000000;
}

/* Контент модального окна */
.cf7-modal-content {
    max-width: 507px;
    border-radius: 35px;
    background: #FFF;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.03);
    padding: 54px 60px 41px 60px;
    position: absolute;
    inset: 0;
    height: fit-content;
    margin: auto auto;
}

/* Кнопка закрытия */
.cf7-modal-close {
    position: absolute;
    width: 45px;
    height: 45px;
    right: -20px;
    top: -20px;
    font-size: 35px;
    background: #fff;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s linear;
}

.cf7-modal-close:hover,
.cf7-modal-close:focus {
    color: #000;
}

/* Иконка успеха */
.cf7-success-icon {
    color: #28a745;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Текст сообщения */
.cf7-modal-message {
    text-align: center;
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    color: #007BFB;
}

/*
.modal .modal_container {
    max-width: 507px;
    border-radius: 35px;
    background: #FFF;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.03);
    padding: 54px 60px 41px 60px;
    position: absolute;
    inset: 0;
    height: fit-content;
    margin: auto auto;
}
.modal .modal_container {
    max-width: 507px;
    border-radius: 35px;
    background: #FFF;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.03);
    padding: 54px 60px 41px 60px;
    position: absolute;
    inset: 0;
    height: fit-content;
    margin: auto auto;
}
    .modal .exit_modal {
    position: absolute;
    width: 45px;
    height: 45px;
    right: -20px;
    top: -20px;
    font-size: 35px;
    background: #fff;
    display: flex
;
    justify-content: center;
    border-radius: 50%;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s linear;
}
*/
/* Прогресс-бар автозакрытия */
.cf7-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 15px;
}

.cf7-progress-fill {
    height: 100%;
    background-color: #28a745;
    width: 100%;
    border-radius: 2px;
    animation: progressCountdown 10s linear forwards;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes progressCountdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    cf7-modal-content {
        padding: 34px 24px 21px 26px;
        border-radius: 20px;
        max-width: 507px;
        border-radius: 20px;
        background: #FFF;
        box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.03);
        position: absolute;
        inset: 0;
        height: fit-content;
        margin: auto auto;
    }
}

@media (max-width: 768px) {
    .cf7-success-modal {
        height: 100%;
        min-height: 100dvh;
    }
}

@media (max-width: 556px) {
    .cf7-modal-close {
        top: 5px;
        right: 10px;
        width: fit-content;
        height: fit-content;
    }

    .cf7-modal-content {
        padding: 34px 26px 21px 26px;
        border-radius: 20px;
    }
}