/* ===================================
   FLOATING CONTACT
=================================== */

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-btn {
    position: relative;
    display: flex;
    min-width: 54px;
    height: 54px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: var(--white);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(11, 39, 69, 0.22);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

.floating-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(11, 39, 69, 0.3);
}

.floating-phone {
    background: #e53935;
}

.floating-zalo {
    background: #0068ff;
}

.floating-top {
    display: none;
    background: var(--primary);
}

.floating-top.show {
    display: flex;
}

.floating-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.floating-label {
    white-space: nowrap;
}

/* Hiệu ứng nhẹ cho nút gọi */

.floating-phone::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;

    border: 2px solid rgba(229, 57, 53, 0.4);
    border-radius: inherit;

    animation: phonePulse 1.8s infinite;
}

@keyframes phonePulse {
    0% {
        opacity: 0.8;
        transform: scale(0.9);
    }

    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

@media (max-width: 600px) {
    .floating-contact {
        right: 14px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }

    .floating-label {
        display: none;
    }
}