/* Newsletter Popup - 2 Col Dark Theme */
.newsletter-overlay {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Black overlay */
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.newsletter-modal-split {
    background: #000;
    border: 1px solid #222;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    /* Mở rộng để ảnh banner ngang có đủ chỗ */
    position: relative;
    display: flex;
    align-items: stretch;
    /* 2 cột luôn cùng chiều cao */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.newsletter-modal-split .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    color: #fff;

    z-index: 10;
    transition: color 0.3s;
}

.newsletter-modal-split .close-btn:hover {
    color: #888;
}

.newsletter-modal-split .newsletter-image {
    flex: 0 0 55%;
    /* Ảnh banner ngang chiếm 55% chiều rộng modal */
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0d0000;
    /* Nền sát với màu viền ảnh để seamless */
}

.newsletter-modal-split .newsletter-image img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    /* Hiện toàn bộ ảnh, không crop */
    object-position: center;
    display: block;
}

.newsletter-modal-split .newsletter-content {
    flex: 1;
    /* Right column */
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.newsletter-modal-split .newsletter-content.no-image {
    align-items: center;
    text-align: center;
}

.newsletter-modal-split .newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.newsletter-modal-split .newsletter-subtitle {
    font-size: 15px;
    color: #aaa;
    /* Grayish subtitle */
    margin-bottom: 30px;
}

.newsletter-modal-split .test-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-modal-split input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 6px;
    border: 1px solid #333;
    /* Dark input borders */
    background: #1c1c1e;
    /* Dark input background */
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-modal-split input[type="email"]::placeholder {
    color: #666;
}

.newsletter-modal-split input[type="email"]:focus {
    border-color: #555;
}

.newsletter-modal-split .test-submit-btn {
    width: 100%;
    height: 50px;
    background: #fff;
    /* White button like in image */
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.newsletter-modal-split .test-submit-btn:hover {
    background: #ddd;
}

.newsletter-modal-split .test-submit-btn:active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    .newsletter-modal-split {
        flex-direction: column;
        /* Stack on mobile */
        max-width: 400px;
    }

    .newsletter-modal-split .newsletter-image {
        min-height: 250px;
    }

    .newsletter-modal-split .newsletter-content {
        padding: 0px 20px;
    }
    .newsletter-modal-split .close-btn{
        top: 5px;
        right: 5px;
    }
}

/* ===== Newsletter Notification Modal ===== */
.newsletter-notify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-notify-box {
    background: #fff;
    border-radius: 10px;
    padding: 40px 36px 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: notifyFadeIn 0.25s ease;
}

@keyframes notifyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.93);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.newsletter-notify-message {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    margin: 0 0 28px;
}

.newsletter-notify-ok {
    display: inline-block;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 48px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.newsletter-notify-ok:hover {
    background: #222;
}

.newsletter-notify-ok:active {
    transform: scale(0.97);
}