/**
 * Floating Contact Buttons (Zalo, Telegram, Phone)
 * Identical style to button-contact-vr
 */

#button-contact-vr {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

#gom-all-in-one {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.button-contact {
    position: relative;
    width: 48px;
    height: 48px;
}

.phone-vr {
    position: relative;
    width: 48px;
    height: 48px;
}

.phone-vr-circle-fill {
    width: 58px;
    height: 58px;
    top: -5px;
    left: -5px;
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0.7;
    animation: contact-pulse 1.8s infinite ease-in-out;
}

.phone-vr-img-circle {
    width: 48px;
    height: 48px;
    top: 0;
    left: 0;
    position: absolute;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.phone-vr-img-circle:hover {
    transform: scale(1.1);
}

.phone-vr-img-circle img {
    width: 32px;
    height: 32px;
}

/* Telegram */
#telegram-vr .phone-vr-circle-fill {
    background-color: rgba(36, 161, 222, 0.4);
}
#telegram-vr .phone-vr-img-circle {
    background-color: #24A1DE;
}

/* Zalo */
#zalo-vr .phone-vr-circle-fill {
    background-color: rgba(0, 104, 255, 0.4);
}
#zalo-vr .phone-vr-img-circle {
    background-color: #0068FF;
}

/* Phone / Hotline */
#phone-vr .phone-vr-circle-fill {
    background-color: rgba(210, 8, 8, 0.4);
}
#phone-vr .phone-vr-img-circle {
    background-color: #d20808;
    animation: contact-shake 1.5s infinite ease-in-out;
}

@keyframes contact-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes contact-shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

/* Back to Top button */
.btn-back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 42px;
    height: 42px;
    background: #02055a;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
    font-size: 18px;
    transition: background 0.2s, transform 0.2s;
}

.btn-back-to-top:hover {
    background: #d20808;
    transform: translateY(-2px);
}
