/* CSS cho nút gọi điện ở góc trái màn hình */
.fixed-call-button {
    position: fixed;
    z-index: 999;
}

.fixed-zalo-button {
    position: fixed;
    z-index: 999;
}

#fixed-call-button-hcm {
    bottom: 120px;
    left: 30px;
}

#fixed-call-button-hn {
    bottom: 30px;
    left: 30px;
}

/* Nút Zalo */
#fixed-zalo-button-hcm {
    bottom: 290px;
    left: 30px;
}

#fixed-zalo-button-hn {
    bottom: 210px;
    left: 30px;
}

.fixed-call-button a, .fixed-zalo-button a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.call-button-circle, .zalo-button-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Specific size for Zalo */
.zalo-button-circle {
    width: 40px;
    height: 40px;
}

.call-button-circle {
    background: #28a745;
    box-shadow: 0px 0px 15px rgba(40,167,69,0.5);
}



.call-button-circle:before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
}

.call-button-circle:before {
    animation: ripple 2s linear infinite;
}

.zalo-button-circle:before {
    animation: none;
}

.call-button-circle:before {
    border: 3px solid #28a745;
}

.zalo-button-circle:before {
    border: 3px solid #0068ff;
    animation: none;
}

.call-button-circle:after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
}

.call-button-circle:after {
    border: 3px solid #28a745;
    animation: ripple 2s linear 1s infinite;
}

.zalo-button-circle:after {
    border: 3px solid #0068ff;
    animation: none;
}

.call-button-circle i, .zalo-button-circle i {
    font-size: 24px;
    color: white;
    animation: shake 2s ease infinite;
}

/* Style for Zalo icon image */
.zalo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: none;
    display: block;
}

.call-button-text, .zalo-button-text {
    padding: 6px 14px;
    border-radius: 30px;
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
    line-height: 17px;
    text-align: center;
}

.call-button-text {
    background: #218838;
    box-shadow: 0px 5px 15px rgba(33,136,56,0.3);
}

.zalo-button-text {
    background: #0057d5;
    box-shadow: 0px 5px 15px rgba(0,87,213,0.3);
}

.fixed-call-button a:hover .call-button-text {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(30,126,52,0.4);
}

.fixed-zalo-button a:hover .zalo-button-text {
    background: #004ec2;
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px rgba(0,78,194,0.4);
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%, 40% { transform: rotate(-10deg); }
    30%, 50% { transform: rotate(10deg); }
    45% { transform: rotate(-5deg); }
    55% { transform: rotate(5deg); }
    60% { transform: rotate(0deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Ẩn trên mobile */
@media (max-width: 768px) {
    .fixed-call-button, .fixed-zalo-button {
        display: none;
    }
}