/* ==========================================================================
   Soltech Energy - Ultra-Premium Modernized Chatbot Layout Overhaul
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-blue: #28478f;
    --brand-blue-dark: #17306d;
    --brand-yellow: #ffc20a;
    --brand-green: #009a44;
    --brand-green-dark: #08773a;
    --primary-blue: var(--brand-blue-dark);
    --light-bg: #f8fafc;
    --text-dark: #334155;
    --border-color: #e2e8f0;
    --accent-orange: linear-gradient(135deg, var(--brand-yellow) 0%, #f6a800 100%);
    --btn-blue: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    --premium-glass: rgba(255, 255, 255, 0.94);
}

/* ── UTILITIES ── */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── MODERN CHATBOT WINDOW CONTAINER ── */
#chatbot-container, 
.chatbot-container {
    position: fixed;
    bottom: 105px; 
    right: 25px;
    width: 380px;
    height: 540px; 
    background: var(--premium-glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    z-index: 100000 !important; 
    transform: translateY(40px) scale(0.85);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

#chatbot-container.open,
.chatbot-container.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* ── LUXURY HEADER ALIGNMENT RULES ── */
.chat-header {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)) !important;
    padding: 14px 16px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
}

.chat-header-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-left,
.chat-header-left-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
}

/* Precision Circle-In-A-Circle Geometric Architecture */
.chat-header-logo-outer-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 194, 10, 0.95), rgba(255, 255, 255, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(4, 15, 45, 0.18);
}

.chat-header-logo-inner-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.chat-header-logo-inner-ring img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-title {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.status-indicator {
    color: #d8f8e5;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
    margin-top: 4px;
}

.status-indicator span {
    width: 7px;
    height: 7px;
    background-color: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 154, 68, 0.9);
    display: inline-block;
}

.company-logo-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.chat-company-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

/* Prevent dynamic logos from exploding the template space */
.chat-box img, 
.company-logo-container img {
    max-width: 120px !important;
    max-height: 45px !important;
    object-fit: contain;
    display: inline-block;
    margin: 0;
}

.bot-avatar {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-info,
.chat-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-header h3,
.chat-header-title {
    margin: 0 !important;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.status,
.chat-header-status {
    font-size: 11px;
    color: #34d399 !important;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.status::before,
.chat-header-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #34d399;
}

/* ── PRECISE HEADER CONTROLS GROUP WORKSPACE ── */
.header-actions,
.chat-header-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

.header-actions > button,
.chat-header-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-left: 0;
    border-radius: 8px;
    opacity: 0.82;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-actions > button:hover,
.chat-header-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Compact Pill Multi-Language Bar Workspace */
.premium-lang-bar {
    display: flex !important;
    gap: 2px !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-toggle-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.lang-toggle-btn:hover {
    color: #ffffff !important;
}

.lang-toggle-btn.active-lang {
    background-color: #ffffff !important;
    color: #ff6b00 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* Clean single-line Language Switcher inside header options */
.lang-switcher {
    display: flex;
    gap: 3px;
    margin-right: 4px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.lang-btn {
    background: transparent;
    border: 0;
    color: white;
    min-width: 30px;
    height: 24px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
}

.lang-btn.active,
.lang-btn.active-lang {
    background: white;
    color: var(--brand-blue-dark) !important;
    font-weight: bold;
}

/* ── SCROLLING CHAT CONTAINER ── */
#chat-box,
.chat-box {
    flex: 1;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.96)) !important;
    padding: 16px 14px;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-sizing: border-box;
}

.chat-box::-webkit-scrollbar {
    width: 8px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

/* ── MESSAGE BUBBLES ── */
.bot-message, 
.user-message {
    display: flex;
    max-width: 92%;
    word-wrap: break-word;
    animation: bubbleSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bubbleSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    padding: 12px 18px;
    font-size: 13.5px;
    line-height: 1.6;
    border-radius: 18px;
}

.bot-message .message-content {
    background-color: #ffffff !important;
    color: var(--text-dark);
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: var(--btn-blue) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.message-content a.download-link {
    color: var(--brand-blue);
    font-weight: 700;
    text-decoration: underline;
}

/* Horizontal Sticky Tabs Navigation Engine UI */
.horizontal-tabs-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 8px !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box;
    z-index: 10;
}

.tab-nav-btn {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    min-height: 38px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 6px 4px !important; /* Slightly tighter padding to prevent text overflow */
    font-size: 10.5px !important;  /* Fits "Download Brochure" on a single line */
    font-weight: 700;
    color: var(--brand-blue-dark);
    text-align: center;
    cursor: pointer;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.tab-nav-btn i {
    color: var(--brand-green);
    margin-right: 3px;
}

.tab-nav-btn:hover {
    background: var(--brand-blue) !important;
    color: #ffffff !important;
    border-color: var(--brand-blue) !important;
}

.tab-nav-btn:hover i {
    color: var(--brand-yellow) !important;
}

.action-chip,
.quick-actions-wrapper button,
.action-menu-btn {
    background-color: #ffffff !important;
    color: var(--brand-blue-dark) !important;
    border: 1px solid #dbe3ef !important;
    transition: all 0.2s ease-in-out !important;
}

.action-chip:hover,
.quick-actions-wrapper button:hover,
.action-menu-btn:hover {
    background-color: #fefce8 !important; /* Soft subtle tint instead of solid yellow */
    border-color: #facc15 !important;      /* Yellow border accent */
    color: #0f172a !important;             /* Dark high-contrast text */
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.25) !important; /* Soft yellow subtle glow */
}

.gated-form-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    text-align: left !important;
    justify-content: flex-start;
}

.gated-form-title,
.gated-form-title *,
.gated-form-desc,
.gated-form-desc * {
    text-align: left !important;
    display: block;
}

.gated-form-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--btn-blue));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.gated-form-title {
    font-size: 15px;
    color: #1a252f;
    margin-bottom: 3px;
}

.gated-form-desc {
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
}

.gated-form-content input[type="text"] {
    border-radius: 10px;
}

.gated-form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.gated-form-cancel-link {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
}

.gated-form-cancel-link:hover {
    color: #64748b;
}

.bill-option-btn {
    font-size: 11.5px !important;
    padding: 6px 10px !important;
}

.bill-option-btn.bill-selected {
    background: var(--btn-blue) !important;
    color: #ffffff !important;
    border-color: var(--btn-blue) !important;
}

/* ── HORIZONTAL CHIP SYSTEM ROWS ── */
.quick-actions-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 4px 0 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    margin-top: 4px;
    margin-bottom: 4px;
    align-self: flex-start;
    max-width: 100%;
}

