.float-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Hiệu ứng rung lắc */
@keyframes shake {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(-5deg); }
    60% { transform: rotate(5deg); }
    100% { transform: rotate(0); }
}

/* Style chung cho nút */
.phone-btn, .zalo-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 30px;
    transition: transform 0.3s ease-in-out;
}

/* Thêm hiệu ứng động cho icon điện thoại */
.phone-btn i {
    animation: shake 1.5s infinite alternate ease-in-out;
    display: inline-block;
}

.phone-btn img, .zalo-btn img {
    width: 40px;
    height: 40px;
    margin: 5px;
}

@media (max-width: 768px) {
    .float-contact {
        left: 10px;
        bottom: 10px;
    }
    .phone-btn, .zalo-btn {
        width: 40px;
        height: 40px;
    }
    .phone-btn img, .zalo-btn img {
        width: 30px;
        height: 30px;
    }
}


.contact-buttons a {
    display: block;
    text-align: center;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #25D366; /* Màu nền mặc định cho WhatsApp */
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-buttons a.phone-btn {
    background-color: #34B7F1; /* Màu nền cho nút điện thoại */
}

.contact-buttons a.zalo-btn {
    background-color: #0088CC; /* Màu nền cho Zalo */
}

.contact-buttons a.wechat-btn {
    background-color: #09B83E; /* Màu nền cho WeChat */
}

.contact-buttons a.telegram-btn {
    background-color: #0088CC; /* Màu nền cho Telegram */
}

.contact-buttons a.instagram-btn {
    background-color: #E4405F; /* Màu nền cho Instagram */
}

.contact-buttons a.whatsapp-btn {
    background-color: #25D366; /* Màu nền cho WhatsApp */
}

.contact-buttons a:hover {
    opacity: 0.8;
}