.modal__wrapper {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal__wrapper.modal--active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    width: 80%;
    max-width: 647px;
    position: relative;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal__wrapper.modal--active .modal__content {
    transform: scale(1);
}

.modal__body {
    margin-bottom: 40px;
}

.modal__body h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 16px;
}

.modal__body p {
    font-size: 19px;
    line-height: 19px;
    font-weight: 700;
}

.modal__button {
    display: inline-block;
    padding: 20px 71px;
    border: 3px solid #FF3E24;
    background-color: #FF3E24;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 13px;
    letter-spacing: 2.6px;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.modal__button:hover {
    background-color: transparent;
    color: #FF3E24;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    user-select: none;
}

.modal__close::before,
.modal__close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 24px;
    background-color: #E5E5E5;
    transform-origin: center;
    transition: background-color 0.2s;
}

.modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__close:hover::before,
.modal__close:hover::after {
    background-color: #FF3E24;
}

.google-form iframe {
    width: 100%;
    height: 1030px;
}

.single-post .google-form iframe {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .google-form iframe {
        height: 1030px;
    }
}

@media (max-width: 480px) {
    .google-form iframe {
        height: 1160px;
    }
}

/* Медиа-запросы */
@media (max-width: 769px) {
    .modal__content {
        max-width: 464px;
    }

    .modal__body h2 {
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 16px;
    }

    .modal__body p {
        font-size: 16px;
        line-height: 16px;
    }

    .modal__button {
        display: block;
        padding: 20px 0;
        width: 100%;
    }
}

@media (max-width: 625px) {
    .modal__content {
        margin: 10% 5%;
        width: auto;
        padding: 24px;
        max-width: none;
    }
}

@media (max-width: 376px) {
    .modal__body {
        font-weight: 700;
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 24px;
    }

    .modal__body h2 {
        font-size: 18px;
        line-height: 18px;
        margin-bottom: 12px;
    }

    .modal__body p {
        font-size: 14px;
        line-height: 14px;
    }

    .modal__close {
        width: 16px;
        height: 16px;
        top: 16px;
        right: 16px;
    }
}
