﻿/*=========================================================
    ACA AI Assistant
    ChatBot.css
    Part 2.1
=========================================================*/

/*==========================
    CSS VARIABLES
==========================*/

:root {
    --aca-primary: #0d6efd;
    --aca-primary-dark: #084298;
    --aca-success: #22c55e;
    --aca-bg: #f6f8fb;
    --aca-white: #ffffff;
    --aca-text: #212529;
    --aca-text-light: #6c757d;
    --aca-border: #e5e7eb;
    --aca-shadow: 0 12px 40px rgba(0,0,0,.18);
    --aca-radius: 20px;
    --aca-transition: .25s;
    --aca-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/*==========================
    GLOBAL
==========================*/
/* Launcher is now a button, so reset browser button styling */
#acaChatLauncher {
    border: 1px solid #edf0f5;
    font-family: inherit;
    text-align: left;
}

/* Better typing indicator layout */
#acaChatWindow .aca-typing {
    flex: 0 0 auto;
    gap: 9px;
    margin: 0;
    padding: 9px 16px;
    background: #ffffff;
    border-top: 1px solid #edf1f6;
}

    #acaChatWindow .aca-typing .aca-avatar-small {
        width: 30px;
        height: 30px;
        margin: 0;
        font-size: 14px;
    }

#acaChatWindow .aca-typing-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

#acaChatWindow .aca-typing-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

    #acaChatWindow .aca-typing-dots span {
        width: 6px;
        height: 6px;
        margin: 0;
    }

#acaChatWindow .aca-typing-content small {
    color: #64748b;
    font-size: 11px;
}

/* Horizontal scrolling for suggestions on smaller screens */
@media (max-width: 600px) {
    #acaChatWindow .aca-suggestions {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

        #acaChatWindow .aca-suggestions::-webkit-scrollbar {
            display: none;
        }

    #acaChatWindow .suggestion {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #acaChatWindow .aca-help-content small {
        display: none;
    }
}

/*==========================
    FLOATING BUTTON
==========================*/

.aca-chat-launcher {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 260px;
    height: 72px;
    background: #fff;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 16px;
    box-shadow: var(--aca-shadow);
    transition: all .30s ease;
    z-index: 999999;
    border: 1px solid #edf0f5;
}

    .aca-chat-launcher:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 45px rgba(0,0,0,.20);
    }

.aca-chat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--aca-primary), #5aa7ff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    flex-shrink: 0;
}

.aca-chat-text {
    margin-left: 14px;
    line-height: 20px;
}

    .aca-chat-text strong {
        display: block;
        font-size: 16px;
        color: #111827;
        font-weight: 600;
    }

    .aca-chat-text span {
        color: #6b7280;
        font-size: 13px;
    }

/*==========================
    CHAT WINDOW
==========================*/

.aca-chat-window {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 430px;
    height: 720px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--aca-shadow);
    border: 1px solid var(--aca-border);
    z-index: 999999;
    animation: acaPopup .25s ease;
}

/*==========================
    OPEN ANIMATION
==========================*/

@keyframes acaPopup {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*==========================
    HEADER
==========================*/

.aca-chat-header {
    background: linear-gradient( 135deg, var(--aca-primary), #4f9dff);
    color: #fff;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.aca-header-left {
    display: flex;
    align-items: center;
}

.aca-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    margin-right: 12px;
}

.aca-title {
    font-size: 18px;
    font-weight: 600;
}

.aca-status {
    margin-top: 2px;
    font-size: 13px;
    color: #eef6ff;
    display: flex;
    align-items: center;
}

.status-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(34,197,94,.8);
}

/*==========================
    CLOSE BUTTON
==========================*/

.aca-btn-close {
    border: none;
    background: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: .2s;
}

    .aca-btn-close:hover {
        background: rgba(255,255,255,.18);
    }

/*==========================
    CHAT BODY
==========================*/

.aca-chat-body {
    flex: 1;
    background: var(--aca-bg);
    overflow-y: auto;
    padding: 22px;
}

    /*==========================
    SCROLL BAR
==========================*/

    .aca-chat-body::-webkit-scrollbar {
        width: 8px;
    }

    .aca-chat-body::-webkit-scrollbar-track {
        background: #f4f4f4;
    }

    .aca-chat-body::-webkit-scrollbar-thumb {
        background: #cfd8e3;
        border-radius: 30px;
    }

        .aca-chat-body::-webkit-scrollbar-thumb:hover {
            background: #b5beca;
        }

/*=========================================================
    ACA AI Assistant
    ChatBot.css
    Part 2.2
=========================================================*/

/*==========================
    MESSAGE ROW
==========================*/

.aca-message {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    animation: acaMessageIn .25s ease;
}

    .aca-message.user {
        justify-content: flex-end;
    }

@keyframes acaMessageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==========================
    AVATAR
==========================*/

.aca-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 10px;
    background: linear-gradient(135deg,#0d6efd,#6ea8fe);
    color: #fff;
}

.aca-message.user .aca-avatar-small {
    display: none;
}

/*==========================
    MESSAGE CONTENT
==========================*/

.aca-message-content {
    max-width: 82%;
}

/*==========================
    AI MESSAGE
==========================*/

