/* Floating Contact Button - Modern & Professional */
.floating-contact {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 56px !important;
    height: 56px !important;
    background: #2563eb !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
}

.floating-contact:hover {
    background: #1e40af !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5) !important;
}

.floating-contact i {
    font-size: 24px !important;
    color: #ffffff !important;
    transition: transform 0.3s ease !important;
}

.floating-contact.active {
    background: #1e40af !important;
    transform: rotate(90deg) !important;
}

.floating-contact.active i {
    transform: rotate(-90deg) !important;
}

/* Contact Menu - Modern & Professional */
.contact-menu {
    position: fixed;
    bottom: 180px;
    right: -320px;
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    border: 1px solid #e5e7eb;
    transform: translateX(0) scale(0.9);
}

.contact-menu.active {
    right: 30px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    animation: slideInBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInBounce {
    0% {
        transform: translateX(50px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.05);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.contact-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.contact-menu-header h3 {
    color: #111827;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-menu {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-menu:hover {
    background: #f3f4f6;
    color: #111827;
    transform: rotate(90deg);
}

.contact-menu-items {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInSlide 0.4s ease forwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item:hover {
    background: #f9fafb;
    border-color: #2563eb;
    transform: translateX(-4px) scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-icon {
    background: #eff6ff;
}

.contact-icon i {
    font-size: 20px;
    color: #2563eb;
}

.contact-item:nth-child(1) .contact-icon i {
    color: #1877f2; /* Facebook blue */
}

.contact-item:nth-child(2) .contact-icon i {
    color: #0068ff; /* Zalo blue */
}

.contact-item:nth-child(3) .contact-icon i {
    color: #0068ff; /* Zalo group blue */
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h4 {
    color: #111827;
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.contact-info p {
    color: #6b7280;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.arrow-icon {
    color: #9ca3af;
    font-size: 14px;
    margin-left: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.contact-item:hover .arrow-icon {
    color: #2563eb;
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px !important;
        right: 20px !important;
        width: 52px !important;
        height: 52px !important;
    }
    
    .contact-menu {
        width: calc(100vw - 40px);
        max-width: 320px;
        bottom: 160px;
    }
    
    .contact-menu.active {
        right: 20px;
    }
}
