
        /* Popup chatbot container */
        /* Popup chatbot container */


.chatbot-popup {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 850px;
    height: 525px;
    /* background-color: var(--white); */
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}
li {
             margin: 1px 0; 
            line-height: 1.5;
        }

        ol {
             margin: 2px 0; 
            padding-left: 22px;
        }

        p {
            margin: 2px 0; 
            line-height: 1.5;
        }


        ul {
            margin: 2px 0; 
            padding-left: 22px; 
            list-style-type: disc;
        }


        .chatbot-popup.show {
            display: flex;
            z-index: 100000;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .chatbot-header {
            /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); */
            color: var(--white);
            background-color: #0A3252;
            padding: 20px;
            text-align: center;
            position: relative;
        }

        .chatbot-header h1 {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 5px;
            line-height: 1.3;
            color: #ffffff;
        }

        .chatbot-header p {
            font-size: 0.9rem;
            opacity: 0.9;
            line-height: 1.3;
                        color: #ffffff;

        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: #ffffff;
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        .close-button:hover {
            background: rgba(255,255,255,0.2);
        }

        .chat-area {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background-color: #f3f4f6;
        }

        .message {
            margin-bottom: 20px;
            animation: fadeInUp 0.3s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .user-message {
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            gap: 8px;
        }

        .user-message .message-content {
            /* background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%); */
            background: linear-gradient(135deg, #8c191f 0%, #ef3e24 100%);
            color:#ffffff;

            /* color: var(--white); */
            padding: 12px 16px;
            border-radius: 18px 18px 4px 18px;
            max-width: 75%;
            line-height: 1.5;
            word-wrap: break-word;
            word-break: break-word;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #8c191f 0%, #ef3e24 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .bot-message {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            /* padding: 12px 16px; */
        }

        .bot-message .message-content {
            /* background: var(--white); */
            background-color: #ffffff;
            padding: 12px 16px;
            border-radius: 18px 18px 18px 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            max-width: 75%;
            line-height: 1.5;
            word-wrap: break-word;
            word-break: break-word;
        }

        .bot-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    flex-shrink: 0;
    background: url('https://genfin.in/static/investigen/img/bandhanchatimge2.PNG') center/cover no-repeat;
    /* ↑ This overwrites the gradient above */
}



        .buttons-container {
            margin-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .chat-button {
            background-color:  #f59e0b;
            color: #ffffff;
            border: none;
            padding: 8px 14px;
            border-radius: 15px;
            cursor: pointer;
            /* font-family: 'Ubuntu', Tahoma, Geneva, Verdana, sans-serif; */
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
            word-break: break-word;
        }

        .chat-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
        }

        .input-area {
            padding: 15px;
            background: var(--white);
            border-top: 1px solid var(--gray-200);
        }

        .input-container {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .message-input {
            flex: 1;
            padding: 10px 15px;
            /* border: 2px solid #b7b7b7; */
            border-radius: 20px;
            font-size: 16px;
            outline: none;
            transition: border-color 0.3s ease;
            resize: none;
            /* min-height: 50px; */
            max-height: 45px;
            font-family: inherit;
        }

        .message-input:focus {
            border-color: var(--primary-blue);
        }

        .send-button {
            background-color: #0A3252;
            color: #ffffff;
            border: none;
            padding: 10px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-family: 'Lato', sans-serif;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 60px;

            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .send-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

        .send-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .typing-indicator {
            display: none;
            align-items: center;
            gap: 8px;
            color: var(--gray-700);
            font-style: italic;
            margin-top: 10px;
            padding: 0 20px;
        }

        .typing-dots {
            display: flex;
            gap: 3px;
        }

        .typing-dots span {
            width: 6px;
            height: 6px;
            background: var(--primary-blue);
            border-radius: 50%;
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-dots span:nth-child(1) { animation-delay: -0.32s; }
        .typing-dots span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes typing {
            0%, 80%, 100% {
                transform: scale(0.8);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }

       

        /* Scrollbar styling */
        .chat-area::-webkit-scrollbar {
            width: 4px;
        }

        .chat-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-area::-webkit-scrollbar-thumb {
            background: var(--gray-200);
            border-radius: 2px;
        }

        .chat-area::-webkit-scrollbar-thumb:hover {
            background: var(--primary-blue);
        }

        /* Notification badge */
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--primary-red);
            color: var(--white);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* Focus indicators for accessibility */
        .chat-button:focus,
        .send-button:focus,
        .message-input:focus,
        .chat-toggle:focus,
        .close-button:focus {
            outline: 2px solid var(--primary-blue);
            outline-offset: 2px;
        }

        /* Mobile responsiveness - Tablet */
        @media (max-width: 900px) {
            .chatbot-popup {
                width: calc(100vw - 40px);
                right: 20px;
            }
        }

        /* Mobile responsiveness - Large phones */
        @media (max-width: 768px) {
           

            .chatbot-popup {
                width: calc(100vw - 20px);
                height: calc(100vh - 140px);
                right: 10px;
                bottom: 100px;
                border-radius: 15px;
            }

            .chatbot-header {
                padding: 16px;
            }

            .chatbot-header h1 {
                font-size: 1.2rem;
                padding-right: 30px;
            }

            .chatbot-header p {
                font-size: 0.8rem;
            }

            .chat-area {
                padding: 15px;
            }

            

            .user-message .message-content,
            .bot-message .message-content {
                max-width: 85%;
                font-size: 0.9rem;
            }

            .buttons-container {
                gap: 6px;
            }

            .chat-button {
                font-size: 0.8rem;
                padding: 7px 12px;
            }

            .input-area {
                padding: 12px;
            }

            .message-input {
                font-size: 16px;
                transform: scale(0.875);
                padding: 8px 12px;
            }

            .send-button {
                font-size: 0.85rem;
                padding: 8px 12px;
                min-width: 55px;
            }

            

            .typing-indicator {
                padding: 0 15px;
                font-size: 0.85rem;
            }
        }

        /* Mobile responsiveness - Small phones */
        @media (max-width: 480px) {
          
            .chatbot-popup {
                width: 100vw;
                height: 93vh;
                right: 0;
                bottom: 0;
                border-radius: 0;
            }

            .chatbot-header h1 {
                font-size: 1.1rem;
            }

            .chatbot-header p {
                font-size: 0.75rem;
            }

            .chat-area {
                padding: 12px;
            }

            .user-message .message-content,
            .bot-message .message-content {
                max-width: 90%;
                font-size: 0.85rem;
                padding: 10px 14px;
            }

            .user-avatar,
            .bot-avatar {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }

            .chat-button {
                font-size: 0.75rem;
                padding: 6px 10px;
            }

            .message-input {
                font-size: 16px;
                transform: scale(0.85);
            }

            .send-button {
                font-size: 0.8rem;
                padding: 8px 10px;
                min-width: 50px;
            }

         
        }

        /* Extra small devices */
        @media (max-width: 360px) {
           

            .chatbot-header {
                padding: 14px;
            }

            .chatbot-header h1 {
                font-size: 1rem;
            }

            .user-message .message-content,
            .bot-message .message-content {
                font-size: 16px;
                transform: scale(0.7);
            }
        }

        /* Landscape mode for mobile devices */
        @media (max-height: 500px) and (orientation: landscape) {
            .chatbot-popup {
                height: calc(100vh - 20px);
                bottom: 10px;
            }

            .main-content {
                min-height: auto;
                padding: 20px 15px;
            }

         
            .chat-area {
                padding: 10px;
            }

            .chatbot-header {
                padding: 12px;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .chat-button,
            .send-button,
            .cta-button {
                min-height: 44px;
                min-width: 44px;
            }

            .close-button {
                width: 40px;
                height: 40px;
                font-size: 1.8rem;
            }
        }

.chat-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        z-index: 1002;
    }

    /* Show image exactly as it is — no cropping, no border */
    .chat-image {
        width: auto;                /* natural width */
        height: 150px; 
                      /* fixed height to stay consistent */
        max-width: 700px;           /* prevents it from getting too large */
        object-fit: contain;        /* ensures full image is visible */
        object-position: center;
        transition: transform 0.3s ease;
        border: none;
        border-radius: 0;           /* ✅ removes circular crop completely */
        background: none;
        padding: 0;
    }

    .chat-image:hover {
        transform: scale(1.05);
    }

    .dialog-box {
        position: relative;
        background: rgba(255, 255, 255, 0.95);
        color: #222;
        padding: 8px 12px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        font-size: 14px;
        font-weight: 500;
        animation: fadeIn 0.5s ease;
        backdrop-filter: blur(6px);
    }

    .dialog-box::after {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 18px;
        border-width: 6px;
        border-style: solid;
        border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
    }
    .chatbot-disclaimer {
    background-color: #c62828; /* deep red */
    color: #ffffff;
    font-size: 11.5px;
    line-height: 1.4;
    text-align: center;
    padding: 4px 8px;
    border-top: 1px solid #b71c1c; /* thin red border on top */
    border-bottom: 1px solid #b71c1c;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }