/* =========================
   FLOATING CONTACT
========================= */

.floating-contact{
    position:fixed;
    left:15px;
    bottom:15px;
    z-index:999;
}

/* =========================
   ZALO
========================= */

.floating-zalo{
    display:block;
    width:56px;
    height:56px;
    margin-bottom:16px;
	margin-left: 10px;
    border-radius:50%;

    background:
        url('../../images/icon-zalo.png')
        center/34px no-repeat,
        #0068ff;

    box-shadow:
        0 8px 24px rgba(0,104,255,.25);

    animation:zaloPulse 2.5s infinite;
}

.floating-zalo:hover{
    transform:scale(1.08);
}

/* =========================
   HOTLINE
========================= */

.hotline-wrap{
    position:relative;
    height:80px;
    width:220px;
}

.hotline-ring{
    position:relative;

    width:80px;
    height:80px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    z-index:2;
}

/* vòng ngoài */

.hotline-circle{
    position:absolute;
    inset:0;

    border-radius:50%;
    border:2px solid rgba(255,59,48,.5);

    animation:ringCircle 2s infinite;
}

/* vòng giữa */

.hotline-circle-fill{
    position:absolute;
    inset:10px;

    border-radius:50%;
    background:rgba(255,59,48,.15);

    animation:ringFill 2s infinite;
}

/* icon chính */

.hotline-icon{
    position:relative;

    width:56px;
    height:56px;

    border-radius:50%;

    background:
        url('../../images/icon-phone.png')
        center/28px no-repeat,
        linear-gradient(135deg,#ff4d4f,#d70015);

    box-shadow:
        0 8px 24px rgba(215,0,21,.28);

    animation:phoneShake 2.5s infinite;
}

/* thanh số điện thoại */

.hotline-bar{
    position:absolute;

    left:25px;
    top:16px;

    height:48px;
    padding:0 22px 0 48px;

    display:flex;
    align-items:center;

    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            #ff4d4f,
            #d70015
        );

    color:#fff;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;

    box-shadow:
        0 8px 24px rgba(215,0,21,.22);

    transition:transform .2s ease;
}

.hotline-bar:hover{
    transform:translateX(3px);
}

/* =========================
   ANIMATION
========================= */

@keyframes ringCircle{
    0%{
        transform:scale(.8);
        opacity:.8;
    }

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

@keyframes ringFill{
    0%,100%{
        transform:scale(.9);
    }

    50%{
        transform:scale(1);
    }
}

@keyframes phoneShake{

    0%,100%{
        transform:rotate(0);
    }

    5%{
        transform:rotate(-15deg);
    }

    10%{
        transform:rotate(15deg);
    }

    15%{
        transform:rotate(-15deg);
    }

    20%{
        transform:rotate(15deg);
    }

    25%{
        transform:rotate(0);
    }
}

@keyframes zaloPulse{

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

    50%{
        transform:scale(1.08);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    .floating-contact{
        left:10px;
        bottom:10px;
    }

    .floating-zalo{
        width:50px;
        height:50px;
        background-size:30px;
    }

    .hotline-wrap{
        width:80px;
    }

    .hotline-bar{
        display:none;
    }

    .hotline-ring{
        width:72px;
        height:72px;
    }

    .hotline-icon{
        width:52px;
        height:52px;
        background-size:24px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce){

    .floating-zalo,
    .hotline-circle,
    .hotline-circle-fill,
    .hotline-icon{
        animation:none !important;
    }
}