/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Poppins",sans-serif;
}

/* ==========================================
   FLOATING CHAT BUTTON
========================================== */

.chatbot-toggle{

    position:fixed;

    right:25px;

    bottom:25px;

    width:68px;

    height:68px;

    border:none;

    border-radius:50%;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    box-shadow:0 10px 30px rgba(37,99,235,.35);

    transition:all .3s ease;

    z-index:9999;

    overflow:hidden;

    animation:chatbotBounce 2s infinite;

}


@keyframes chatbotBounce{

    0%{
        transform:translateY(0);
    }

    10%{
        transform:translateY(-10px);
    }

    20%{
        transform:translateY(0);
    }

    30%{
        transform:translateY(-6px);
    }

    40%{
        transform:translateY(0);
    }

    100%{
        transform:translateY(0);
    }

}

.chatbot-toggle.stop-animation{

    animation:none;

}

.chatbot-toggle:hover{

    transform:translateY(-3px) scale(1.05);

    box-shadow:0 15px 35px rgba(37,99,235,.45);

}

.chatbot-toggle:active{

    transform:scale(.95);

}

.chatbot-toggle img{

    width:36px;

    height:36px;

    object-fit:contain;

    pointer-events:none;

}


.chatbot-notification{

    position:absolute;

    top:2px;

    right:2px;

    width:20px;

    height:20px;

    background:#ef4444;

    color:#fff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    font-weight:700;

    border:2px solid #fff;

    animation:badgePulse 1.5s infinite;

}
/* ==========================================
   CHAT WINDOW
========================================== */

.chatbot{

    position:fixed;

    right:24px;
    bottom:100px;

    width:380px;
    height:600px;

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    display:flex;
    flex-direction:column;

    box-shadow:
    0 20px 60px rgba(0,0,0,.18);

    opacity:0;
    visibility:hidden;

    transform:translateY(30px) scale(.95);

    transition:.35s;

    z-index:99998;

}

.chatbot.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0) scale(1);

}

/* ==========================================
   HEADER
========================================== */

.chatbot-header{

    height:78px;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px;

}

.bot-info{

    display:flex;

    align-items:center;

    gap:12px;

}

/* Large Avatar */

.bot-avatar{

    width:48px;
    height:48px;

    border-radius:50%;

    overflow:hidden;

    background:#fff;

    flex-shrink:0;

}

.bot-avatar img{

    width:100%;
    height:100%;

    object-fit:cover;

}

/* Company Details */

.bot-details h3{

    font-size:16px;

    font-weight:600;

}

.bot-status{

    display:flex;

    align-items:center;

    gap:6px;

    margin-top:4px;

    font-size:12px;

    opacity:.95;

}

/* Online Dot */

.status-dot{

    width:8px;
    height:8px;

    border-radius:50%;

    background:#22c55e;

    animation:pulse 1.5s infinite;

}

@keyframes pulse{

    0%{

        box-shadow:0 0 0 0 rgba(34,197,94,.6);

    }

    70%{

        box-shadow:0 0 0 8px rgba(34,197,94,0);

    }

    100%{

        box-shadow:0 0 0 0 rgba(34,197,94,0);

    }

}


@keyframes badgePulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.2);

    }

    100%{

        transform:scale(1);

    }

}

/* Right Buttons */

.chat-actions{

    display:flex;

    gap:8px;

}

.chat-action-btn{

    width:34px;
    height:34px;

    border:none;

    border-radius:10px;

    background:rgba(255,255,255,.18);

    color:#fff;

    cursor:pointer;

    font-size:18px;

    transition:.25s;

}

.chat-action-btn:hover{

    background:rgba(255,255,255,.28);

}

/* ==========================================
   CHAT BODY
========================================== */

.chatbot-body{

    flex:1;

    overflow-y:auto;

    padding:18px;

    background:#f7f9fc;

}

/* Scrollbar */

.chatbot-body::-webkit-scrollbar{

    width:6px;

}

.chatbot-body::-webkit-scrollbar-thumb{

    background:#d7dbe5;

    border-radius:20px;

}

