.overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    display: none;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(.5rem);
    z-index: 9999;
    padding: 0 20px
}

.overlay.active {
    display: flex;
}

.modal__close {
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
}

.modal__title {
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
}

.modal__icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    border-radius: 10px;
}

.modal__icon {
    width: 20px;
    object-fit: cover;
    height: 20px;
}

.overlay .modal__wrapper {
    position: absolute;
    background: url('../media/modal-bg.webp') center / cover no-repeat, var(--color-white);
    border: 1px solid #CFCFCF;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 100%;
    max-width: 586px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 40px;
    border-radius: 10px;
}

.modal__logo {
    width: 126px;
    height: 22px;
    object-fit: contain;
    margin-bottom: 28px;
}

.modal__subtitle {
    font-size: 24px;
    line-height: 28px;
}

.modal__form-wrapper {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 90%;
}

.modal__label {
    position: relative;
    width: max-content;
    margin: 0 auto 12px;
}

.modal__text {
    text-align: center;
    margin-bottom: 25px;
}

.modal__label::after {
    content: "*";
    color: var(--color-red);
    position: absolute;
    top: -2px;
    right: -8px;
}

.modal__button {
    margin-top: 30px;
}

.modal__success {
    display: none;
}

.modal__success-icon {
    display: flex;
    margin: 0 auto 10px;
}

.modal__success-title {
    text-align: center;
    margin-bottom: 28px;
}

.modal__success-text {
    text-align: center;
}

.modal__success-button {
    margin-top: 24px;
}

.modal__success-line {
    width: 100%;
    height: 2px;
    background-color: #B8C2D0;
    margin: 22px 0;
}

.modal__form.approved {
    display: none;
}

.modal__success.active {
    display: block;
}

@media screen and (max-width: 1141px) {
    .overlay .modal__wrapper {
        max-width: 90%;
        padding: 40px 24px;
    }

    .modal__form-wrapper {
        width: 100%;
    }
}