:root {
    --gold: #fec435;
    --zalo: #0068ff;
    --phone: #4caf50;
    --fb: #0084ff;
}

/* Container sát đáy bên trái */
.bottom-support-container {
    position: fixed;
    bottom: 0; /* Sát đáy màn hình */
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

/* Nút kích hoạt chính */
.trigger-btn {
    width: 70px;
    height: 60px; /* Chiều cao thấp hơn để cảm giác sát đáy */
    background: var(--gold);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0; /* Chỉ bo góc trên */
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    position: relative;
    z-index: 10;
}

.trigger-btn i { font-size: 22px; }
.trigger-btn .txt { font-size: 10px; font-weight: bold; margin-top: 3px; }

/* Nhóm icon hỗ trợ ẩn dưới đáy */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    /* Hiệu ứng ẩn mặc định dưới đáy */
    transform: translateY(250px); 
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Kiểu dáng icon con */
.s-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.s-item:hover { transform: scale(1.15); }
.zalo { background: var(--zalo); font-size: 13px; font-weight: bold; }
.phone { 
	
	background: var(--phone); }
.fb { background: var(--fb); }

/* --- KHI KÍCH HOẠT (ACTIVE) --- */
.bottom-support-container.active .support-content {
    transform: translateY(0); /* Bay ngược lên trên */
    opacity: 1;
    visibility: visible;
}

/* Đổi màu nút chính khi mở */
.bottom-support-container.active .trigger-btn {
    background: #333;
}

/* Hiệu ứng nhịp tim cho nút Gọi */
.phone {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
:root {
    --popup-gold: #fec435;
    --popup-dark: #333;
    --popup-bg: #ffffff;
}

.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trạng thái hiển thị */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--popup-bg);
    width: 95%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transform: scale(0.7);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.show .popup-container {
    transform: scale(1);
}

.close-x {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 35px;
    color: #999;
    background: none; border: none;
    cursor: pointer; z-index: 10;
    line-height: 1;
}

.popup-content {
    display: flex;
    flex-wrap: wrap;
}

.popup-col {
    flex: 1;
    padding: 45px;
    min-width: 300px;
}

/* Cột Form */
.col-form { background: #fff; }
.popup-title { font-size: 22px; font-weight: bold; margin-bottom: 10px; color: var(--popup-dark); }
.popup-desc { font-size: 14px; color: #777; margin-bottom: 25px; }

.input-group { margin-bottom: 15px; }
.input-group input {
    width: 100%; padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 8px; outline: none;
    transition: 0.3s;
}
.input-group input:focus { border-color: var(--popup-gold); }

.btn-submit {
    width: 100%; padding: 15px;
    background: var(--popup-gold);
    color: #fff; border: none;
    border-radius: 8px; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: #ab8a4a; }

/* Cột PDF */
.col-pdf { background: #f8f9fa; border-left: 1px solid #eee; }
.pdf-list { margin-top: 20px; }
.pdf-link {
    display: flex; align-items: center;
    padding: 12px 15px; background: #fff;
    margin-bottom: 12px; border-radius: 10px;
    text-decoration: none; color: #333;
    border: 1px solid #efefef; transition: 0.3s;
}
.pdf-link i { color: #e74c3c; font-size: 20px; margin-right: 12px; }
.pdf-link span { font-size: 14px; font-weight: 500; }
.pdf-link:hover { transform: translateX(8px); border-color: var(--popup-gold); }

/* Custom Checkbox */
.dont-show-wrapper { margin-top: 25px; padding-top: 15px; }
.chk-container {
    display: flex; align-items: center;
    position: relative; padding-left: 30px;
    cursor: pointer; font-size: 13px; color: #888;
}
.chk-container input { position: absolute; opacity: 0; cursor: pointer; }
.checkmark {
    position: absolute; left: 0;
    height: 18px; width: 18px;
    background-color: #ddd; border-radius: 4px;
}
.chk-container input:checked ~ .checkmark { background-color: var(--popup-gold); }
.checkmark:after {
    content: ""; position: absolute; display: none;
    left: 6px; top: 2px; width: 4px; height: 9px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.chk-container input:checked ~ .checkmark:after { display: block; }

/* Mobile */
@media (max-width: 768px) {
    .popup-col { padding: 30px 20px; }
    .col-pdf { border-left: none; border-top: 1px solid #eee; }
}
:root {
    --primary: #fec435;
    --dark: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }

/* POPUP OVERLAY */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-container {
    background: #fff; width: 95%; max-width: 800px;
    border-radius: 15px; position: relative; overflow: hidden;
    transform: translateY(30px); transition: 0.5s ease;
}

.popup-overlay.active .popup-container { transform: translateY(0); }

.close-x {
    position: absolute; top: 10px; right: 15px; font-size: 35px;
    background: none; border: none; cursor: pointer; color: #999; z-index: 10;
}

.popup-content { display: flex; flex-wrap: wrap; }
.popup-col { flex: 1; padding: 40px; min-width: 300px; }

/* FORM COLUMN */
.col-form h3 { color: var(--primary); margin-bottom: 10px; }
.col-form p { font-size: 13px; color: #777; margin-bottom: 20px; }
.input-group { margin-bottom: 15px; }
.input-group input {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; outline: none;
}
.btn-submit {
    width: 100%; padding: 12px; background: var(--primary);
    color: #fff; border: none; border-radius: 5px; font-weight: bold; cursor: pointer;
}

/* PDF COLUMN */
.col-pdf { background: #f8f9fa; border-left: 1px solid #eee; }
.pdf-item {
    display: flex; align-items: center; padding: 12px; background: #fff;
    margin-bottom: 10px; border-radius: 5px; text-decoration: none; color: #333;
    border: 1px solid #eee; transition: 0.3s;
}
.pdf-item i { color: #e74c3c; margin-right: 12px; font-size: 20px; }
.pdf-item:hover { border-color: var(--primary); transform: translateX(5px); }

/* CHECKBOX CUSTOM */
.dont-show-wrapper { margin-top: 25px; padding-top: 15px; }
.chk-container { display: flex; align-items: center; cursor: pointer; font-size: 13px; color: #888; }
.chk-container input { margin-right: 10px; }

@media (max-width: 600px) { .popup-col { padding: 20px; } }
