.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

.floating-contact .contact-toggle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3aa3f6, #0b8cf2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(58, 163, 246, 0.4);
    transition: all 0.3s ease;
    color: white;
    font-size: 1.8rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-contact .contact-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(58, 163, 246, 0.6);
    background: linear-gradient(135deg, #52aef7, #3aa3f6);
}

.floating-contact .contact-toggle.active {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.6);
}

.floating-contact .contact-menu {
    position: absolute;
    bottom: 90px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-contact .contact-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-contact .contact-menu .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 160px;
    font-weight: 600;
    border: 2px solid transparent;
}

.floating-contact .contact-menu .contact-item:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    border-color: rgba(58, 163, 246, 0.2);
}

.floating-contact .contact-menu .contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-contact .contact-menu .contact-item span {
    font-size: 0.95rem;
    font-weight: 600;
}

.floating-contact .contact-menu .contact-item.hotline i {
    background: #28a745;
}

.floating-contact .contact-menu .contact-item.hotline:hover {
    color: #28a745;
}

.floating-contact .contact-menu .contact-item.zalo i {
    background: #0068ff;
}

.floating-contact .contact-menu .contact-item.zalo:hover {
    color: #0068ff;
}

.floating-contact .contact-menu .contact-item.messenger i {
    background: #0084ff;
}

.floating-contact .contact-menu .contact-item.messenger:hover {
    color: #0084ff;
}

.floating-contact .contact-menu .contact-item.email i {
    background: #ffc107;
}

.floating-contact .contact-menu .contact-item.email:hover {
    color: #ffc107;
}

.floating-contact .contact-toggle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid #3aa3f6;
    animation: enhancedPulse 2.5s infinite;
    opacity: 0;
}

@keyframes enhancedPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.floating-contact .contact-toggle {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 90px;
        right: 1rem;
    }

    .floating-contact .contact-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .floating-contact .contact-menu {
        bottom: 80px;
        right: -10px;
    }

    .floating-contact .contact-menu .contact-item {
        min-width: 140px;
        padding: 0.8rem 1rem;
    }

    .floating-contact .contact-menu .contact-item i {
        width: 35px;
        height: 35px;
    }
}

.floating-contact .contact-menu .contact-item {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.floating-contact .contact-menu .contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-contact .contact-menu .contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-contact .contact-menu .contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

.floating-contact .contact-menu .contact-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