.quick-btn {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important; 
    color: #334155 !important;             
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.quick-btn i {
    width: 18px;
    min-width: 18px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}

.quick-btn:hover {
    background: #e0f2fe !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2) !important;
}

.quick-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04) !important;
}

/* Premium active modifiers */
.quick-btn.orange-quote-btn {
    background: var(--accent-orange) !important;
    color: var(--brand-blue-dark) !important;
    border: none !important;
    font-weight: 600 !important;
}

.quick-btn.orange-quote-btn:hover {
    background-color: #cbd5e1 !important;  
    border-color: #cbd5e1 !important;      
    color: #0f172a !important;             
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(203, 213, 225, 0.6) !important;
}

.wa-direct-btn {
    border-color: #25d366 !important;
    color: #128c7e !important;
}

.wa-direct-btn:hover {
    background: linear-gradient(135deg, #25d366 0%, #1ea952 100%) !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
}

.quick-btn.back-btn {
    background: #f8fafc !important;
    border: 1.5px dashed #94a3b8 !important;
    color: #475569 !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.quick-btn.back-btn:hover {
    background: #f1f5f9 !important;
    border-color: #64748b !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Gated Lead verification specific forms inputs */
.lead-form-card input[type="text"],
.lead-form-card input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.lead-form-card input:focus {
    border-color: #2563eb;
}

.verify-btn {
    min-height: 48px;
    padding: 0 18px;
    background: #17306d !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(23, 48, 109, 0.18);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.verify-btn:hover {
    background: #17306d !important;
    color: #ffffff !important;
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.20);
}

.lead-form-card .message-content > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch;
}

.lead-form-card .verify-btn {
    width: 100%;
}

.lead-form-card .back-btn {
    min-height: 48px;
    border-radius: 999px !important;
    white-space: normal !important;
    line-height: 1.25;
}

/* ── TYPING ACTIVITY LOADING DOTS ── */
.typing-indicator,
.typing-indicator-wrapper {
    padding: 4px 20px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-bubble {
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 4px 16px 16px 16px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.typing-bubble span,
.typing-indicator-wrapper span {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: premiumBlink 1.4s infinite ease-in-out both;
}

.typing-bubble span:nth-child(1),
.typing-indicator-wrapper span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2),
.typing-indicator-wrapper span:nth-child(2) { animation-delay: -0.16s; }

#chat-typing-indicator.hidden {
    display: none !important;
}

@keyframes premiumBlink {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* ── INTERACTION ROW FOOTER STYLING ── */
.chat-footer,
.chat-input-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background-color: #ffffff !important;
    padding: 12px 16px !important;
    border-top: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

/* Primary High-Conversion WhatsApp Button Banner */
.whatsapp-footer-cta {
    width: 100% !important;
    height: 42px !important; 
    box-sizing: border-box !important;
    background: var(--brand-green) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important; 
    letter-spacing: 0 !important;
    text-transform: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.whatsapp-footer-cta:hover {
    background: var(--brand-green-dark) !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-1px) !important;
}

.whatsapp-footer-cta:active {
    transform: translateY(1px) !important; 
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.15) !important;
}

.whatsapp-footer-cta i {
    font-size: 16px !important;
}

/* Manual Text Input Workspace Row */
.typing-row {
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.chat-input-field,
.typing-row input[type="text"],
#user-input {
    flex: 1 !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important; 
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: border-color 0.15s ease !important;
}

.chat-input-field:focus,
.typing-row input[type="text"]:focus,
#user-input:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(40, 71, 143, 0.12) !important;
}

.chat-submit-btn,
.typing-row button,
#send-btn {
    background: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.chat-submit-btn:hover,
.typing-row button:hover,
#send-btn:hover {
    background: #172554 !important;
    color: #ffffff;
    transform: translateY(-1px); /* Gentle tactile lift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); /* Soft black outer glow */
}

.chat-submit-btn i,
.typing-row button i,
#send-btn i {
    font-size: 14px !important;
    color: #ffffff !important;
    transition: color 0.2s ease !important;
}

.chat-submit-btn:hover i,
.typing-row button:hover i,
#send-btn:hover i {
    color: var(--brand-yellow) !important; /* Icon turns yellow on hover */
}

/* ── FLOATER TRIGGER PANEL ── */
#chat-toggle,
.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: var(--brand-blue-dark);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 194, 10, 0.35);
    z-index: 100001 !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
                     iconAttention 1.8s ease-in-out infinite 4s;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-toggle:hover,
.chat-toggle:hover {
    transform: scale(1.15) rotate(15deg) !important;
    box-shadow: 0 14px 32px rgba(230, 92, 0, 0.5) !important;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(255, 194, 10, 0.55);
    outline-offset: 2px;
}

@keyframes iconEntrance {
    0% { transform: scale(0) translateY(100px) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.15) translateY(-5px) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
}

@keyframes iconAttention {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 8px 24px rgba(230, 92, 0, 0.3); }
    8% { transform: scale(1.14) translateY(-6px) rotate(-10deg); box-shadow: 0 16px 32px rgba(230, 92, 0, 0.45); }
    14% { transform: scale(1.14) translateY(-6px) rotate(12deg); }
    20% { transform: scale(1.14) translateY(-6px) rotate(-6deg); }
    26% { transform: scale(1.14) translateY(-6px) rotate(4deg); }
    32% { transform: scale(1) translateY(0) rotate(0deg); box-shadow: 0 8px 24px rgba(230, 92, 0, 0.3); }
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* ── MODAL UTILITIES ── */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.calculator-content {
    background: #ffffff;
    padding: 36px;
    border-radius: 24px;
    position: relative;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#close-calculator {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

#close-calculator:hover {
    color: #ef4444;
}

/* ── RESPONSIVE OVERRIDES ── */
@media (max-width: 480px) {
    body.chat-is-open #chat-toggle,
    body.chat-is-open .chat-toggle {
        display: none !important;
    }

    #chatbot-container, 
    .chatbot-container {
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }

    .chat-header {
        padding: 12px;
        gap: 10px;
    }

    .welcome-title {
        font-size: 13px;
    }

    .quick-btn {
        flex: 1 1 calc(50% - 8px);
        min-height: 40px;
        white-space: normal !important;
        text-align: center;
    }

    .lead-form-card .message-content > div:last-child {
        grid-template-columns: 1fr;
    }

    .chat-header-logo-outer-ring {
        width: 48px;
        height: 48px;
    }

    .chat-header-logo-inner-ring {
        width: 40px;
        height: 40px;
    }
}
