/* --- PHẦN DÀNH CHO MÁY TÍNH (PC) - GIỮ NGUYÊN THÔNG SỐ CHUẨN --- */
.contact-hotline {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.contact-hotline-item {
    margin-bottom: 15px;
    position: relative;
    display: block;
}

.contact-hotline-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.contact-hotline-item .pulse-container {
    width: 50px;
    height: 50px;
    background: #ea580c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    animation: pulse-orange 2s infinite;
}

.animation-ring {
    width: 25px;
    height: 25px;
    color: white;
    animation: ring-shake 0.5s infinite ease-in-out;
}

.contact-hotline-item .tooltip {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #ea580c;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    display: none;
}

.contact-hotline-item:hover .tooltip {
    display: block;
}

.contact-hotline-item p {
    margin: 0 0 0 10px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    display: none;
}

.contact-hotline-item:hover p {
    display: block;
}

/* Màu PC riêng biệt */
.contact-hotline-item.zalo .pulse-container { background: #2962ff; animation: pulse-blue 2s infinite; }
.contact-hotline-item.map .pulse-container, 
.contact-hotline-item.top .pulse-container { background: #334155; animation: none; }

/* --- PHẦN DÀNH CHO ĐIỆN THOẠI (MOBILE BOTTOM NAVIGATION) --- */
@media (max-width: 768px) {
    .contact-hotline {
        left: 0;
        bottom: 0;
        width: 100%;
        background: #ffffff; /* Nền trắng như hình bạn gửi */
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    .contact-hotline-item {
        margin-bottom: 0;
        flex: 1;
        border-right: 1px solid #eee; /* Kẻ vạch ngăn cách */
    }
    
    .contact-hotline-item:last-child { border-right: none; }

    .contact-hotline-item a {
        flex-direction: column; /* Icon trên, chữ dưới */
        justify-content: center;
    }

    .contact-hotline-item .pulse-container {
        width: 30px; /* Nhỏ lại để vừa thanh dưới */
        height: 30px;
        background: transparent !important; /* Bỏ nền tròn trên mobile */
        box-shadow: none !important;
        animation: none !important;
        margin-bottom: 3px;
    }

    .animation-ring, .contact-hotline-item svg {
        width: 24px;
        height: 24px;
        color: #ea580c !important; /* Icon màu cam */
        animation: none !important;
    }
    
    /* Chỉnh màu icon Zalo riêng trên Mobile */
    .contact-hotline-item.zalo svg { color: #2962ff !important; }

    .contact-hotline-item p {
        display: block !important; /* Hiện chữ dưới icon */
        background: transparent !important;
        border: none !important;
        color: #333 !important; /* Chữ màu tối cho dễ đọc */
        font-size: 10px !important;
        margin-left: 0 !important;
        padding: 0 !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .contact-hotline-item .tooltip { display: none !important; } /* Tắt số điện thoại bung ra trên mobile */
}

/* Animations giữ nguyên cho PC */
@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(234, 88, 12, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}
@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(41, 98, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(41, 98, 255, 0); }
}
@keyframes ring-shake {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-15deg); }
    40%, 80% { transform: rotate(15deg); }
}