/**
 * ==========================================================================
 * CỤM NÚT LIÊN HỆ NỔI (HOTLINE & ZALO FLOATING BUTTONS)
 * ==========================================================================
 */

/* Container định vị góc dưới bên trái */
.pd-contact-floating {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
}

/* Base Style chung cho các nút liên hệ */
.pd-contact-btn {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    background: #ffffff;
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    max-width: fit-content;
}

.pd-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Text hiển thị cạnh icon */
.pd-btn-text {
    font-family: var(--font-body, 'Be Vietnam Pro', sans-serif);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
}

/* ==========================================
   STYLE NÚT ZALO
   ========================================== */
.pd-zalo {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
}

.pd-zalo-icon {
    width: 40px;
    height: 40px;
    background: #0068ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    z-index: 2;
}

.pd-zalo .pd-btn-text {
    color: #0068ff;
    font-weight: 700;
    font-size: 14px;
}

/* Hiệu ứng sóng nước lan tỏa cho Zalo */
.pd-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 2px solid #0068ff;
    animation: pd-zalo-wave 2s infinite ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes pd-zalo-wave {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1, 1.2);
        opacity: 0;
    }
}

/* ==========================================
   STYLE NÚT HOTLINE (TỰ ĐỘNG ĂN THEO BRAND PRIMARY)
   ========================================== */
.pd-hotline {
    background: #ffffff;
    border: 1px solid var(--brand-primary-border, rgba(0, 177, 106, 0.2));
}

.pd-hotline-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pd-phone-shake 1.2s infinite ease-in-out;
}

.pd-hotline-icon i {
    color: #ffffff;
    font-size: 20px;
}

.pd-hotline-sub {
    font-size: 10px;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.pd-hotline-main {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-primary-dark);
    line-height: 1;
}

/* Sóng rung nháy xung quanh vòng tròn Hotline */
.pd-hotline-ring {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    animation: pd-hotline-ring-expand 2s infinite ease-out;
    pointer-events: none;
    z-index: 0;
}

.pd-hotline-ring-delay {
    animation-delay: 0.6s;
}

/* Keyframes hiệu ứng rung lắc điện thoại */
@keyframes pd-phone-shake {
    0%   { transform: rotate(0); }
    10%  { transform: rotate(-15deg); }
    20%  { transform: rotate(15deg); }
    30%  { transform: rotate(-10deg); }
    40%  { transform: rotate(10deg); }
    50%  { transform: rotate(0); }
    100% { transform: rotate(0); }
}

@keyframes pd-hotline-ring-expand {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    60% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Đảm bảo hiển thị gọn gàng trên màn hình nhỏ di động */
@media (max-width: 480px) {
    .pd-contact-floating {
        bottom: 16px;
        left: 16px;
        gap: 12px;
    }

    .pd-contact-btn {
        padding: 4px;
    }

    .pd-btn-text {
        display: none;
    }

    .pd-hotline-ring {
        left: 4px;
        top: 4px;
    }
}
