/* =========================================================
   ANAMIKA LOGISTICS
   CHATBOT COMPLETE CSS
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary-blue: #005baa;
    --dark-blue: #003f7d;
    --light-blue: #eef7ff;

    --accent-red: #e31e24;

    --white: #ffffff;

    --text-dark: #1f2937;
    --text-light: #6b7280;

    --border-color: #e5e7eb;

    --shadow:
        0 12px 35px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    height: 100%;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: transparent;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   CHATBOT WRAPPER
   ========================================================= */

.chatbot-wrapper {
    position: fixed;

    right: 24px;
    bottom: 22px;

    z-index: 999999;
}


/* =========================================================
   FLOATING CHATBOT BUTTON
   ========================================================= */

.chatbot-toggle {
    position: relative;

    width: 82px;
    height: 82px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    overflow: visible;

    animation:
        chatbotFloat 3s ease-in-out infinite;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* =========================================================
   ROBOT IMAGE
   ========================================================= */

.chatbot-icon-image {
    width: 82px;
    height: 82px;

    display: block;

    object-fit: contain;

    border-radius: 50%;

    user-select: none;

    pointer-events: none;

    filter:
        drop-shadow(
            0 7px 12px
            rgba(0, 0, 0, 0.22)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


/* =========================================================
   FLOATING ANIMATION
   ========================================================= */

@keyframes chatbotFloat {

    0% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    20% {
        transform:
            translateY(-4px)
            rotate(-1deg);
    }

    40% {
        transform:
            translateY(-8px)
            rotate(0deg);
    }

    60% {
        transform:
            translateY(-5px)
            rotate(1deg);
    }

    80% {
        transform:
            translateY(-2px)
            rotate(0deg);
    }

    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }
}


/* =========================================================
   HOVER
   ========================================================= */

.chatbot-toggle:hover {
    animation-play-state: paused;

    transform:
        scale(1.08);
}


.chatbot-toggle:hover
.chatbot-icon-image {
    transform:
        scale(1.04);

    filter:
        drop-shadow(
            0 11px 20px
            rgba(0, 0, 0, 0.30)
        );
}


/* =========================================================
   ACTIVE / CLICK
   ========================================================= */

.chatbot-toggle:active {
    animation-play-state: paused;

    transform:
        scale(0.94);
}


/* =========================================================
   RED NOTIFICATION DOT
   ========================================================= */

.chatbot-toggle::after {
    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    top: 3px;
    right: 3px;

    background:
        var(--accent-red);

    border:
        2px solid
        var(--white);

    border-radius: 50%;

    z-index: 10;

    animation:
        notificationPulse 2s infinite;
}


/* =========================================================
   NOTIFICATION PULSE
   ========================================================= */

@keyframes notificationPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(227, 30, 36, 0.55);
    }

    70% {
        box-shadow:
            0 0 0 8px
            rgba(227, 30, 36, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(227, 30, 36, 0);
    }
}


/* =========================================================
   CHATBOT WINDOW
   ========================================================= */

.chatbot-window {
    position: absolute;

    right: 0;
    bottom: 98px;

    width: 390px;
    height: 600px;

    background:
        var(--white);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        var(--shadow);

    display: none;

    flex-direction: column;

    border:
        1px solid
        rgba(0, 91, 170, 0.08);

    animation:
        chatbotOpen 0.25s ease;
}


/* =========================================================
   ACTIVE CHATBOT WINDOW
   ========================================================= */

.chatbot-window.active {
    display: flex;
}


/* =========================================================
   WINDOW OPEN ANIMATION
   ========================================================= */

@keyframes chatbotOpen {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   CHATBOT HEADER
   ========================================================= */

.chatbot-header {
    min-height: 78px;

    padding:
        14px 16px;

    background:
        linear-gradient(
            135deg,
            var(--primary-blue),
            var(--dark-blue)
        );

    color:
        var(--white);

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-shrink: 0;
}


/* =========================================================
   BOT PROFILE
   ========================================================= */

.bot-profile {
    display: flex;

    align-items: center;

    gap: 11px;
}


/* =========================================================
   BOT LOGO
   ========================================================= */

.bot-logo {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background:
        var(--white);

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.15);
}


.bot-logo span {
    color:
        var(--primary-blue);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


/* =========================================================
   BOT INFORMATION
   ========================================================= */

.bot-info h1 {
    font-size: 16px;

    font-weight: 700;

    margin-bottom: 5px;

    color:
        var(--white);
}


.bot-info p {
    font-size: 12px;

    color:
        rgba(255, 255, 255, 0.88);

    display: flex;

    align-items: center;

    gap: 5px;
}


/* =========================================================
   ONLINE DOT
   ========================================================= */

.online-dot {
    width: 7px;
    height: 7px;

    background:
        #3ddc84;

    border-radius: 50%;

    display: inline-block;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.chatbot-close {
    width: 34px;
    height: 34px;

    border: none;

    background:
        rgba(255, 255, 255, 0.12);

    color:
        var(--white);

    border-radius: 50%;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.chatbot-close:hover {
    background:
        rgba(255, 255, 255, 0.22);

    transform:
        scale(1.05);
}


/* =========================================================
   CHAT MESSAGES
   ========================================================= */

.chatbot-messages {
    flex: 1;

    min-height: 0;

    padding:
        18px 15px;

    overflow-y: auto;

    background:
        linear-gradient(
            rgba(238, 247, 255, 0.55),
            rgba(255, 255, 255, 0.9)
        );

    scroll-behavior: smooth;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}


.chatbot-messages::-webkit-scrollbar-track {
    background:
        transparent;
}


.chatbot-messages::-webkit-scrollbar-thumb {
    background:
        #c8d8e8;

    border-radius:
        10px;
}


.chatbot-messages {
    scrollbar-width: thin;

    scrollbar-color:
        #c8d8e8
        transparent;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    box-sizing: border-box;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.facebook-btn {
    background: #1877f2;
    color: #fff !important;
}

.instagram-btn {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #fff !important;
}

.linkedin-btn {
    background: #0a66c2;
    color: #fff !important;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
/* =========================================================
   MESSAGE
   ========================================================= */

.message {
    display: flex;

    gap: 9px;

    margin-bottom: 14px;

    animation:
        messageAppear 0.25s ease;
}


/* =========================================================
   MESSAGE APPEAR ANIMATION
   ========================================================= */

@keyframes messageAppear {

    from {
        opacity: 0;

        transform:
            translateY(5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   BOT AVATAR
   ========================================================= */

.message-avatar {
    width: 31px;
    height: 31px;

    background:
        var(--primary-blue);

    color:
        var(--white);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 9px;

    font-weight: 700;

    flex-shrink: 0;
}


/* =========================================================
   MESSAGE CONTENT
   ========================================================= */

.message-content {
    max-width: 82%;

    background:
        var(--white);

    padding:
        11px 13px;

    border-radius:
        4px 14px 14px 14px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.06);

    color:
        var(--text-dark);

    font-size: 13px;

    line-height: 1.55;

    overflow-wrap: anywhere;
}


.message-content p + p {
    margin-top: 7px;
}


.message-content strong {
    color:
        var(--primary-blue);
}


/* =========================================================
   USER MESSAGE
   ========================================================= */

.user-message {
    justify-content: flex-end;

    margin-bottom: 14px;
}


.user-message .message-content {
    background:
        var(--primary-blue);

    color:
        var(--white);

    border-radius:
        14px 4px 14px 14px;

    box-shadow: none;
}


.user-message .message-content strong {
    color:
        var(--white);
}


/* =========================================================
   QUICK OPTIONS
   ========================================================= */

.quick-options {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 7px;

    margin-left: 40px;
}


/* =========================================================
   QUICK OPTION
   ========================================================= */

.quick-option {
    width: 100%;

    min-height: 42px;

    padding:
        9px 12px;

    background:
        var(--white);

    border:
        1px solid
        #d7e5f1;

    border-radius:
        10px;

    color:
        var(--text-dark);

    font-size: 12.5px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}


.quick-option:hover {
    background:
        var(--light-blue);

    border-color:
        var(--primary-blue);

    color:
        var(--primary-blue);

    transform:
        translateX(3px);
}


.quick-option:active {
    transform:
        scale(0.98);
}


/* =========================================================
   MAIN MENU OPTIONS
   ONLY THESE 11 OPTIONS USE GRID
   ========================================================= */

#mainOptions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


/* =========================================================
   DYNAMIC CATEGORY OPTIONS
   KEEP VERTICAL
   ========================================================= */

.dynamic-options {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 7px;

    margin-left: 40px;
}


/* =========================================================
   BACK TO MAIN MENU
   ========================================================= */

.back-menu {
    color:
        var(--primary-blue);

    border-color:
        #c8dff2;

    background:
        #f5faff;

    margin-top:
        4px;

    margin-bottom:
        18px;
}


.back-menu:hover {
    background:
        var(--primary-blue);

    color:
        var(--white);

    border-color:
        var(--primary-blue);
}


/* =========================================================
   IMPORTANT:
   GAP BETWEEN BACK BUTTON AND NEXT USER MESSAGE
   ========================================================= */

.dynamic-options + .user-message {
    margin-top:
        18px !important;
}


/* =========================================================
   EXTRA GAP WHEN USER MESSAGE COMES AFTER OPTIONS
   ========================================================= */

.quick-options + .user-message {
    margin-top:
        18px;
}


/* =========================================================
   RELATED TITLE
   ========================================================= */

.related-title {
    margin:
        12px 0 8px 40px;

    font-size:
        12px;

    font-weight:
        700;

    color:
        var(--text-light);
}


/* =========================================================
   QUOTE OPTION
   FULL WIDTH INSIDE MAIN GRID
   ========================================================= */

.quick-option.quote-option {
    width: 100%;

    grid-column:
        1 / -1;

    max-width:
        none;

    margin-left:
        auto;

    margin-right:
        auto;

    border-color:
        #8bc7ff;

    color:
        var(--text-dark);

    background:
        #eef8ff;

    text-align:
        center;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        13px;

    font-weight:
        700;

    min-height:
        46px;
}


.quick-option.quote-option:hover {
    background:
        var(--primary-blue);

    color:
        var(--white);

    border-color:
        var(--primary-blue);

    transform:
        translateY(-1px);
}


/* =========================================================
   ENQUIRY / LINK BUTTON
   ========================================================= */

.enquiry-button {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    width:
        100%;

    min-height:
        44px;

    margin-top:
        9px;

    padding:
        10px 14px;

    border:
        none;

    border-radius:
        10px;

    background:
        var(--accent-red);

    color:
        var(--white);

    font-size:
        13px;

    font-weight:
        700;

    text-decoration:
        none;

    cursor:
        pointer;

    box-shadow:
        0 5px 14px
        rgba(227, 30, 36, 0.2);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.enquiry-button:hover {
    background:
        #c9181d;

    color:
        var(--white);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 18px
        rgba(227, 30, 36, 0.28);
}


/* =========================================================
   CONTACT DETAILS
   ========================================================= */

.contact-details {
    margin-top:
        8px;
}


.contact-details p {
    margin-bottom:
        10px;
}


.contact-details p:last-child {
    margin-bottom:
        0;
}


.contact-details strong {
    color:
        var(--text-dark);

    font-weight:
        700;
}


.contact-details p a {
    color:
        var(--primary-blue);

    text-decoration:
        none;

    font-weight:
        600;
}


.contact-details p a:hover {
    color:
        var(--dark-blue);

    text-decoration:
        underline;
}


/* =========================================================
   SOCIAL BUTTONS
   ========================================================= */

.social-buttons {
    display:
        flex;

    flex-direction:
        column;

    gap:
        6px;

    margin-top:
        8px;
}


.social-buttons .enquiry-button {
    margin-top:
        0;
}


/* =========================================================
   LOCATION LIST
   ========================================================= */

.location-list {
    margin-top:
        8px;
}


.location-list p {
    margin-bottom:
        8px;
}


.location-list p:last-child {
    margin-bottom:
        0;
}


/* =========================================================
   EMAIL BUTTON
   ========================================================= */

.email-button {
    background:
        var(--primary-blue);
}


.email-button:hover {
    background:
        var(--dark-blue);
}


/* =========================================================
   INPUT AREA
   ========================================================= */

.chatbot-input-area {
    padding:
        10px 12px 8px;

    background:
        var(--white);

    border-top:
        1px solid
        var(--border-color);

    flex-shrink: 0;
}


/* =========================================================
   FORM
   ========================================================= */

.chatbot-form {
    display:
        flex;

    align-items:
        center;

    gap:
        7px;
}


/* =========================================================
   INPUT
   ========================================================= */

.chatbot-form input {
    flex:
        1;

    min-width:
        0;

    height:
        42px;

    padding:
        0 13px;

    border:
        1px solid
        #d9e1e8;

    border-radius:
        10px;

    outline:
        none;

    color:
        var(--text-dark);

    background:
        #fafafa;

    font-size:
        13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.chatbot-form input::placeholder {
    color:
        #9ca3af;
}


.chatbot-form input:focus {
    border-color:
        var(--primary-blue);

    background:
        var(--white);

    box-shadow:
        0 0 0 3px
        rgba(0, 91, 170, 0.08);
}


/* =========================================================
   SEND BUTTON
   ========================================================= */

.send-button {
    width:
        42px;

    height:
        42px;

    flex-shrink:
        0;

    border:
        none;

    border-radius:
        10px;

    background:
        var(--primary-blue);

    color:
        var(--white);

    font-size:
        19px;

    cursor:
        pointer;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.send-button:hover {
    background:
        var(--dark-blue);

    transform:
        scale(1.04);
}


.send-button:active {
    transform:
        scale(0.95);
}


/* =========================================================
   FOOTER
   ========================================================= */

.chatbot-footer-text {
    text-align:
        center;

    font-size:
        9px;

    color:
        #9ca3af;

    margin-top:
        6px;

    letter-spacing:
        0.2px;
}


/* =========================================================
   TYPING INDICATOR
   ========================================================= */

.typing-message {
    display:
        flex;

    align-items:
        center;

    gap:
        4px;

    padding:
        4px 2px;
}


.typing-message span {
    width:
        6px;

    height:
        6px;

    background:
        #9bb8cf;

    border-radius:
        50%;

    animation:
        typing 1.2s infinite;
}


.typing-message span:nth-child(2) {
    animation-delay:
        0.15s;
}


.typing-message span:nth-child(3) {
    animation-delay:
        0.3s;
}


/* =========================================================
   TYPING ANIMATION
   ========================================================= */

@keyframes typing {

    0%,
    60%,
    100% {

        transform:
            translateY(0);

        opacity:
            0.5;
    }

    30% {

        transform:
            translateY(-4px);

        opacity:
            1;
    }
}


/* =========================================================
   FOCUS
   ========================================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible {

    outline:
        2px solid
        var(--primary-blue);

    outline-offset:
        2px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .chatbot-wrapper {
        right:
            18px;

        bottom:
            18px;
    }


    .chatbot-toggle {
        width:
            76px;

        height:
            76px;
    }


    .chatbot-icon-image {
        width:
            76px;

        height:
            76px;
    }


    .chatbot-window {
        width:
            370px;

        height:
            580px;

        bottom:
            92px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .chatbot-wrapper {
        right:
            14px;

        bottom:
            14px;
    }


    .chatbot-toggle {
        width:
            70px;

        height:
            70px;
    }


    .chatbot-icon-image {
        width:
            70px;

        height:
            70px;
    }


    .chatbot-toggle::after {
        width:
            14px;

        height:
            14px;

        top:
            2px;

        right:
            2px;
    }


    .chatbot-window {

        position:
            fixed;

        left:
            10px;

        right:
            10px;

        bottom:
            84px;

        width:
            auto;

        height:
            min(
                620px,
                calc(100vh - 100px)
            );

        border-radius:
            16px;
    }


    .chatbot-header {
        min-height:
            70px;

        padding:
            12px 14px;
    }


    .chatbot-messages {
        padding:
            15px 12px;
    }


    .quick-options,
    .dynamic-options {
        margin-left:
            38px;
    }


    /* =====================================================
       MAIN 11 OPTIONS - MOBILE 2 COLUMN GRID
       ===================================================== */

    #mainOptions {
        display:
            grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            7px;

        margin-left:
            0;
    }


    #mainOptions .quote-option {
        grid-column:
            1 / -1;

        max-width:
            none;

        width:
            100%;
    }


    /* =====================================================
       SUB OPTIONS REMAIN VERTICAL
       ===================================================== */

    .dynamic-options {
        display:
            flex;

        flex-direction:
            column;

        gap:
            8px;

        margin-left:
            38px;
    }


    .quick-option {
        min-height:
            40px;

        font-size:
            12px;
    }


    .quick-option.quote-option {
        max-width:
            none;
    }


    .message-content {
        max-width:
            86%;
    }


    .dynamic-options + .user-message {
        margin-top:
            18px !important;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .chatbot-wrapper {
        right:
            10px;

        bottom:
            10px;
    }


    .chatbot-toggle {
        width:
            64px;

        height:
            64px;
    }


    .chatbot-icon-image {
        width:
            64px;

        height:
            64px;
    }


    .chatbot-window {

        left:
            6px;

        right:
            6px;

        bottom:
            76px;
    }


    .bot-info h1 {
        font-size:
            14px;
    }


    .quick-options,
    .dynamic-options {
        margin-left:
            0;
    }


    /* =====================================================
       MAIN 11 OPTIONS - SMALL MOBILE
       ===================================================== */

    #mainOptions {
        display:
            grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            6px;

        margin-left:
            0;
    }


    #mainOptions .quote-option {
        grid-column:
            1 / -1;

        max-width:
            none;

        width:
            100%;
    }


    /* =====================================================
       SUB OPTIONS REMAIN VERTICAL
       ===================================================== */

    .dynamic-options {
        display:
            flex;

        flex-direction:
            column;

        gap:
            8px;

        margin-left:
            0;
    }


    .message-avatar {
        display:
            none;
    }


    .message-content {
        max-width:
            90%;
    }


    .quick-option.quote-option {
        max-width:
            none;
    }


    .dynamic-options + .user-message {
        margin-top:
            16px !important;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .chatbot-toggle {
        animation:
            none;
    }


    .chatbot-toggle::after {
        animation:
            none;
    }


    .chatbot-window {
        animation:
            none;
    }


    .message {
        animation:
            none;
    }


    .typing-message span {
        animation:
            none;
    }

}