.floating-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-button-wrapper {
    position: relative;
    animation: slideInRight 0.5s ease-out;
}

.contact-button-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-button-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-button-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-button-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::before {
    width: 100%;
    height: 100%;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-btn:active {
    transform: scale(0.95);
}

.messenger-btn {
    background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
}

.messenger-btn:hover {
    background: linear-gradient(135deg, #0073e6 0%, #00b3e6 100%);
}

.zalo-btn {
    background: linear-gradient(135deg, #0068ff 0%, #0095ff 100%);
    font-size: 14px;
    font-weight: 600;
}

.zalo-btn:hover {
    background: linear-gradient(135deg, #0055e6 0%, #0082e6 100%);
}

.zalo-text {
    position: relative;
    z-index: 1;
}

.phone-btn {
    background: linear-gradient(135deg, #00d9ff 0%, #00b8d4 100%);
}

.phone-btn:hover {
    background: linear-gradient(135deg, #00c6e6 0%, #00a5bb 100%);
}

.chat-btn {
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8fc4 100%);
}

.chat-btn:hover {
    background: linear-gradient(135deg, #4a8fc4 0%, #3a7fb4 100%);
}

.contact-btn i {
    position: relative;
    z-index: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.contact-btn.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .floating-contact-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .zalo-btn {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .floating-contact-buttons {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .contact-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .zalo-btn {
        font-size: 11px;
    }
}

.contact-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.contact-button-wrapper:hover .contact-tooltip {
    opacity: 1;
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@media print {
    .floating-contact-buttons {
        display: none !important;
    }
}