.aca-message.bot .bubble {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    border-top-left-radius: 6px;
    padding: 14px 18px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/*==========================
    USER MESSAGE
==========================*/

.aca-message.user .bubble {
    background: linear-gradient(135deg,#0d6efd,#4f9dff);
    color: #ffffff;
    border-radius: 18px;
    border-top-right-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

/*==========================
    LINKS
==========================*/

.bubble a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

    .bubble a:hover {
        text-decoration: underline;
    }

/*==========================
    HEADINGS
==========================*/

.bubble h1,
.bubble h2,
.bubble h3,
.bubble h4 {
    margin: 12px 0;
    color: #111827;
}

.bubble h1 {
    font-size: 24px;
}

.bubble h2 {
    font-size: 20px;
}

.bubble h3 {
    font-size: 17px;
}

/*==========================
    PARAGRAPH
==========================*/

.bubble p {
    margin: 10px 0;
}

/*==========================
    LISTS
==========================*/

.bubble ul,
.bubble ol {
    margin: 12px 0 12px 20px;
}

.bubble li {
    margin-bottom: 6px;
}

/*==========================
    BLOCKQUOTE
==========================*/

.bubble blockquote {
    border-left: 4px solid #0d6efd;
    margin: 14px 0;
    padding: 10px 15px;
    background: #f8fbff;
    color: #555;
}

/*==========================
    TABLE
==========================*/

.bubble table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

    .bubble table th {
        background: #eef5ff;
        border: 1px solid #d8e5fb;
        padding: 10px;
        text-align: left;
    }

    .bubble table td {
        border: 1px solid #e5e7eb;
        padding: 10px;
    }

/*==========================
    INLINE CODE
==========================*/

.bubble code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 13px;
}

/*==========================
    CODE BLOCK
==========================*/

.bubble pre {
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px;
    overflow: auto;
    margin-top: 14px;
}

    .bubble pre code {
        background: none;
        color: inherit;
        padding: 0;
    }

/*==========================
    IMAGE
==========================*/

.bubble img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 10px;
}

/*==========================
    TIME
==========================*/

.aca-time {
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
}

/*==========================
    ACTIONS
==========================*/

.aca-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

    .aca-actions button {
        border: none;
        background: transparent;
        cursor: pointer;
        color: #6b7280;
        font-size: 13px;
        transition: .25s;
    }

        .aca-actions button:hover {
            color: #0d6efd;
        }

/*==========================
    COPY BUTTON
==========================*/

.btn-copy::before {
    content: "📋 ";
}

/*==========================
    LIKE
==========================*/

.btn-like::before {
    content: "👍 ";
}

/*==========================
    DISLIKE
==========================*/

.btn-dislike::before {
    content: "👎 ";
}

/*==========================
    TYPING
==========================*/

.aca-typing {
    display: flex;
    align-items: center;
    margin: 10px 20px;
    color: #6b7280;
    font-size: 14px;
}

    .aca-typing span {
        width: 8px;
        height: 8px;
        margin-right: 5px;
        border-radius: 50%;
        background: #0d6efd;
        animation: acaTyping 1.2s infinite;
    }

        .aca-typing span:nth-child(2) {
            animation-delay: .2s;
        }

        .aca-typing span:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes acaTyping {

    0%, 80%, 100% {
        transform: scale(.5);
        opacity: .3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/*=========================================================
    ACA AI Assistant
    ChatBot.css
    Part 2.3
=========================================================*/

/*=========================================================
    SUGGESTED QUESTIONS
=========================================================*/

.aca-suggestions {
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion {
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 30px;
    background: #f3f6fb;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    transition: all .25s ease;
}

    .suggestion:hover {
        background: #0d6efd;
        color: #fff;
        transform: translateY(-2px);
    }

    .suggestion:active {
        transform: scale(.97);
    }

/*=========================================================
    QUICK ACTION CARDS
=========================================================*/

.aca-card {
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all .25s;
}

    .aca-card:hover {
        border-color: #0d6efd;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

.aca-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.aca-card-desc {
    color: #6b7280;
    font-size: 13px;
}

/*=========================================================
    CHAT FOOTER
=========================================================*/

.aca-chat-footer {
    background: #ffffff;
    border-top: 1px solid #edf1f6;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/*=========================================================
    ICON BUTTONS
=========================================================*/

.aca-footer-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f5f7fb;
    cursor: pointer;
    font-size: 18px;
    transition: all .25s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .aca-footer-btn:hover {
        background: #0d6efd;
        color: #fff;
    }

    .aca-footer-btn:active {
        transform: scale(.95);
    }

/*=========================================================
    MESSAGE TEXTBOX
=========================================================*/

#txtMessage {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 140px;
    overflow-y: auto;
    padding: 12px 16px;
    border-radius: 24px;
    background: #f5f7fb;
    font-size: 15px;
    line-height: 22px;
    font-family: inherit;
    transition: .25s;
}

    #txtMessage:focus {
        background: #ffffff;
        box-shadow: 0 0 0 2px rgba(13,110,253,.15);
    }

/*=========================================================
    SEND BUTTON
=========================================================*/

.aca-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient( 135deg, #0d6efd, #5aa7ff);
    color: #ffffff;
    font-size: 18px;
    transition: all .25s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .aca-send:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(13,110,253,.35);
    }

    .aca-send:active {
        transform: scale(.96);
    }

/*=========================================================
    FOOTER LINKS
=========================================================*/

.aca-bottom-links {
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #edf1f6;
    padding: 10px;
    font-size: 13px;
}

    .aca-bottom-links a {
        color: #0d6efd;
        text-decoration: none;
        margin: 0 8px;
        font-weight: 500;
    }

        .aca-bottom-links a:hover {
            text-decoration: underline;
        }

/*=========================================================
    FILE UPLOAD
=========================================================*/

#fileUpload {
    display: none;
}

/*=========================================================
    LOADING OVERLAY
=========================================================*/

.aca-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.aca-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #dbeafe;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: acaSpin 1s linear infinite;
}

@keyframes acaSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*=========================================================
    SCROLL TO BOTTOM BUTTON
=========================================================*/

.aca-scroll-bottom {
    position: absolute;
    right: 18px;
    bottom: 92px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    cursor: pointer;
    display: none;
    transition: .25s;
}

    .aca-scroll-bottom:hover {
        background: #0d6efd;
        color: #ffffff;
    }
/*=========================================================
    ACA AI Assistant
    ChatBot.css
    Part 2.4
=========================================================*/

/*=========================================================
    MOBILE (TABLETS)
=========================================================*/

@media (max-width:992px) {

    .aca-chat-window {
        width: 380px;
        height: 680px;
        right: 18px;
        bottom: 95px;
    }

    .aca-chat-launcher {
        width: 230px;
    }
}

/*=========================================================
    MOBILE (PHONES)
=========================================================*/

@media (max-width:768px) {

    .aca-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        margin: 0;
        z-index: 9999999;
    }

    .aca-chat-launcher {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .aca-chat-text {
        display: none;
    }
}

/*=========================================================
    VERY SMALL PHONES
=========================================================*/

@media (max-width:480px) {

    .aca-chat-body {
        padding: 16px;
    }

    .bubble {
        font-size: 14px;
    }

    .aca-chat-header {
        padding: 14px;
    }
}

/*=========================================================
    INPUT PLACEHOLDER
=========================================================*/

#txtMessage::placeholder {
    color: #9ca3af;
}

/*=========================================================
    SELECTION
=========================================================*/

::selection {
    background: #dbeafe;
}

/*=========================================================
    LINKS
=========================================================*/

a {
    transition: .25s;
}

/*=========================================================
    BUTTONS
=========================================================*/

button {
    outline: none;
}

    /*=========================================================
    FOCUS
=========================================================*/

    button:focus,
    textarea:focus {
        outline: none;
    }

/*=========================================================
    PULSE
=========================================================*/

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,.45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34,197,94,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

.status-dot {
    animation: pulse 2s infinite;
}

/*=========================================================
    CHAT LAUNCHER BADGE
=========================================================*/

.aca-chat-launcher::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
}

/*=========================================================
    CHAT SHADOW
=========================================================*/

.aca-chat-window {
    backdrop-filter: blur(8px);
}

/*=========================================================
    HOVER
=========================================================*/

.bubble {
    transition: .25s;
}

    .bubble:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }

    /*=========================================================
    IMAGE
=========================================================*/

    .bubble img {
        cursor: pointer;
        transition: .25s;
    }

        .bubble img:hover {
            transform: scale(1.02);
        }

/*=========================================================
    DISABLED
=========================================================*/

button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/*=========================================================
    HR
=========================================================*/

.bubble hr {
    border: none;
    border-top: 1px solid #edf1f5;
    margin: 16px 0;
}

/*=========================================================
    BADGE
=========================================================*/

.aca-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

/*=========================================================
    SUCCESS
=========================================================*/

.aca-success {
    color: #16a34a;
}

/*=========================================================
    ERROR
=========================================================*/

.aca-error {
    color: #dc2626;
}

/*=========================================================
    WARNING
=========================================================*/

.aca-warning {
    color: #d97706;
}

/*=========================================================
    INFO
=========================================================*/

.aca-info {
    color: #2563eb;
}

/*=========================================================
    TABLE STRIPES
=========================================================*/

.bubble table tr:nth-child(even) {
    background: #fafafa;
}

/*=========================================================
    CHAT FADE
=========================================================*/

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.aca-chat-window {
    animation: fadeIn .25s;
}

/*=========================================================
    DARK MODE (AUTO)
=========================================================*/

@media (prefers-color-scheme:dark) {

    .aca-chat-window {
        background: #1f2937;
        border-color: #374151;
    }

    .aca-chat-body {
        background: #111827;
    }

    .aca-chat-footer {
        background: #1f2937;
        border-top-color: #374151;
    }

    .aca-bottom-links {
        background: #1f2937;
        border-top-color: #374151;
    }

    .aca-message.bot .bubble {
        background: #374151;
        color: #ffffff;
        border-color: #4b5563;
    }

    #txtMessage {
        background: #374151;
        color: #ffffff;
    }

    .suggestion {
        background: #374151;
        color: #ffffff;
    }

    .aca-card {
        background: #374151;
        color: #ffffff;
        border-color: #4b5563;
    }
}

/*=========================================================
    PRINT
=========================================================*/

@media print {

    .aca-chat-launcher,
    .aca-chat-window {
        display: none !important;
    }
}
/*=========================================================
    ACA CHATBOT - FINAL CONFLICT FIXES
=========================================================*/

/* Prevent website/global anchor styles from affecting chatbot */
#acaChatWindow .aca-bottom-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;
    min-height: 48px;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

    /* Reset conflicting website link/button styles */
    #acaChatWindow .aca-bottom-links a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 4px 2px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #2563eb !important;
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        float: none !important;
        position: static !important;
    }

        #acaChatWindow .aca-bottom-links a:hover,
        #acaChatWindow .aca-bottom-links a:focus {
            color: #1d4ed8 !important;
            background: transparent !important;
            text-decoration: underline !important;
            transform: none !important;
        }

        /* Add separators between bottom links */
        #acaChatWindow .aca-bottom-links a:not(:last-child)::after {
            content: "•";
            display: inline-block;
            margin-left: 14px;
            color: #cbd5e1;
            text-decoration: none;
        }

/* Remove manually typed pipe characters if still present */
#acaChatWindow .aca-bottom-links {
    color: transparent;
}

    #acaChatWindow .aca-bottom-links a {
        color: #2563eb !important;
    }

/* Keep chatbot sections inside the available height */
#acaChatWindow {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    /* The message area must be the flexible scrolling section */
    #acaChatWindow .aca-chat-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 20px;
    }

    /* Suggestions should not cover message content */
    #acaChatWindow .aca-suggestions {
        flex: 0 0 auto;
        max-height: 126px;
        overflow-y: auto;
        padding: 12px 14px;
    }

    /* Footer must remain at the bottom */
    #acaChatWindow .aca-chat-footer {
        flex: 0 0 auto;
        min-height: 72px;
    }

    /* Keep suggestion buttons consistent */
    #acaChatWindow .suggestion {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        min-width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px 17px !important;
        border: 1px solid transparent !important;
        border-radius: 999px !important;
        background: #f1f5f9 !important;
        color: #334155 !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        box-shadow: none !important;
        float: none !important;
    }

        #acaChatWindow .suggestion:hover {
            background: #e0edff !important;
            border-color: #bfdbfe !important;
            color: #1d4ed8 !important;
        }

    /* Reset textarea styles inherited from the website */
    #acaChatWindow #txtMessage {
        display: block !important;
        width: auto !important;
        flex: 1 1 auto;
        margin: 0 !important;
        padding: 12px 16px !important;
        border: 1px solid transparent !important;
        border-radius: 24px !important;
        background: #f1f5f9 !important;
        color: #1f2937 !important;
        font-family: inherit !important;
        font-size: 15px !important;
        line-height: 21px !important;
        box-shadow: none !important;
    }

        #acaChatWindow #txtMessage:focus {
            border-color: #bfdbfe !important;
            background: #ffffff !important;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
        }

    /* Reset footer icon buttons */
    #acaChatWindow .aca-footer-btn,
    #acaChatWindow .aca-send {
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        position: static !important;
        text-decoration: none !important;
    }

    /* Improve initial welcome bubble spacing */
    #acaChatWindow .aca-message.bot .bubble {
        width: 100%;
    }

    #acaChatWindow .aca-list {
        margin: 12px 0 0 20px;
        padding: 0;
    }

        #acaChatWindow .aca-list li {
            margin: 7px 0;
        }

/* Mobile fixes */
@media (max-width: 768px) {
    #acaChatWindow .aca-bottom-links {
        min-height: 44px;
        padding: 8px 10px !important;
        gap: 4px 10px !important;
    }

        #acaChatWindow .aca-bottom-links a {
            font-size: 11px !important;
        }

            #acaChatWindow .aca-bottom-links a:not(:last-child)::after {
                margin-left: 10px;
            }

    #acaChatWindow .aca-suggestions {
        max-height: 118px;
    }

    #acaChatWindow .aca-chat-footer {
        padding: 10px !important;
    }
}
/*=========================================================
    COMPACT MODERN WELCOME PANEL
=========================================================*/

#acaChatWindow .aca-welcome-bubble {
    padding: 18px !important;
}

#acaChatWindow .aca-welcome-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

#acaChatWindow .aca-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eff6ff;
    font-size: 22px;
    flex-shrink: 0;
}

#acaChatWindow .aca-welcome-title strong {
    display: block;
    margin-bottom: 2px;
    color: #111827;
    font-size: 17px;
    line-height: 1.25;
}

#acaChatWindow .aca-welcome-title div span {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

#acaChatWindow .aca-welcome-text {
    margin: 0 0 15px !important;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

#acaChatWindow .aca-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

#acaChatWindow .aca-help-item {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

    #acaChatWindow .aca-help-item span {
        font-size: 16px;
        flex-shrink: 0;
    }

    #acaChatWindow .aca-help-item:hover {
        border-color: #bfdbfe !important;
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        transform: translateY(-1px);
    }
    #acaChatWindow .aca-help-item > span:first-child {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        background: #eef5ff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
    }

#acaChatWindow .aca-help-content {
    display: block;
    min-width: 0;
}

    #acaChatWindow .aca-help-content strong {
        display: block;
        margin-bottom: 3px;
        color: #334155;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    #acaChatWindow .aca-help-content small {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 400;
        line-height: 1.35;
    }

/* Make suggestions slightly smaller */
#acaChatWindow .aca-suggestions {
    padding: 10px 12px;
    gap: 7px;
}

#acaChatWindow .suggestion {
    padding: 9px 14px !important;
    font-size: 12px !important;
}

/* Improve input area proportions */
#acaChatWindow .aca-chat-footer {
    padding: 11px 12px !important;
    gap: 9px;
}

#acaChatWindow .aca-footer-btn {
    width: 44px;
    height: 44px;
}

#acaChatWindow .aca-send {
    width: 52px;
    height: 52px;
}

/* Keep the white bubble from occupying excessive height */
#acaChatWindow .aca-message.bot {
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    #acaChatWindow .aca-help-grid {
        grid-template-columns: 1fr 1fr;
    }

    #acaChatWindow .aca-help-item {
        min-height: 48px;
        padding: 9px 10px !important;
        font-size: 11px !important;
    }
}
/*=========================================================
    ACA CHATBOT - DESKTOP/LAPTOP FINAL LAYOUT FIX
=========================================================*/

/* Main window */
#acaChatWindow.aca-chat-window {
    position: fixed !important;
    top: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    width: 440px !important;
    height: min(720px, calc(100vh - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    z-index: 2147483000 !important;
}

/* Keep the header permanently visible */
#acaChatWindow .aca-chat-header {
    position: relative !important;
    top: auto !important;
    display: flex !important;
    flex: 0 0 78px !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 78px !important;
    height: 78px !important;
    padding: 14px 16px !important;
    background: linear-gradient( 135deg, #0d6efd, #4f9dff ) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: visible !important;
    z-index: 20 !important;
}

/* Header title area */
#acaChatWindow .aca-header-left {
    display: flex !important;
    align-items: center !important;
    min-width: 0;
}

#acaChatWindow .aca-header-content {
    min-width: 0;
}

#acaChatWindow .aca-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

#acaChatWindow .aca-status {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12px !important;
}

/* Right-side header controls */
#acaChatWindow .aca-header-right {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: 12px !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 30 !important;
}

/* Minimize and close buttons */
#acaChatWindow .aca-header-action,
#acaChatWindow #btnMinimizeChat,
#acaChatWindow #btnCloseChat {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    float: none !important;
}

    #acaChatWindow .aca-header-action:hover,
    #acaChatWindow #btnMinimizeChat:hover,
    #acaChatWindow #btnCloseChat:hover {
        background: rgba(255, 255, 255, 0.26) !important;
        color: #ffffff !important;
        transform: none !important;
    }

/* Content below header */
#acaChatWindow .aca-chat-content {
    position: relative !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f6f8fb !important;
}