/* ==========================================
   BOT MESSAGE
========================================== */

.bot-message{

    display:flex;

    align-items:flex-end;

    gap:10px;

    margin:18px 0;

    animation:botMessage .35s ease forwards;

}

/* Small Bot Avatar */

.bot-avatar-small{

    width:36px;

    height:36px;

    border-radius:50%;

    overflow:hidden;

    flex-shrink:0;

    background:#fff;

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

}

.bot-avatar-small img{

    width:100%;

    height:100%;

    object-fit:cover;

}

/* Bot Bubble */

.message{

    background:#fff;

    color:#333;

    padding:14px 16px;

    border-radius:18px 18px 18px 6px;

    max-width:82%;

    line-height:1.6;

    font-size:14px;

    box-shadow:0 6px 18px rgba(0,0,0,.08);

    word-break:break-word;

}

/* ==========================================
   USER MESSAGE
========================================== */

.user-message{

    display:flex;

    justify-content:flex-end;

    margin:18px 0;

    animation:userMessage .35s ease forwards;

}

.user-bubble{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    padding:14px 16px;

    border-radius:18px 18px 6px 18px;

    max-width:80%;

    line-height:1.5;

    box-shadow:0 8px 18px rgba(37,99,235,.28);

}

.message-text{

    margin-bottom:5px;

}

.message-status{

    font-size:11px;

    text-align:right;

    opacity:.8;

}

/* ==========================================
   TYPING INDICATOR
========================================== */

.typing{

    animation:botMessage .3s ease forwards;

}

.typing-bubble{

    display:flex;

    align-items:center;

    gap:6px;

    background:#fff;

    padding:12px 16px;

    border-radius:18px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.typing-bubble span{

    width:8px;

    height:8px;

    border-radius:50%;

    background:#9ca3af;

    animation:typingDots 1.2s infinite;

}

.typing-bubble span:nth-child(2){

    animation-delay:.2s;

}

.typing-bubble span:nth-child(3){

    animation-delay:.4s;

}

@keyframes typingDots{

    0%,80%,100%{

        opacity:.3;

        transform:translateY(0);

    }

    40%{

        opacity:1;

        transform:translateY(-4px);

    }

}

/* ==========================================
   QUICK REPLIES
========================================== */

.quick-replies{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:12px;

}

/* Fade Out */

.quick-replies.hide{

    opacity:0;

    transform:translateY(10px);

    transition:all .25s ease;

}

.reply-btn{

    border:none;

    background:#fff;

    color:#333;

    padding:14px 16px;

    border-radius:14px;

    text-align:left;

    font-size:14px;

    cursor:pointer;

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

    transition:.25s;

    opacity:0;

    animation:buttonFade .35s forwards;

}

.reply-btn:hover{

    background:#2563eb;

    color:#fff;

    transform:translateX(6px);

}

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

@keyframes buttonFade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================
   MESSAGE ANIMATIONS
========================================== */

@keyframes botMessage{

    from{

        opacity:0;

        transform:translateX(-20px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}

@keyframes userMessage{

    from{

        opacity:0;

        transform:translateX(20px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}


/* ==========================================
   CHAT FOOTER
========================================== */

.chatbot-footer{

    height:74px;

    background:#ffffff;

    border-top:1px solid #e8edf5;

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 14px;

}

/* Input */

.chatbot-footer input{

    flex:1;

    height:46px;

    border:none;

    outline:none;

    border-radius:24px;

    background:#f3f6fb;

    padding:0 18px;

    font-size:14px;

    color:#444;

}

.chatbot-footer input::placeholder{

    color:#9ca3af;

}

.chatbot-footer input[readonly]{

    cursor:default;

}

/* Send Button */

.chatbot-footer button{

    width:46px;

    height:46px;

    border:none;

    border-radius:50%;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 6px 18px rgba(37,99,235,.30);

}

.chatbot-footer button svg{

    width:20px;

    height:20px;

}

.chatbot-footer button:hover{

    transform:translateY(-2px) scale(1.05);

    box-shadow:0 10px 24px rgba(37,99,235,.40);

}

.chatbot-footer button:active{

    transform:scale(.92);

}

.chatbot-footer button:disabled{

    opacity:.5;

    cursor:not-allowed;

    transform:none;

    box-shadow:none;

}

/* ==========================================
   SEND BUTTON ANIMATION
========================================== */

.send-active{

    animation:sendPulse .4s ease;

}

@keyframes sendPulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.18);

    }

    100%{

        transform:scale(1);

    }

}

/* ==========================================
   GLOBAL HOVER EFFECTS
========================================== */

.reply-btn,
.chat-action-btn,
.chatbot-toggle,
.chatbot-footer button{

    -webkit-tap-highlight-color:transparent;

}

.reply-btn:focus,
.chat-action-btn:focus,
.chatbot-footer button:focus,
.chatbot-toggle:focus{

    outline:none;

}

/* ==========================================
   CHAT WINDOW SHADOW POLISH
========================================== */

.chatbot{

    backdrop-filter:blur(10px);

    -webkit-backdrop-filter:blur(10px);

}

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

@media (max-width:480px){

    .chatbot{

        width:100%;

        height:100%;

        right:0;

        bottom:0;

        border-radius:0;

    }

    .chatbot-toggle{

        right:18px;

        bottom:18px;

    }

    .chatbot-header{

        padding:14px;

    }

    .chatbot-body{

        padding:16px;

    }

    .message{

        max-width:90%;

    }

    .user-bubble{

        max-width:88%;

    }

}

/* ==========================================
   SMOOTH SCROLL
========================================== */

html{

    scroll-behavior:smooth;

}

.chatbot-body{

    scroll-behavior:smooth;

}

/* ==========================================
   SELECTION
========================================== */

::selection{

    background:#2563eb;

    color:#fff;

}


/* ==========================================
   COMPANY CARD
========================================== */

.company-card{
    width:100%;
    background:#ffffff;
    border:1px solid #eef2f7;
    border-radius:18px;
    padding:22px;
    margin-top:8px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
    overflow:hidden;
}

.company-card h3{
    font-size:24px;
    font-weight:700;
    color:#111827;
    margin:0 0 10px;
    line-height:1.3;
}

.company-card p{
    margin:0 0 18px;
    color:#6b7280;
    font-size:15px;
    line-height:1.6;
}

.company-info{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:24px;
}

.company-info div{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:15px;
    color:#374151;
    font-weight:500;
}

.company-info i{
    width:18px;
    color:#2563eb;
    text-align:center;
}

/* ==========================================
   BUTTONS
========================================== */

.company-buttons{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.company-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    height:48px;

    text-decoration:none;

    border-radius:12px;

    font-size:15px;

    font-weight:600;

    transition:all .25s ease;

    cursor:pointer;

    border:1px solid transparent;

    box-shadow:0 4px 12px rgba(0,0,0,.06);
}

.company-btn i{
    font-size:16px;
}

/* Primary */

.call-btn{
    background:#2563eb;
    color:#fff;
}

.call-btn:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* WhatsApp */

.whatsapp-btn{
    background:#22c55e;
    color:#fff;
}

.whatsapp-btn:hover{
    background:#16a34a;
    transform:translateY(-2px);
}

/* Secondary */

.email-btn{

    background:#ffffff;

    color:#111827;

    border:1px solid #dbe3ef;

}

.email-btn:hover{

    background:#f8fafc;

    transform:translateY(-2px);

}

.map-btn{

    background:#ffffff;

    color:#111827;

    border:1px solid #dbe3ef;

}

.map-btn:hover{

    background:#f8fafc;

    transform:translateY(-2px);

}

/* Active */

.company-btn:active{

    transform:scale(.97);

}

/* Mobile */

@media(max-width:480px){

    .company-card{

        padding:18px;

    }

    .company-card h3{

        font-size:22px;

    }

    .company-btn{

        height:46px;

        font-size:14px;

    }

}


