/* ============================================================
   BCCSA AI Chatbot Widget — Styles
   All classes prefixed with bccsa- to avoid host page conflicts
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --bccsa-primary: #d33f4d;
    --bccsa-primary-hover: #b8333f;
    --bccsa-dark-bg: #1a1a1a;
    --bccsa-card-bg: #ffffff;
    --bccsa-citation-bg: #f5f5f5;
    --bccsa-text: #333333;
    --bccsa-placeholder: #999999;
    --bccsa-link: #1a73e8;
    --bccsa-footer: #666666;
    --bccsa-icon: #888888;
    --bccsa-disclaimer-bg: #444444;
    --bccsa-overlay-backdrop: rgba(0, 0, 0, 0.5);
}

/* --- Reset for widget elements --- */
.bccsa-widget,
.bccsa-widget *,
.bccsa-widget *::before,
.bccsa-widget *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   VIEW 1: Floating Button
   ============================================================ */
.bccsa-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bccsa-floating-btn.bccsa-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.bccsa-btn-ask {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bccsa-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: background 0.2s ease;
}

.bccsa-btn-ask:hover { background: var(--bccsa-primary-hover); }

.bccsa-btn-ask-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.bccsa-btn-ask-icon img { width: 100%; height: 100%; object-fit: cover; }

.bccsa-btn-ask-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bccsa-btn-ask-title  { font-size: 15px; font-weight: 600; }
.bccsa-btn-ask-subtitle { font-size: 11px; font-weight: 400; opacity: 0.85; }

.bccsa-btn-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bccsa-disclaimer-bg);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    transition: background 0.2s ease;
}

.bccsa-btn-disclaimer:hover { background: #555; }
.bccsa-btn-disclaimer-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   VIEW 2: AI Disclaimer Modal
   ============================================================ */
.bccsa-disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bccsa-overlay-backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bccsa-disclaimer-overlay.bccsa-active {
    opacity: 1;
    pointer-events: auto;
}

.bccsa-disclaimer-card {
    background: var(--bccsa-card-bg);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.bccsa-disclaimer-overlay.bccsa-active .bccsa-disclaimer-card { transform: translateY(0); }

.bccsa-disclaimer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--bccsa-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.bccsa-disclaimer-close:hover { background: #f0f0f0; }

.bccsa-disclaimer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bccsa-text);
    margin-bottom: 18px;
}

.bccsa-disclaimer-text p {
    font-size: 15px;
    color: var(--bccsa-text);
    line-height: 1.6;
    margin-bottom: 14px;
}

.bccsa-disclaimer-text p:last-child { margin-bottom: 0; }

/* ============================================================
   VIEW 3: Chat Overlay (Full Screen)
   ============================================================ */
.bccsa-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: var(--bccsa-dark-bg) url('chatbot-bg.jpeg') center center / cover no-repeat;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.bccsa-overlay.bccsa-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bccsa-wave-top,
.bccsa-wave-bottom { display: none; }

/* Topbar */
.bccsa-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.bccsa-topbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bccsa-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.bccsa-topbar-btn:hover { background: var(--bccsa-primary-hover); }
.bccsa-topbar-btn svg { width: 18px; height: 18px; }

/* Logo */
.bccsa-logo {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0 0 16px;
}

.bccsa-logo svg { width: 44px; height: 44px; }

.bccsa-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.bccsa-logo.bccsa-hidden { display: none; }

/* ============================================================
   Chat Content Area
   ============================================================ */
.bccsa-chat-area {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
}

.bccsa-chat-area::-webkit-scrollbar { width: 6px; }
.bccsa-chat-area::-webkit-scrollbar-track { background: transparent; }
.bccsa-chat-area::-webkit-scrollbar-thumb { background: var(--bccsa-primary); border-radius: 3px; }

/* ============================================================
   VIEW 4: Suggested Questions Card
   ============================================================ */
.bccsa-questions-card {
    background: var(--bccsa-card-bg);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 700px;
}

.bccsa-questions-card.bccsa-hidden { display: none; }

.bccsa-questions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--bccsa-text);
    font-weight: 500;
}

.bccsa-questions-header svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--bccsa-text); }

.bccsa-questions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.bccsa-questions-list::-webkit-scrollbar { width: 5px; }
.bccsa-questions-list::-webkit-scrollbar-track { background: transparent; }
.bccsa-questions-list::-webkit-scrollbar-thumb { background: var(--bccsa-primary); border-radius: 3px; }

