/* MAINTEX Chatbot Widget Styles */
.mtx-chatbot-launcher{position:fixed;bottom:24px;right:24px;width:68px;height:68px;border-radius:50%;background:#fff;border:3px solid #1E3A8A;cursor:pointer;box-shadow:0 14px 36px rgba(30,58,138,0.5),0 0 0 6px rgba(30,58,138,0.12);transform:scale(1.04);transform-origin:center;transition:all 0.3s ease;z-index:99998;display:flex;align-items:center;justify-content:center;color:#fff;transition:transform .2s ease,box-shadow .2s ease;font-family:'Plus Jakarta Sans',sans-serif}
.mtx-chatbot-launcher:hover{transform:scale(1);box-shadow:0 6px 18px rgba(30,58,138,0.3),0 0 0 3px rgba(30,58,138,0.06)}
.mtx-chatbot-launcher svg{width:52px !important;height:52px !important;display:block !important;overflow:visible !important;position:relative;z-index:1}
.mtx-chatbot-launcher .mtx-chatbot-badge{position:absolute;top:-4px;right:-4px;background:#F97316;color:#fff;font-size:11px;font-weight:800;border-radius:10px;padding:2px 7px;border:2px solid #fff;box-shadow:0 2px 6px rgba(249,115,22,0.5)}
.mtx-chatbot-launcher .mtx-chatbot-pulse{position:absolute;top:-3px;left:-3px;right:-3px;bottom:-3px;border-radius:50%;background:rgba(30,58,138,0.25);animation:mtxPulse 2s infinite;pointer-events:none;z-index:0}
@keyframes mtxPulse{0%{transform:scale(1);opacity:0.6}100%{transform:scale(1.6);opacity:0}}
.mtx-chatbot-window{position:fixed;bottom:96px;right:24px;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 24px 64px rgba(15,23,42,0.22);z-index:99999;display:none;flex-direction:column;overflow:hidden;font-family:'Roboto','Plus Jakarta Sans',sans-serif;border:1px solid #E2E8F0}
.mtx-chatbot-window.is-open{display:flex;animation:mtxSlideIn .25s ease}
@keyframes mtxSlideIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.mtx-chatbot-header{padding:16px 18px;background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%);color:#fff;display:flex;align-items:center;gap:12px;flex-shrink:0}
.mtx-chatbot-header-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#F97316,#EA580C);display:flex;align-items:center;justify-content:center;font-weight:800;font-family:'Plus Jakarta Sans',sans-serif;font-size:16px;border:2px solid rgba(255,255,255,0.3)}
.mtx-chatbot-header-info{flex:1;min-width:0}
.mtx-chatbot-header-name{font-weight:700;font-family:'Plus Jakarta Sans',sans-serif;font-size:15px}
.mtx-chatbot-header-sub{font-size:11px;color:rgba(255,255,255,0.75);display:flex;align-items:center;gap:5px}
.mtx-chatbot-header-sub::before{content:'';width:7px;height:7px;border-radius:50%;background:#10B981;display:inline-block}
.mtx-chatbot-close{background:none;border:none;color:#fff;cursor:pointer;padding:6px;opacity:0.85;transition:opacity .15s}
.mtx-chatbot-close:hover{opacity:1}
.mtx-chatbot-close svg{width:20px;height:20px}
.mtx-chatbot-body{flex:1;overflow-y:auto;padding:16px;background:#F8FAFC;display:flex;flex-direction:column;gap:10px}
.mtx-chatbot-msg{max-width:85%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.5;word-wrap:break-word;animation:mtxMsgIn .2s ease}
@keyframes mtxMsgIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.mtx-chatbot-msg-bot{background:#fff;color:#1E293B;align-self:flex-start;border:1px solid #E2E8F0;border-bottom-left-radius:4px}
.mtx-chatbot-msg-user{background:linear-gradient(135deg,#1E3A8A,#1E40AF);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.mtx-chatbot-msg-system{background:#FFF7ED;color:#9A3412;align-self:center;font-size:12px;padding:8px 12px;text-align:center;border:1px dashed #FDBA74}
.mtx-chatbot-typing{display:flex;gap:4px;align-self:flex-start;padding:12px 16px;background:#fff;border:1px solid #E2E8F0;border-radius:12px;border-bottom-left-radius:4px}
.mtx-chatbot-typing span{width:7px;height:7px;border-radius:50%;background:#94A3B8;animation:mtxBounce 1.2s infinite}
.mtx-chatbot-typing span:nth-child(2){animation-delay:.15s}
.mtx-chatbot-typing span:nth-child(3){animation-delay:.3s}
@keyframes mtxBounce{0%,60%,100%{transform:translateY(0);opacity:0.5}30%{transform:translateY(-6px);opacity:1}}
.mtx-chatbot-footer{padding:12px 14px;background:#fff;border-top:1px solid #E2E8F0;flex-shrink:0}
.mtx-chatbot-form{display:flex;gap:8px;align-items:flex-end}
.mtx-chatbot-input{flex:1;border:1px solid #E2E8F0;border-radius:20px;padding:10px 14px;font-size:14px;resize:none;outline:none;font-family:inherit;max-height:80px;line-height:1.4;transition:border-color .15s,box-shadow .15s}
.mtx-chatbot-input:focus{border-color:#F97316;box-shadow:0 0 0 3px rgba(249,115,22,0.2)}
.mtx-chatbot-send{background:linear-gradient(135deg,#F97316,#EA580C);border:none;width:38px;height:38px;border-radius:50%;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s,box-shadow .15s}
.mtx-chatbot-send:hover:not(:disabled){transform:scale(1.05);box-shadow:0 6px 16px rgba(249,115,22,0.4)}
.mtx-chatbot-send:disabled{opacity:0.4;cursor:not-allowed}
.mtx-chatbot-send svg{width:18px;height:18px}
.mtx-chatbot-credit{text-align:center;font-size:10px;color:#94A3B8;padding:6px;background:#fff;border-top:1px solid #F1F5F9}
.mtx-chatbot-consent{padding:20px;background:#F8FAFC;text-align:center}
.mtx-chatbot-consent h4{margin:0 0 8px;font-family:'Plus Jakarta Sans',sans-serif;font-size:16px;color:#0C0A09}
.mtx-chatbot-consent p{margin:0 0 14px;font-size:13px;color:#475569;line-height:1.5}
.mtx-chatbot-consent a{color:#1E3A8A;font-weight:600}
.mtx-chatbot-consent-btn{display:inline-block;background:linear-gradient(135deg,#F97316,#EA580C);color:#fff;border:none;padding:9px 20px;border-radius:8px;font-weight:700;cursor:pointer;font-size:13px;font-family:'Plus Jakarta Sans',sans-serif;margin:4px}
.mtx-chatbot-consent-decline{background:none;color:#64748B;border:1px solid #CBD5E1;padding:9px 20px;border-radius:8px;cursor:pointer;font-size:13px;font-family:'Plus Jakarta Sans',sans-serif;margin:4px}
.mtx-chatbot-lead-form{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:14px;margin:8px 0;align-self:stretch}
.mtx-chatbot-lead-form h4{margin:0 0 10px;font-family:'Plus Jakarta Sans',sans-serif;font-size:14px;color:#0C0A09}
.mtx-chatbot-lead-form input{width:100%;border:1px solid #E2E8F0;border-radius:6px;padding:7px 10px;font-size:13px;margin-bottom:6px;outline:none;font-family:inherit}
.mtx-chatbot-lead-form input:focus{border-color:#F97316}
.mtx-chatbot-lead-form button{background:linear-gradient(135deg,#F97316,#EA580C);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:700;cursor:pointer;font-size:13px;width:100%;margin-top:4px;font-family:'Plus Jakarta Sans',sans-serif}
.mtx-chatbot-error{background:#FEE2E2;color:#991B1B;border:1px solid #FECACA;padding:8px 12px;border-radius:8px;font-size:12px;align-self:center}
@media(max-width:480px){.mtx-chatbot-window{bottom:0;right:0;left:0;width:100%;max-width:none;height:100vh;max-height:none;border-radius:0}.mtx-chatbot-launcher{bottom:16px;right:16px;width:54px;height:54px}}
/* Bot message rich formatting */
.mtx-chatbot-msg-bot p{margin:0 0 8px 0;line-height:1.55}.mtx-chatbot-msg-bot p:last-child{margin-bottom:0}.mtx-chatbot-msg-bot strong{font-weight:700;color:#1E3A8A}.mtx-chatbot-msg-bot em{font-style:italic;color:#475569}.mtx-chatbot-msg-bot ul,.mtx-chatbot-msg-bot ol{margin:6px 0 8px 0;padding-left:20px}.mtx-chatbot-msg-bot li{margin:3px 0;line-height:1.5}.mtx-chatbot-msg-bot li::marker{color:#F97316;font-weight:700}.mtx-chatbot-msg-bot code{background:#F1F5F9;padding:1px 6px;border-radius:4px;font-family:'SFMono-Regular',Consolas,monospace;font-size:13px;color:#1E3A8A}.mtx-chatbot-msg-bot a{color:#1E3A8A;text-decoration:underline;font-weight:600}
/* AI sparkle on launcher */
.mtx-chatbot-launcher .mtx-chatbot-ai-sparkle{position:absolute;top:2px;right:2px;width:12px;height:12px;background:#F97316;border-radius:50%;box-shadow:0 0 8px #F97316,0 0 16px rgba(249,115,22,0.9),0 0 0 2px #fff;animation:mtxSparkle 1.5s infinite;z-index:2}@keyframes mtxSparkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.5;transform:scale(0.7)}}

/* ============ CHATBOX STYLING UPGRADES (v1.0.6) ============ */
.mtx-chatbot-header-avatar{background:#fff !important;border:2px solid #fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.15)}
.mtx-chatbot-header-avatar svg{width:32px !important;height:32px !important;display:block}
.mtx-chatbot-send{width:44px !important;height:44px !important;min-width:44px;border-radius:50% !important;background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%) !important;border:none !important;cursor:pointer;display:flex !important;align-items:center;justify-content:center;color:#fff;font-size:0;box-shadow:0 4px 12px rgba(30,58,138,0.3);transition:transform 0.15s ease,box-shadow 0.15s ease;padding:0 !important}
.mtx-chatbot-send:hover{transform:translateY(-1px) scale(1.05);box-shadow:0 6px 16px rgba(30,58,138,0.45)}
.mtx-chatbot-send:active{transform:scale(0.98)}
.mtx-chatbot-send svg{width:20px;height:20px;display:block;fill:#fff}
.mtx-chatbot-input,.mtx-chatbot-input textarea,.mtx-chatbot-input input{border:1.5px solid #E5E7EB !important;border-radius:14px !important;transition:border-color 0.2s ease,box-shadow 0.2s ease}
.mtx-chatbot-input:focus-within,.mtx-chatbot-input textarea:focus,.mtx-chatbot-input input:focus{border-color:#1E3A8A !important;box-shadow:0 0 0 3px rgba(30,58,138,0.1) !important;outline:none}
.mtx-chatbot-msg{animation:mtxMsgIn 0.32s cubic-bezier(0.34,1.56,0.64,1)}
@keyframes mtxMsgIn{from{opacity:0;transform:translateY(6px) scale(0.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.mtx-chatbot-msg-user{background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%) !important;color:#fff !important;border-radius:18px 18px 4px 18px !important;box-shadow:0 2px 8px rgba(30,58,138,0.25)}
.mtx-chatbot-msg-bot{background:#fff !important;border:1px solid #F1F5F9 !important;border-radius:18px 18px 18px 4px !important;color:#1E293B !important;box-shadow:0 2px 8px rgba(15,23,42,0.06)}
.mtx-chatbot-header-sub::before{content:"";display:inline-block;width:8px;height:8px;background:#10B981;border-radius:50%;margin-right:6px;box-shadow:0 0 0 0 rgba(16,185,129,0.6);animation:mtxDotPulse 2s infinite}
@keyframes mtxDotPulse{0%{box-shadow:0 0 0 0 rgba(16,185,129,0.6)}70%{box-shadow:0 0 0 8px rgba(16,185,129,0)}100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
.mtx-chatbot-modal{box-shadow:0 20px 60px rgba(15,23,42,0.18),0 0 0 1px rgba(30,58,138,0.04) !important}

/* ============ RICH MESSAGE FORMATTING (v1.0.7) ============ */
.mtx-cta-btn{display:inline-flex;align-items:center;background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%);color:#fff;padding:10px 18px;border-radius:12px;font-weight:600;font-size:14px;border:none;cursor:pointer;margin:6px 6px 4px 0;transition:transform 0.15s ease,box-shadow 0.15s ease,filter 0.15s ease;box-shadow:0 3px 10px rgba(30,58,138,0.25);font-family:inherit;line-height:1.2;text-transform:none !important;letter-spacing:normal !important}
.mtx-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(30,58,138,0.35);filter:brightness(1.05)}
.mtx-cta-btn:active{transform:translateY(0) scale(0.98)}
.mtx-cta-btn.secondary{background:#fff;color:#1E3A8A;border:2px solid #1E3A8A;padding:8px 16px;box-shadow:0 1px 4px rgba(30,58,138,0.1)}
.mtx-cta-btn.secondary:hover{background:#F0F4FF}
.mtx-info-bubble{display:block;padding:14px 16px;background:linear-gradient(135deg,#EFF6FF 0%,#DBEAFE 100%);border-left:4px solid #1E3A8A;border-radius:10px;margin:10px 0;color:#1E293B}
.mtx-info-bubble-title{font-weight:700;color:#1E3A8A;margin-bottom:6px;font-size:14px;display:flex;align-items:center}
.mtx-info-bubble-title::before{content:"\1F4A1";margin-right:8px;font-size:16px}
.mtx-info-bubble-body{font-size:14px;line-height:1.5}
.mtx-stat-chip{display:inline-flex;flex-direction:column;align-items:center;padding:6px 12px;background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%);color:#fff;border-radius:10px;margin:4px 6px 4px 0;box-shadow:0 2px 6px rgba(30,58,138,0.25);vertical-align:middle}
.mtx-stat-value{font-size:18px;font-weight:800;line-height:1}
.mtx-stat-label{font-size:11px;opacity:0.9;margin-top:2px;letter-spacing:0.3px;text-transform:uppercase}
.mtx-quote{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:#F8FAFC;border-left:3px solid #F97316;border-radius:0 8px 8px 0;margin:10px 0;color:#475569;font-style:italic;font-size:14px;line-height:1.5}
.mtx-chatbot-msg-bot ul{list-style:none;padding-left:0;margin:8px 0}
.mtx-chatbot-msg-bot ul li{position:relative;padding-left:22px;margin:5px 0;line-height:1.5}
.mtx-chatbot-msg-bot ul li::before{content:"";position:absolute;left:6px;top:9px;width:6px;height:6px;background:#1E3A8A;border-radius:50%}
.mtx-chatbot-msg-bot ol{padding-left:24px;margin:8px 0}
.mtx-chatbot-msg-bot ol li{margin:5px 0;line-height:1.5}
.mtx-chatbot-msg-bot ol li::marker{color:#1E3A8A;font-weight:700}
.mtx-chatbot-msg-bot code{background:#F1F5F9;padding:2px 8px;border-radius:6px;font-family:SFMono-Regular,Consolas,monospace;font-size:13px;color:#1E3A8A;border:1px solid #E2E8F0}
.mtx-chatbot-msg-bot a{color:#1E3A8A;font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:2px}
.mtx-chatbot-msg-bot a:hover{color:#1E40AF}

/* ============ INLINE LEAD CAPTURE FORM (v1.0.8) ============ */
.mtx-lead-form-inline{margin:14px 0;padding:18px;background:linear-gradient(135deg,#F0F4FF 0%,#E0E7FF 100%);border-radius:14px;border:1.5px solid #C7D2FE;box-shadow:0 4px 12px rgba(30,58,138,0.08);animation:mtxMsgIn 0.32s cubic-bezier(0.34,1.56,0.64,1)}
.mtx-lead-form-header{margin-bottom:14px}
.mtx-lead-form-title{font-size:16px;font-weight:700;color:#1E3A8A;margin-bottom:4px}
.mtx-lead-form-sub{font-size:13px;color:#475569;line-height:1.45}
.mtx-lead-form{display:flex;flex-direction:column;gap:8px}
.mtx-lead-form input,.mtx-lead-form select,.mtx-lead-form textarea{padding:10px 12px;border:1.5px solid #CBD5E1;border-radius:10px;font-family:inherit;font-size:14px;background:#fff;color:#1E293B;transition:border-color 0.15s,box-shadow 0.15s;width:100%;box-sizing:border-box}
.mtx-lead-form input:focus,.mtx-lead-form select:focus,.mtx-lead-form textarea:focus{outline:none;border-color:#1E3A8A;box-shadow:0 0 0 3px rgba(30,58,138,0.12)}
.mtx-lead-form textarea{resize:vertical;min-height:48px;max-height:120px}
.mtx-lead-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mtx-lead-form-actions{display:flex;gap:8px;margin-top:4px}
.mtx-lead-form-submit{flex:1;padding:11px 16px;background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%);color:#fff;border:none;border-radius:10px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;box-shadow:0 3px 10px rgba(30,58,138,0.3);transition:transform 0.15s,filter 0.15s}
.mtx-lead-form-submit:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.05)}
.mtx-lead-form-submit:disabled{opacity:0.6;cursor:wait}
.mtx-lead-form-cancel{padding:11px 16px;background:#fff;color:#64748B;border:1.5px solid #CBD5E1;border-radius:10px;font-weight:600;font-size:14px;cursor:pointer;font-family:inherit;transition:background 0.15s}
.mtx-lead-form-cancel:hover{background:#F1F5F9}
.mtx-lead-form-status{font-size:13px;margin-top:4px;min-height:18px}
.mtx-lead-form-success{display:flex;align-items:center;gap:10px;padding:14px 4px;color:#059669;font-weight:600;font-size:14px}
.mtx-lead-form-success-icon{font-size:28px;line-height:1}

/* ============ SUGGESTION CHIPS (v1.0.9) ============ */
.mtx-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px 0;padding:0 4px;animation:mtxMsgIn 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s both}
.mtx-suggestion-chip{display:inline-flex;align-items:center;padding:8px 14px;background:#fff;color:#1E3A8A;border:1.5px solid #C7D2FE;border-radius:18px;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.15s ease;line-height:1.3;text-align:left;box-shadow:0 1px 3px rgba(30,58,138,0.06);text-transform:none !important;letter-spacing:normal !important}
.mtx-suggestion-chip:hover{background:linear-gradient(135deg,#1E3A8A 0%,#1E40AF 100%);color:#fff;border-color:#1E3A8A;transform:translateY(-1px);box-shadow:0 4px 10px rgba(30,58,138,0.25)}
.mtx-suggestion-chip:active{transform:translateY(0) scale(0.98)}

/* === Header tagline (v1.1.2) === */
.mtx-chatbot-header-sub{font-size:12px !important;line-height:1.35;opacity:0.92;max-width:calc(100% - 8px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}
