/* hotline.css - assets for Hotline by Web3s */

/* base resets */
.web3s-hotline .daloctai-nav, .daloctai-nav { font-family: Arial, sans-serif; }
.daloctai-nav ul { list-style: none; padding: 0; margin: 0; }

/* ===================== PC / LAPTOP — menu dọc ===================== */
@media(min-width: 992px) {

    .daloctai-nav {
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .daloctai-nav ul { display: flex; flex-direction: column; gap: 6px; }

    .daloctai-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        background: #fff;
        padding: 10px 8px;
        width: auto;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.12);
        color: #333;
        transition: transform .18s ease, background .18s ease;
        text-align: center;
        font-size: 12px;
    }

    .daloctai-nav ul li a:hover { transform: translateX(-6px); background: #f5f5f5; }

    .daloctai-nav svg { width: 28px; height: 28px; color: #0366d6; }
    .daloctai-nav i { font-size:30px; color: #0366d6; }

    .daloctai-nav ul li a span { font-size: 11px; display:block; margin-top:0px; }

    .daloctai-nav .zalo img { width: 32px !important; height: 32px !important; border-radius:6px; }
}

/* ===================== MOBILE / TABLET — menu dưới đáy ===================== */
@media(max-width: 991px) {

    .daloctai-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        z-index: 99999;
    }

    .daloctai-nav ul {
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        margin:0;
    }

    .daloctai-nav ul li { margin:0; }
    .daloctai-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #333;
        font-size: 11px;
    }

    .daloctai-nav svg { width: 26px; height: 26px; color: #0366d6; }
    .daloctai-nav .zalo img { width: 30px !important; height: 30px !important; border-radius:6px; }

    /* phone button layout on mobile: icon above, text under */
    .phone-mobile a.buttonhotline {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 65px !important;
        height: 65px !important;
        border-radius: 50%;
        padding: 0 !important;
        background: transparent !important; /* background controlled by main style */
    }

    .phone-mobile .btn_phone_txt { margin-top:6px !important; display:block !important; font-size:11px !important; color:#ff3b30 !important; line-height:1.1; }
}

/* ===================== HOTLINE BUTTON (desktop + mobile) ===================== */
.phone-mobile a.buttonhotline {
    position: relative;
    background: #ff3b30 !important;
    padding: 12px !important;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255,0,0,0.55);
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* hover: yellow */
.phone-mobile a.buttonhotline:hover {
    background: #ffc400 !important;
    box-shadow: 0 0 18px rgba(255,196,0,0.7);
    transform: translateY(-3px);
}

/* phone icon */
.phone-mobile .phone_animation svg { width: 45px; height: 45px; padding-top:25px; color: #fff; animation: web3s-phone-ring 1.3s infinite ease-in-out; } 

/* ring animation */
@keyframes web3s-phone-ring {
    0% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
    100% { transform: rotate(0); }
}

/* pulse around button (default red) */
.phone-mobile a.buttonhotline::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: rgba(255,59,48,0.36);
    animation: web3s-pulse 1.6s infinite;
    transition: background .18s ease;
}

/* hover pulse becomes yellow */
.phone-mobile a.buttonhotline:hover::after { background: rgba(255,196,0,0.42); }

@keyframes web3s-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* small labels */
.btn_phone_txt { margin-top:4px; color:#ff3b30 !important; font-size:12px; display:block; text-align:center; }

/* to-top */
.to-top-pc { opacity: 0; visibility: hidden; transition: all .3s ease; }
.to-top-pc.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ensure images not overflow */
.daloctai-nav img { max-width:100%; height:auto; display:block; }

/* small responsive tweaks */
@media(max-width:420px) {
    .daloctai-nav ul li a { padding:8px 6px; }
    .daloctai-nav svg { width:30px; height:30px; }

    .to-top-pc, .btn_phone_txt, .call-now {display: none !important;} .daloctai-nav i {
        font-size: 28px;
        color: #0366d6;
    }
}

.phone-mobile{display:block !important}
.call-now { 
	left: 0;    
	bottom: 55px;  
	height: 50px;   
	min-width: 200px;    
	position: fixed;  
	background-color: Red;   
	border-radius: 0 25px 25px 0; 
	box-shadow: 0 1px 2px rgba(0,0,0,.8); 
	z-index: 998;}
	a:link, a:visited, a:active {    text-decoration: none;}
	.call-now .btn-call-now i {    position: absolute;    color: #e54016;    background-color: #fff;    font-size: 35px;
    right: 0;    height: 50px;    width: 50px;    line-height: 50px;    text-align: center;    border-radius: 50%;   
	border: 1px solid #e54016;}
    .call-now .btn-call-now img {    position: absolute;    color: #e54016;    background-color: #fff;    font-size: 35px;
    right: 0;    height: 50px;    width: 50px;    line-height: 50px;    text-align: center;    border-radius: 50%;   
	border: 1px solid #e54016;}
	.call-now .btn-call-now p {    color: #fff;    line-height: 25px;    font-size: 14px;    min-width: 150px;   
	text-align: center;    vertical-align: middle;    display: inline-block;}
	.call-now .btn-call-now strong {    display: block;    font-size: 18px;} 