.bccsa-question-btn {
    display: block;
    width: 100%;
    background: var(--bccsa-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.bccsa-question-btn:hover { background: var(--bccsa-primary-hover); }
.bccsa-question-btn.bccsa-hidden { display: none; }

.bccsa-questions-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--bccsa-footer);
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    padding: 4px;
    transition: color 0.2s ease;
}

.bccsa-questions-toggle:hover { color: var(--bccsa-text); }
.bccsa-questions-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.bccsa-questions-toggle.bccsa-expanded svg { transform: rotate(180deg); }

.bccsa-lang-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--bccsa-placeholder);
    line-height: 1;
}
.bccsa-lang-hint svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--bccsa-placeholder); }

/* ============================================================
   VIEW 5: Conversation Messages
   ============================================================ */
.bccsa-messages {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bccsa-messages.bccsa-hidden { display: none; }

.bccsa-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: bccsa-msg-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bccsa-msg-user { flex-direction: row-reverse; }

@keyframes bccsa-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Avatars */
.bccsa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bccsa-avatar-user { background: var(--bccsa-primary); }
.bccsa-avatar-user svg { width: 20px; height: 20px; color: #fff; }
.bccsa-avatar-ai { background: transparent; }
.bccsa-avatar-ai img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bccsa-avatar-ai svg { width: 22px; height: 22px; }

/* Bubbles */
.bccsa-bubble {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bccsa-bubble-user {
    background: var(--bccsa-primary);
    color: #fff;
    border-radius: 20px;
    max-width: 60%;
}

.bccsa-bubble-ai {
    background: var(--bccsa-card-bg);
    color: var(--bccsa-text);
    max-width: 85%;
}

/* Paragraph rhythm */
.bccsa-bubble-ai p { margin: 0 0 10px; }
.bccsa-bubble-ai strong { font-weight: 700; color: var(--bccsa-text); }
.bccsa-bubble-ai em { font-style: italic; }
.bccsa-bubble-ai a { color: var(--bccsa-link); text-decoration: none; word-break: break-word; }
.bccsa-bubble-ai a:hover { text-decoration: underline; }

/* Trim outer margins so the bubble padding is the only outer space */
.bccsa-bubble-content > :first-child { margin-top: 0; }
.bccsa-bubble-content > :last-child  { margin-bottom: 0; }

/* "Label-only" line (e.g. "**Training Details:**") collapses into the
   list or paragraph that follows — keeps related content visually grouped. */
.bccsa-md-label { margin: 6px 0 2px; font-weight: 700; color: var(--bccsa-text); }
.bccsa-md-label:first-child { margin-top: 0; }
.bccsa-md-label + ul,
.bccsa-md-label + ol,
.bccsa-md-label + p { margin-top: 0; }

/* Custom branded bullets for unordered lists */
.bccsa-bubble-ai ul {
    list-style: none;
    margin: 4px 0 12px;
    padding-left: 4px;
}
.bccsa-bubble-ai ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    line-height: 1.55;
}
.bccsa-bubble-ai ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--bccsa-primary);
    border-radius: 1px;
}
.bccsa-bubble-ai ul li:last-child { margin-bottom: 0; }

/* Numbered lists with branded number markers */
.bccsa-bubble-ai ol {
    list-style: none;
    counter-reset: bccsa-list;
    margin: 4px 0 12px;
    padding-left: 4px;
}
.bccsa-bubble-ai ol li {
    counter-increment: bccsa-list;
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    line-height: 1.55;
}
.bccsa-bubble-ai ol li::before {
    content: counter(bccsa-list) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--bccsa-primary);
    font-weight: 700;
    min-width: 22px;
}
.bccsa-bubble-ai ol li:last-child { margin-bottom: 0; }

/* Tap-to-call phone numbers and tap-to-email — branded, no-wrap so the
   number stays intact on tight mobile widths */
.bccsa-bubble-ai .bccsa-md-tel {
    color: var(--bccsa-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.bccsa-bubble-ai .bccsa-md-tel:hover { text-decoration: underline; }
.bccsa-bubble-ai .bccsa-md-email {
    color: var(--bccsa-primary);
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
}
.bccsa-bubble-ai .bccsa-md-email:hover { text-decoration: underline; }

/* Inline code */
.bccsa-md-code {
    background: #f3f3f3;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    color: #b03548;
}

/* Headings — clear hierarchy, branded h1 underline */
.bccsa-md-h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bccsa-text);
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--bccsa-primary);
    line-height: 1.3;
}
.bccsa-md-h2 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--bccsa-text);
    margin: 14px 0 4px;
    line-height: 1.3;
}
.bccsa-md-h3 {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin: 12px 0 4px;
    line-height: 1.3;
}

/* Horizontal rule — subtle accent line */
.bccsa-md-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd 20%, #ddd 80%, transparent);
    margin: 14px 0;
}

/* Blockquote */
.bccsa-md-blockquote {
    border-left: 3px solid var(--bccsa-primary);
    margin: 10px 0;
    padding: 4px 12px;
    color: #555;
    background: #f0f4f8;
    border-radius: 0 4px 4px 0;
}

/* Table */
.bccsa-md-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}
.bccsa-md-table th,
.bccsa-md-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.bccsa-md-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: var(--bccsa-text);
}
.bccsa-md-table tr:nth-child(even) td { background: #fafafa; }

/* ============================================================
   Action Buttons
   ============================================================ */
.bccsa-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.bccsa-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bccsa-icon);
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.bccsa-action-btn:hover { color: var(--bccsa-text); background: #f0f0f0; }
.bccsa-action-btn.bccsa-active { color: var(--bccsa-primary); }
.bccsa-action-btn svg { width: 18px; height: 18px; }

/* ============================================================
   VIEW 6: Citation Panel
   ============================================================ */
.bccsa-citations { margin-top: 10px; }

.bccsa-citations-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bccsa-citation-bg);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    color: var(--bccsa-footer);
    transition: background 0.2s ease;
}

.bccsa-citations-toggle:hover { background: #ebebeb; }

.bccsa-citations-toggle-left { display: flex; align-items: center; gap: 6px; }
.bccsa-citations-toggle-left svg { width: 16px; height: 16px; color: var(--bccsa-link); }
.bccsa-citations-counter { font-size: 12px; color: var(--bccsa-placeholder); }

.bccsa-citations-panel {
    display: none;
    background: var(--bccsa-citation-bg);
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    margin-top: -4px;
}

.bccsa-citations-panel.bccsa-active { display: block; }
.bccsa-citation-card { display: none; }
.bccsa-citation-card.bccsa-active { display: block; }

.bccsa-citation-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

.bccsa-citation-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bccsa-icon);
    transition: background 0.2s ease, color 0.2s ease;
}

.bccsa-citation-nav-btn:hover { background: #e0e0e0; color: var(--bccsa-text); }
.bccsa-citation-nav-btn:disabled { opacity: 0.3; cursor: default; }
.bccsa-citation-nav-btn svg { width: 14px; height: 14px; }

.bccsa-citation-title {
    font-size: 14px;
    color: var(--bccsa-link);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bccsa-citation-title:hover { text-decoration: underline; }
.bccsa-citation-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.bccsa-citation-excerpt { font-size: 13px; color: var(--bccsa-footer); line-height: 1.5; margin: 6px 0; }
.bccsa-citation-url { font-size: 12px; color: var(--bccsa-placeholder); word-break: break-all; }

/* ============================================================
   VIEW 7: Input Bar
   ============================================================ */
.bccsa-input-area {
    position: relative;
    z-index: 2;
    padding: 12px 16px 6px;
}

.bccsa-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bccsa-card-bg);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 0 0 rgba(211, 63, 77, 0);
    transition: box-shadow 0.25s ease;
}

.bccsa-input-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(211, 63, 77, 0.18);
}

.bccsa-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--bccsa-text);
    background: transparent;
    line-height: 1.4;
    padding: 8px 0;
}

.bccsa-input-field::placeholder { color: var(--bccsa-placeholder); }

.bccsa-send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bccsa-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.bccsa-send-btn:hover { background: var(--bccsa-primary-hover); }
.bccsa-send-btn:disabled { opacity: 0.4; cursor: default; }
.bccsa-send-btn svg { width: 18px; height: 18px; }

.bccsa-mic-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--bccsa-icon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0;
}

.bccsa-mic-btn:hover { color: var(--bccsa-primary); background: rgba(30, 58, 95, 0.08); }
.bccsa-mic-btn svg { width: 18px; height: 18px; }
.bccsa-mic-btn.bccsa-mic-listening { color: var(--bccsa-primary); animation: bccsa-mic-pulse 1.2s ease-in-out infinite; }
.bccsa-mic-btn.bccsa-mic-error { color: var(--bccsa-primary); opacity: 0.5; cursor: not-allowed; }
.bccsa-mic-btn.bccsa-hidden { display: none; }

