/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* Floating Contact Tooltip */
.contact-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
}

.contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    /* Position to the left of the button */
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
}

/* Little triangle pointing to the button */
.contact-btn::after {
    content: '';
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.contact-btn:hover::before,
.contact-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.zalo-btn {
    background: transparent;
    animation: pulse-zalo 2s infinite;
}

.zalo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.phone-btn {
    background: #44bd32;
    /* Call Green */
    animation: pulse 2s infinite;
}

@media (max-width: 576px) {
    .floating-contact {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .contact-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .contact-btn::before,
    .contact-btn::after {
        display: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(68, 189, 50, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(68, 189, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(68, 189, 50, 0);
    }
}

@keyframes pulse-zalo {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 104, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
    }
}