/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 1000;
}

.floating-contact__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 52px;
    padding: 0 1.25rem;
    border-radius: 999px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.22);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    will-change: transform;
}

.floating-contact__button:hover {
    transform: scale(1.05);
}

.floating-contact__button:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.28);
    outline-offset: 5px;
    transform: scale(1.05);
}

.floating-contact__button--phone {
    gap: 0.55rem;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.floating-contact__button--phone::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid currentColor;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(135deg);
}

.floating-contact__button--phone::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #22c55e;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.floating-contact__button--zalo {
    background-color: var(--color-brand-primary);
}

@media (max-width: 767px) {
    .floating-contact {
        right: var(--spacing-md);
        bottom: var(--spacing-md);
    }

    .floating-contact__button {
        width: 56px;
        min-width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
    }

    .floating-contact__button--phone {
        gap: 0;
    }

    .floating-contact__button--phone::after {
        display: none;
    }
}

@media (min-width: 768px) {
    .floating-contact__button {
        min-width: 132px;
        min-height: 64px;
        padding: 0 1.65rem;
        font-size: 1rem;
        font-weight: 800;
        box-shadow: 0 0 0 16px rgba(34, 197, 94, 0.12), 0 16px 34px rgba(22, 163, 74, 0.24);
    }

    .floating-contact__button--phone {
        z-index: 0;
    }

    .floating-contact__button--phone::after {
        animation: floating-call-pulse 3.6s ease-in-out infinite;
        will-change: transform, opacity;
    }
}

@keyframes floating-call-pulse {
    0%,
    72%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    82% {
        transform: scale(1.18);
        opacity: 0.18;
    }

    92% {
        transform: scale(1.32);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contact__button {
        transition: none;
    }

    .floating-contact__button:hover,
    .floating-contact__button:focus-visible {
        transform: none;
    }

    .floating-contact__button--phone::after {
        animation: none;
        will-change: auto;
    }
}
