/* newsletter_modal.css */

/* Модальное окно */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    background: white;
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
}

.newsletter-modal-overlay.show .newsletter-modal {
    transform: scale(1);
}

/* Левая часть с изображением */
.newsletter-modal-left {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.newsletter-modal-image {
    width: 100%;
    height: 100%;
    margin-top: 0px;
}

.discount-circle {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Правая часть с контентом */
.newsletter-modal-right {
    flex: 1;
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 300;
}

.newsletter-modal-close:hover {
    color: #333;
}

.newsletter-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.newsletter-modal-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.newsletter-modal-text {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

.newsletter-modal-offer {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.newsletter-modal-info {
    font: caption;
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

/* Форма */
.newsletter-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#newsletter-modal-email {
    height: 50px;
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
    border-radius: 0;
}

.newsletter-modal-input:focus {
    outline: none;
    border-color: #ccc;
}

.newsletter-modal-input::placeholder {
    color: #bbb;
    font-weight: 300;
}

.newsletter-modal-btn {
    background: #003765;
    color: white;
    padding: 16px 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
}

.newsletter-modal-btn:hover {
    opacity: 0.9;
}

.newsletter-modal-disclaimer {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
    line-height: 1.4;
    text-align: left;
}

/* Адаптивность */
@media (max-width: 480px) {
    .newsletter-modal {
        flex-direction: column;
        max-width: 98%;
        max-height: 95vh;
        height: 85vh;
        position: relative;
        margin: 10px;
    }

    .newsletter-modal-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
    }
    
    .newsletter-modal-image {
        width: 100%;
        height: 90%;
    }

    .discount-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
        top: 15px;
        left: 15px;
        z-index: 3;
    }

    .newsletter-modal-right {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .newsletter-modal-close {
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 4;
        color: #333;
        font-size: 24px;
    }

    .newsletter-modal-title {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .newsletter-modal-subtitle {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .newsletter-modal-text {
        font-size: 10px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .newsletter-modal-offer {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .newsletter-modal-form {
        gap: 8px;
    }
    
    .newsletter-modal-input {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .newsletter-modal-btn {
        padding: 10px 12px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .newsletter-modal-disclaimer {
        font-size: 9px;
        margin-top: 5px;
        line-height: 1.2;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .newsletter-modal {
        max-width: 85%;
    }
    
    .newsletter-modal-left {
        min-height: 350px;
    }

    .discount-circle {
        width: 60px;
        height: 60px;
        font-size: 18px;
        top: 20px;
        left: 20px;
    }

    .newsletter-modal-right {
        padding: 25px 20px;
    }

    .newsletter-modal-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .newsletter-modal-subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .newsletter-modal-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .newsletter-modal-offer {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .newsletter-modal-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .newsletter-modal-btn {
        padding: 14px 16px;
        font-size: 13px;
        font-weight: 600;
    }
    
    .newsletter-modal-disclaimer {
        font-size: 11px;
        margin-top: 8px;
    }
}

/* Успешная подписка */
.newsletter-success {
    text-align: center;
    padding: 40px;
}

.newsletter-success h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 24px;
}

.newsletter-success p {
    color: #666;
    font-size: 16px;
}