/* Only this area should scroll */
#acaChatWindow #chatMessages,
#acaChatWindow .aca-chat-body {
    position: relative !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    background: #f6f8fb !important;
}

    /* Make scrollbar clear and usable */
    #acaChatWindow #chatMessages::-webkit-scrollbar {
        width: 10px;
    }

    #acaChatWindow #chatMessages::-webkit-scrollbar-track {
        background: #eef2f7;
    }

    #acaChatWindow #chatMessages::-webkit-scrollbar-thumb {
        background: #aeb9c8;
        border: 2px solid #eef2f7;
        border-radius: 20px;
    }

        #acaChatWindow #chatMessages::-webkit-scrollbar-thumb:hover {
            background: #8794a6;
        }

/* Firefox scrollbar */
#acaChatWindow #chatMessages {
    scrollbar-width: thin;
    scrollbar-color: #aeb9c8 #eef2f7;
}

/* Typing section should not scroll with messages */
#acaChatWindow .aca-typing {
    flex: 0 0 auto !important;
}

/* Suggestions in one horizontal line */
#acaChatWindow .aca-suggestions {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-height: none !important;
    padding: 9px 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

#acaChatWindow .aca-suggestions-scroll {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px;
    scrollbar-width: none;
}

    #acaChatWindow .aca-suggestions-scroll::-webkit-scrollbar {
        display: none;
    }

#acaChatWindow .suggestion {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
}

/* Input stays at bottom */
#acaChatWindow .aca-chat-footer {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 74px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    overflow: visible !important;
}

/* Textarea wrapper */
#acaChatWindow .aca-input-wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    min-width: 0 !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 26px !important;
    background: #f3f6fa !important;
}

/* Fix native textarea scrollbar appearance */
#acaChatWindow #txtMessage {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    max-height: 110px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 0 !important;
    outline: 0 !important;
    resize: none !important;
    overflow-y: auto !important;
    background: transparent !important;
    color: #1f2937 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 21px !important;
    box-shadow: none !important;
}

    #acaChatWindow #txtMessage::-webkit-scrollbar {
        width: 5px;
    }

    #acaChatWindow #txtMessage::-webkit-scrollbar-thumb {
        background: #aeb8c6;
        border-radius: 10px;
    }

/* Footer buttons */
#acaChatWindow .aca-footer-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    font-size: 18px !important;
}

#acaChatWindow .aca-send {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
}

/* Bottom footer stays visible */
#acaChatWindow .aca-bottom-links {
    display: flex !important;
    flex: 0 0 46px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 46px !important;
    padding: 8px 18px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Scroll-to-bottom button */
#acaChatWindow .aca-scroll-bottom {
    position: absolute !important;
    right: 18px !important;
    bottom: 146px !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 15 !important;
    background: #ffffff !important;
    color: #334155 !important;
}

/*=========================================================
    ERROR MESSAGE FIX
=========================================================*/

#acaChatWindow .aca-error {
    display: block !important;
    margin-bottom: 8px !important;
    color: #dc2626 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Reset global site button styles on phone link */
#acaChatWindow .aca-message .bubble a[href^="tel:"] {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #0d6efd !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    position: static !important;
    float: none !important;
}

/* Error paragraph */
#acaChatWindow .aca-message .bubble > p {
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Prevent extremely narrow bot messages */
#acaChatWindow .aca-message.bot .aca-message-content {
    width: calc(100% - 48px) !important;
    max-width: calc(100% - 48px) !important;
    min-width: 0 !important;
}

#acaChatWindow .aca-message.bot .bubble {
    width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

/* User messages */
#acaChatWindow .aca-message.user .aca-message-content {
    max-width: 84% !important;
}

/*=========================================================
    MOBILE
=========================================================*/

@media (max-width: 768px) {
    #acaChatWindow.aca-chat-window {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    #acaChatWindow .aca-chat-header {
        border-radius: 0 !important;
    }

    #acaChatWindow .aca-bottom-links {
        justify-content: center !important;
    }
}
#acaChatWindow .aca-error-help {
    display: block !important;
    margin-top: 8px !important;
    color: #64748b !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

    #acaChatWindow .aca-error-help .aca-phone-link {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        color: #0d6efd !important;
        font-size: inherit !important;
        font-weight: 700 !important;
        line-height: inherit !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }