/* ===== FLOATING CTA BUTTONS ===== */

.form_cta {
    position: fixed;
    right: 5px;
    bottom: 125px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Ẩn ban đầu, sẽ được hiện bằng JavaScript */
    opacity: 0;
    visibility: hidden;
}

.form_cta-item {
    position: relative;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-button i {
    font-size: 26px;
    color: #051936;
}

.cta-zalo {
    width: 55px !important;
    height: 55px !important;
}

.cta-zalo iframe {
    bottom: 18px !important;
    right: -45px !important;
    width: 55px !important;
    height: 55px !important;
}

.phone-button {
    background: linear-gradient(66deg,
            rgba(160, 123, 103, 1) 0%,
            rgba(248, 212, 177, 1) 76%,
            rgba(199, 162, 136, 1) 100%);
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

.messenger-button .cta-icon {
    width: 60px !important;
    height: 60px;
}

.cta-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
    transform: scale(1.1);
}

/* Specific button styles */
/* .phone-button {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    animation: pulse-phone 2s infinite;
}

.messenger-button {
    background: linear-gradient(135deg, #0084ff, #44a3ff);
}

.zalo-button {
    background: linear-gradient(135deg, #0068ff, #2c8bff);
} */

/* Tooltips */
.cta-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cta-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.cta-button:hover .cta-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Animations */
@keyframes pulse-phone {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) translateY(-5px);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.form_cta-item {
    animation: bounce-in 0.6s ease forwards;
}

.form_cta-item:nth-child(1) {
    animation-delay: 0.1s;
}

.form_cta-item:nth-child(2) {
    animation-delay: 0.2s;
}

.form_cta-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cta-button i {
        font-size: 22px;
    }

    .cta-button {
        width: 55px;
        height: 55px;
    }

    .phone-button {
        width: 50px;
        height: 50px;
    }

    .cta-icon {
        width: 40px;
        height: 40px;
    }

    .form_cta {
        position: fixed;
        right: 6px;
        bottom: 128px;
        gap: 8px;
    }

    .cta-zalo iframe {
        bottom: 18px !important;
        right: -50px !important;
        width: 55px !important;
        height: 55px !important;
    }
}

@media (max-width: 480px) {}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cta-tooltip {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }

    .cta-tooltip::after {
        border-left-color: rgba(255, 255, 255, 0.9);
    }
}