﻿/* Giới hạn kích thước popup */
#promoModal .modal-dialog {
    max-width: 760px;
}

/* Hộp popup */
.promo-popup {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: none;
    animation: popupScale 0.25s ease-out;
}

/* Hiệu ứng mở popup */
@keyframes popupScale {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cột trái — dùng background để ảnh đẹp hơn */
.popup-left {
    background-size: cover;
    background-position: center;
  /*  min-height: 100%;*/
    min-height: 380px; /* Tăng chiều cao popup */
}

/* Nội dung bên phải */
/*.popup-right {
    background: #fff;
    padding: 35px 32px !important;
}*/
.popup-right {
    background: #fff;
    padding: 35px 32px !important;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa theo chiều dọc */
}

    /* Tiêu đề */
    .popup-right h3 {
        font-size: 28px;
        font-weight: 700;
    }

/* Nút đăng ký */
.btn-pink {
    background: #75460D;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.2s;
}

    .btn-pink:hover {
        background: #75460D;
        color: #fff;
    }

/* Nút đóng thu gọn */
/*.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    padding: 0;
    border: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    z-index: 9;
}*/
.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    backdrop-filter: blur(4px); /* làm mờ nền phía sau */

    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0;
    z-index: 999; /* đảm bảo nó nằm trên ảnh */

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive — mobile thành 1 cột */
@media (max-width: 768px) {
    #promoModal .modal-dialog {
        max-width: 90%;
    }

    .popup-left {
        height: 220px;
    }

    .promo-popup .row {
        display: block;
    }
}