@keyframes bccsa-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.4); }
    50%       { box-shadow: 0 0 0 7px rgba(30, 58, 95, 0); }
}

/* Footer — now a clickable link */
.bccsa-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 12px;
    position: relative;
    z-index: 2;
}

.bccsa-footer-sep {
    color: var(--bccsa-placeholder);
    font-size: 11px;
    line-height: 1;
}

.bccsa-footer-link {
    background: none;
    border: none;
    color: var(--bccsa-footer);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: transparent;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.bccsa-footer-link:hover {
    color: #bbb;
    text-decoration-color: #bbb;
}

/* ============================================================
   Typing Indicator
   ============================================================ */
.bccsa-typing { display: flex; gap: 10px; align-items: flex-start; }
.bccsa-typing.bccsa-hidden { display: none; }

.bccsa-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bccsa-card-bg);
    border-radius: 12px;
    padding: 14px 18px;
}

.bccsa-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    animation: bccsa-bounce 1.4s ease-in-out infinite;
}

.bccsa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.bccsa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bccsa-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-6px); }
}

/* ============================================================
   VIEW 8: About This Assistant Panel
   Slides up from the bottom, covers the full chat area.
   The topbar remains visible above it.
   ============================================================ */
.bccsa-about-panel {
    position: absolute;
    /* Sits below the topbar — top offset matches topbar height (approx 64px) */
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    background: var(--bccsa-dark-bg) url('chatbot-bg.jpeg') center center / cover no-repeat;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.bccsa-about-panel.bccsa-active {
    transform: translateY(0);
}

/* Scrollable content area inside About panel */
.bccsa-about-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 28px;
}

.bccsa-about-body::-webkit-scrollbar { width: 6px; }
.bccsa-about-body::-webkit-scrollbar-track { background: transparent; }
.bccsa-about-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Back button row */
.bccsa-about-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0 20px 0;
    transition: color 0.2s ease;
}

.bccsa-about-back:hover { color: #fff; }
.bccsa-about-back svg { width: 16px; height: 16px; }

/* Header block */
.bccsa-about-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.bccsa-about-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.bccsa-about-header-icon img { width: 100%; height: 100%; object-fit: cover; }

.bccsa-about-header-text h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.bccsa-about-header-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Content cards */
.bccsa-about-card {
    background: var(--bccsa-card-bg);
    border-radius: 12px;
    padding: 18px 18px 14px;
    margin-bottom: 12px;
}

.bccsa-about-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bccsa-primary);
    margin-bottom: 10px;
}

.bccsa-about-card p {
    font-size: 13px;
    color: #444;
    line-height: 1.65;
    margin-bottom: 8px;
}

.bccsa-about-card p:last-child { margin-bottom: 0; }

.bccsa-about-card ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bccsa-about-card ul li {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

/* CTA card */
.bccsa-about-cta {
    background: var(--bccsa-primary);
    border-radius: 12px;
    padding: 20px 18px;
    margin-top: 4px;
    text-align: center;
}

.bccsa-about-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    margin-bottom: 14px;
}

.bccsa-about-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--bccsa-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    padding: 10px 22px;
    transition: opacity 0.2s ease;
}

.bccsa-about-cta a:hover { opacity: 0.88; }
.bccsa-about-cta a svg { width: 15px; height: 15px; }

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 600px) {
    .bccsa-floating-btn { width: 160px; bottom: 12px; right: 12px; }
    .bccsa-btn-ask { font-size: 13px; padding: 8px 12px; }
    .bccsa-btn-ask-title { font-size: 13px; }
    .bccsa-btn-ask-subtitle { font-size: 10px; }
    .bccsa-topbar { padding: 10px 12px; }
    .bccsa-questions-card { border-radius: 10px; padding: 16px; }
    .bccsa-question-btn { padding: 14px 14px; font-size: 13px; }
    .bccsa-bubble-user { max-width: 75%; }
    .bccsa-bubble-ai { max-width: 92%; }
    .bccsa-disclaimer-card { padding: 24px 20px; }
    .bccsa-disclaimer-title { font-size: 20px; }
    .bccsa-disclaimer-text p { font-size: 14px; }
    .bccsa-input-bar { padding: 4px 4px 4px 16px; }
    .bccsa-about-panel { top: 54px; }
    .bccsa-about-body { padding: 16px 16px 24px; }
    .bccsa-about-card { padding: 16px 14px 12px; }
}
