/* 1. ANIMATIONS */
@keyframes ringing {
    0% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-15deg) scale(1.1); }
    30% { transform: rotate(15deg) scale(1.1); }
    45% { transform: rotate(-15deg) scale(1.1); }
    60% { transform: rotate(15deg) scale(1.1); }
    75% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.4); }
    70% { box-shadow: 0 0 0 25px rgba(0, 104, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. NÚT CALL CHÍNH */
.simple-call-button {
    background: #0068FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    position: fixed !important;
    bottom: 45px !important;
    right: 15px !important; /* Chỉnh lại một chút cho đẹp */
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    padding: 0 !important;
    animation: ringing 2s ease-in-out infinite, pulse 1.5s infinite !important;
    pointer-events: auto !important;
}

.simple-call-button:hover {
    background: #0051CC !important;
}

/* Đảm bảo ảnh icon không chặn click */
.simple-call-icon-img {
    width: 32px !important;
    height: 32px !important;
    pointer-events: none !important;
    display: block !important;
}

/* 3. KHUNG CHỨA THÔNG TIN (CONTAINER) */
.simple-call-container {
    width: 320px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
    display: none !important; /* Mặc định ẩn */
    position: fixed !important;
    bottom: 110px !important;
    right: 20px !important;
    z-index: 999998 !important;
}

/* TRẠNG THÁI KHI CLICK (ACTIVE) */
.simple-call-container.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeInUp 0.3s ease !important;
}

/* 4. CHI TIẾT BÊN TRONG */
.simple-section { border-top: 1px solid #e5e7eb !important; }
.simple-section:first-child { border-top: none !important; }

.simple-header {
    background: #3b82f6 !important;
    color: #ffffff !important;
    padding: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.simple-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9fafb;
}

.simple-content.active {
    max-height: 500px !important;
    overflow-y: auto !important;
}

.simple-card {
    background: #fff !important;
    margin: 10px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    border-left: 4px solid #3b82f6 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

.simple-info strong { font-size: 15px !important; color: #1f2937 !important; }
.simple-info p { margin: 5px 0 !important; font-size: 14px !important; }
.simple-info a { text-decoration: none !important; color: inherit !important; font-weight: bold !important; }

/* 5. RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .simple-call-button {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 10px !important;
    }
    .simple-call-container {
        width: 85% !important;
        right: 7.5% !important;
        bottom: 85px !important;
    }
}