/* ========== POPUP OVERLAY ========== */
.vinfast-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.vinfast-popup-overlay.active {
    display: flex;
}

/* ========== POPUP CONTENT ========== */
.vinfast-popup-content {
    display: flex;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.vinfast-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.vinfast-popup-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* ========== LEFT SIDE (Image) ========== */
.popup-left {
    width: 45%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.popup-banxe .popup-left {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.popup-muaxe .popup-left {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ========== RIGHT SIDE (Form) ========== */
.popup-right {
    width: 55%;
    padding: 40px 35px;
    background: #fff;
    overflow-y: auto;
}

.popup-right h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* ========== FORM STYLES ========== */
.vinfast-popup-content input[type="text"],
.vinfast-popup-content input[type="tel"],
.vinfast-popup-content input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.vinfast-popup-content input:focus {
    border-color: #e31837;
}

/* ========== CHECKBOX GROUP ========== */
.chon-loai-xe {
    margin-bottom: 16px;
}

.chon-loai-xe > label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e31837;
    cursor: pointer;
}

/* ========== BUTTON ========== */
.btn-dangky {
    width: 100%;
    padding: 16px;
    background: #e31837;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.btn-dangky:hover {
    background: #c10e2e;
    transform: translateY(-1px);
}

.btn-dangky span {
    margin-left: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .vinfast-popup-content {
        flex-direction: column;
        max-height: 95vh;
    }

    .popup-left {
        width: 100%;
        min-height: 150px;
    }

    .popup-right {
        width: 100%;
        padding: 25px 20px;
    }

    .popup-right h2 {
        font-size: 22px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
