/* Floating Contact Button Styles */
.floating-contact-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-contact-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (min-width: 769px) {
    .floating-contact-wrap:hover .floating-contact-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.contact-item:hover .contact-label {
    opacity: 1;
    transform: translateX(0);
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    color: white;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Specific Colors */
.icon-hotline { background: #e01212; } /* Red for Hotline */
.icon-zalo { background: transparent; box-shadow: none; } /* Zalo SVG has its own colors */
.icon-facebook { background: #1877f2; } /* FB Blue */

.main-trigger {
    width: 56px;
    height: 56px;
    background: #1464f4; /* VinFast Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(20, 100, 244, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.main-trigger:hover {
    transform: rotate(90deg);
    background: #004dc5;
}

.main-trigger svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

/* Pulse Animation */
.pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(20, 100, 244, 0.4);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Staggered appearance */
@media (min-width: 769px) {
    .floating-contact-wrap:hover .contact-item:nth-child(1) { transition-delay: 0.05s; }
    .floating-contact-wrap:hover .contact-item:nth-child(2) { transition-delay: 0.1s; }
    .floating-contact-wrap:hover .contact-item:nth-child(3) { transition-delay: 0.15s; }
}
.floating-contact-wrap.active .contact-item:nth-child(1) { transition-delay: 0.05s; }
.floating-contact-wrap.active .contact-item:nth-child(2) { transition-delay: 0.1s; }
.floating-contact-wrap.active .contact-item:nth-child(3) { transition-delay: 0.15s; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-contact-wrap {
        bottom: 20px;
        right: 20px;
    }
    .contact-label {
        display: none; /* Hide labels on mobile to save space, or show them on tap */
    }
    /* On mobile, toggle on click */
    .floating-contact-wrap.active .floating-contact-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .floating-contact-wrap.active .main-trigger {
        transform: rotate(90deg);
        background: #004dc5;
    }
}
