/* Стили для модального окна */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 1200px;
    height: 703px;
    overflow: hidden;
    display: flex;
    background-size: cover;
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: #ff4c4c;
    transform: rotate(90deg);
}

.popup-content2 {
    width:100%;
    padding: 4vw 0 0 5vw;
    background-repeat: no-repeat;
    background-position: right bottom;
}
.popup-text {
    max-width: 48%;
}
.popup-title {
    color: #EE7219;
    font: bold 40px HelveticaNeueCyr;
}
.popup-subtitle, .popup-description1 {
    margin-top:17px;
    color: #646565;
    font: 28px HelveticaNeueCyr;
}
.popup-description2 {
    margin-top:17px;
    color:#646565;
    font: 28px HelveticaNeueCyr;
}


/* Форма */
.popup-content .form-item {
    max-width:320px;
}
.popup-content .form-item._checkbox {
    max-width: none;
}
.popup-content .form-item input[type=email],
.popup-content .form-item input[type=password],
.popup-content .form-item input[type=tel],
.popup-content .form-item input[type=text] {
    height:3.8rem;
    border-radius: 2rem;
}
.popup-content .form-item__label {
    font-size:1.2rem;
    line-height: 4rem;
}
.popup-content .form-submit .btn-arrow._color-green-inverse {
    background-color: #EE7219;
    width:320px;
    text-align: center;
    height:3.8rem;
}
.popup-content .btn-arrow {
    justify-content:center;
    font-size: 1.2rem;
}
.popup-content .btn-arrow:after {
    display: none;
}

/* Для очень маленьких экранов */
@media (max-width: 980px) {
    .popup-close-btn {
        top:2px;
        right:2px;
        height:30px;
        width:30px;
        font-size: 20px;
    }
    .popup-content {
        width: 320px;
        height: 627px;
    }
    .popup-content2 {
        width:100%;
        padding: 16px;
        background-position: center 150px;
    }
    .popup-text {
        max-width: none;
        margin-top:10px;
    }
    .popup-title {
        color: #EE7219;
        font: 24px HelveticaNeueCyr;
        text-align: center;
    }
    .popup-subtitle {
        margin-bottom:180px;
        margin-top: 0;
    }
    .popup-subtitle, .popup-description1 {
        margin-top:5px;
        color: #646565;
        font: 17px HelveticaNeueCyr;
        text-align: center;
    }
    .popup-description2 {
        margin-top:17px;
        color:#646565;
        font: 17px HelveticaNeueCyr;
    }
    .popup-content .form-item {
        margin-bottom: 0.9rem;
    }
    .popup-content .form-submit {
        margin-top:0;
    }
    .popup-content .form-submit .btn-arrow._color-green-inverse {
        width:100%;
        height:2.6rem;
    }
    .popup-content .form-item input[type=email],
    .popup-content .form-item input[type=password],
    .popup-content .form-item input[type=tel],
    .popup-content .form-item input[type=text] {
        height:2.6rem;
        border-radius: 1rem;
    }
    .popup-content .form-item__label {
        font-size:0.8rem;
        line-height: 3rem;
    }
    .popup-content .form-item__error {
        font-size: .75rem;
        line-height: 0.8rem;
    }
    .popup-content .form-item input[type=checkbox] + label,
    .popup-content .form-item input[type=radio] + label {
        font-size: .75rem;
        line-height: 0.9rem;
    }
    .popup-content .form-note {
        font-size: .75rem;
        line-height: 0.9rem;
    }
}

@media (max-width: 372px) {
    .popup-overlay {
        padding: 0;
    }
    .popup-content2 {
        padding: 8px;
        background-position: center 138px;
    }
    .popup-text {
        margin-top: 20px;
    }
    .popup-subtitle {
        margin-bottom: 176px;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-content {
    animation: fadeIn 0.5s ease-out forwards;
}

