/*css bictweb.vn*/



/* 1. KEYFRAME ANIMATION CHO HIỆU ỨNG RUNG LẮC (RINGING) */

@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);

    }

}



/* 2. KEYFRAME ANIMATION CHO HIỆU ỨNG TỎA SÁNG/SÓNG LAN (PULSE) */

@keyframes pulse {

    0% {

        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); /* Màu nền đỏ */

    }

    70% {

        box-shadow: 0 0 0 25px rgba(220, 38, 38, 0);

    }

    100% {

        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);

    }

}



/* 3. CẬP NHẬT CLASS CHÍNH */

.simple-call-button {

    background: #0068FF;

    color: #fff;

    border: none;

    border-radius: 50%;

    width: 50px;

    height: 50px;

    position: fixed;

    bottom: 45px;

    right: -5px;

    font-size: 20px;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    display: flex;

    justify-content: center;

    align-items: center;

    
    transition: background 0.3s ease; 
    animation: 
        ringing 2s ease-in-out infinite, 
        pulse 0.8s infinite;            
        
    animation-delay: 0s, 0.5s; 


    z-index: 10000;

    padding: 0;

    line-height: 1;

}


.simple-call-button:hover {

    background: #0051CC;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);

}


/* * KHỐI GHI ĐÈ ICON GỐC */
.simple-call-button::before {
    content: "" !important;
    display: none !important;
}


.simple-call-container {

    width: 320px;

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.15);

    overflow: hidden;

    display: none;

    position: fixed;

    bottom: 80px;

    right: 20px;

    z-index: 10000;

}


.simple-call-container.active {

    display: block;

    animation: fadeInUp 0.3s ease;

}


@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.simple-section {

    border-top: 1px solid #e5e7eb;

}


.simple-section:first-child {

    border-top: none;

}


.simple-header {

    background: #3b82f6;

    color: #ffffff;

    text-align: center;

    font-weight: 600;

    padding: 12px 0;

    font-size: 15px;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    transition: background 0.3s ease;

}


.simple-header:hover {

    background: #2563eb;

}


.simple-arrow {

    transition: transform 0.3s ease;

    font-size: 12px;

}


.simple-collapsed .simple-arrow {

    transform: rotate(180deg);

}


.simple-content {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.4s ease;

}


.simple-content.active {

    max-height: 300px;

    overflow-y: auto;

}


.simple-content.active::-webkit-scrollbar {

    width: 6px;

}


.simple-content.active::-webkit-scrollbar-thumb {

    background-color: #cbd5e1;

    border-radius: 3px;

}


.simple-content.active::-webkit-scrollbar-thumb:hover {

    background-color: #94a3b8;

}


.simple-card {

    background: #fff;

    border-radius: 8px;

    margin: 8px;

    padding: 12px;

    box-shadow: 0 1px 3px rgba(0,0,0,0.1);

    border-left: 3px solid #3b82f6;

    transition: transform 0.2s ease, box-shadow 0.2s ease;

}


.simple-card:hover {

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);

}


.simple-info {

    flex: 1;

}


.simple-info h3 {

    margin: 0 0 6px 0;

    font-size: 15px;

    color: #1f2937;

    font-weight: 600;

}


.simple-info p {

    margin: 3px 0;

    font-size: 13px;

    display: flex;

    align-items: center;

    gap: 6px;

}


.simple-phone {

    color: #059669;

}


.simple-zalo {

    color: #2563eb;

}


.simple-call-container a {

    text-decoration: none;

    color: inherit;

    transition: color 0.2s ease;

}


.simple-call-container a:hover {

    color: #dc2626;

}


/* Responsive cho mobile */


/* Responsive cho mobile - KHẮC PHỤC TRIỆT ĐỂ HÌNH TRÒN VÀ VỊ TRÍ */

@media (max-width: 480px) {

    
    /* * CÁC BIỆN PHÁP CUỐI CÙNG ĐỂ ĐẢM BẢO HÌNH TRÒN */
    .simple-call-button {

        width: 45px !important;
        height: 45px !important;
        
        min-width: 45px !important; /* Buộc chiều ngang tối thiểu */
        overflow: hidden !important; /* Cắt bỏ mọi thứ tràn ra ngoài */

        border-radius: 50% !important;
        
        padding: 0 !important;
        box-sizing: border-box !important; 
        
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        
        bottom: 70px !important; 
        right: 0px !important; 
    }
    
    .simple-call-container {
        width: 90%;
        right: 5%;
        bottom: 120px;
    }
}


/* ========================================= */
/* CSS CHO ICON ZALO MỚI (DẠNG ẢNH)        */
/* ========================================= */

.simple-call-icon-img {
    width: 30px;  
    height: 30px; 
    display: block !important; /* Buộc là block để loại bỏ khoảng trắng */
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .simple-call-icon-img {
        width: 28px !important; 
        height: 28px !important; 
        display: block !important;
    }
}