/* ============================================================
   maya-voice.css - "Talk to Maya" voice intake widget
   Med Help USA - medhelpusa.com
   Self-contained: every selector is prefixed with maya- so the
   widget cannot clash with page styles.
   ============================================================ */

/* Floating launcher button (bottom-right) */
.maya-fab{
  position:fixed;right:22px;bottom:22px;z-index:2147483000;
  display:inline-flex;align-items:center;gap:10px;
  background:#123a6d;color:#fff;border:0;border-radius:999px;
  padding:14px 22px;cursor:pointer;
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  font-size:16px;font-weight:700;line-height:1.2;
  box-shadow:0 10px 26px rgba(18,58,109,.38);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.maya-fab:hover{background:#0e2f59;transform:translateY(-2px);box-shadow:0 14px 32px rgba(18,58,109,.45);}
.maya-fab:focus-visible{outline:3px solid #d9a514;outline-offset:2px;}
.maya-fab svg{width:22px;height:22px;flex:none;}

/* Conversation panel */
.maya-panel{
  position:fixed;right:22px;bottom:92px;z-index:2147483001;
  width:384px;max-width:calc(100vw - 32px);
  height:600px;max-height:calc(100vh - 130px);
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border-radius:18px;
  box-shadow:0 24px 64px rgba(9,30,63,.35);
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  color:#223;
}
.maya-panel[hidden]{display:none;}

.maya-head{background:linear-gradient(135deg,#123a6d 0%,#1e5aa8 100%);color:#fff;padding:16px 18px 14px;position:relative;flex:none;}
.maya-head .maya-logo{height:34px;width:auto;display:block;background:#fff;border-radius:8px;padding:3px 10px;margin-bottom:8px;}
.maya-head h2{font-size:19px;margin:0 0 2px;font-weight:700;color:#fff;}
.maya-head p{margin:0;font-size:13px;color:#cfe0f5;}
.maya-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:18px;line-height:1;cursor:pointer;}
.maya-close:hover{background:rgba(255,255,255,.32);}

.maya-fineprint{flex:none;background:#f7f3e4;border-bottom:1px solid #eadfc0;color:#6b5d2f;font-size:11.5px;line-height:1.45;padding:8px 16px;}

.maya-transcript{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:#f4f7fb;}
.maya-msg{max-width:88%;padding:10px 14px;border-radius:14px;font-size:14.5px;line-height:1.5;overflow-wrap:break-word;}
.maya-msg.maya{background:#fff;border:1px solid #dbe5f2;border-bottom-left-radius:4px;align-self:flex-start;color:#1c2b45;box-shadow:0 1px 3px rgba(20,50,100,.06);}
.maya-msg.me{background:#123a6d;color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
.maya-msg.note{align-self:center;background:#fff8e1;border:1px dashed #d9a514;color:#7a651f;font-size:12.5px;text-align:center;}
.maya-who{display:block;font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#7d8ea8;margin-bottom:3px;}
.maya-msg.me .maya-who{color:#bcd2ee;}

.maya-typing{align-self:flex-start;background:#fff;border:1px solid #dbe5f2;border-radius:14px;border-bottom-left-radius:4px;padding:12px 16px;display:inline-flex;gap:5px;}
.maya-typing span{width:7px;height:7px;border-radius:50%;background:#9db4d2;animation:maya-blink 1.2s infinite;}
.maya-typing span:nth-child(2){animation-delay:.2s;}
.maya-typing span:nth-child(3){animation-delay:.4s;}
@keyframes maya-blink{0%,60%,100%{opacity:.25;}30%{opacity:1;}}

.maya-choices{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;}
.maya-chip{border:1.5px solid #1e5aa8;background:#fff;color:#123a6d;border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;cursor:pointer;font-family:inherit;}
.maya-chip:hover{background:#123a6d;color:#fff;}

.maya-summary{background:#fff;border:1px solid #dbe5f2;border-radius:12px;padding:14px 16px;align-self:stretch;}
.maya-summary h3{margin:0 0 10px;font-size:15px;color:#123a6d;}
.maya-summary dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:13.5px;}
.maya-summary dt{font-weight:700;color:#5a6b85;}
.maya-summary dd{margin:0;color:#1c2b45;overflow-wrap:break-word;}
.maya-sendrow{display:flex;gap:10px;margin-top:12px;align-items:center;}
.maya-send-lead{flex:1;background:linear-gradient(135deg,#d9a514,#b8860b);border:0;color:#fff;font-weight:700;font-size:15px;border-radius:10px;padding:12px;cursor:pointer;font-family:inherit;}
.maya-send-lead:hover{filter:brightness(1.06);}
.maya-send-lead:disabled{opacity:.65;cursor:wait;}
.maya-restart{background:none;border:0;color:#5a6b85;text-decoration:underline;font-size:13px;cursor:pointer;font-family:inherit;padding:6px;}

.maya-inputrow{flex:none;display:flex;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid #e3e9f2;background:#fff;}
.maya-mic{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:#eef3fa;color:#123a6d;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;}
.maya-mic svg{width:20px;height:20px;}
.maya-mic:hover{background:#dbe7f7;}
.maya-mic.listening{background:#c0392b;color:#fff;animation:maya-pulse 1.4s infinite;}
.maya-mic:disabled{opacity:.45;cursor:default;animation:none;}
@keyframes maya-pulse{0%,100%{box-shadow:0 0 0 0 rgba(192,57,43,.45);}50%{box-shadow:0 0 0 10px rgba(192,57,43,0);}}
.maya-text{flex:1;border:1.5px solid #d5deeb;border-radius:999px;padding:12px 16px;font-size:14.5px;font-family:inherit;color:#1c2b45;min-width:0;}
.maya-text:focus{outline:none;border-color:#1e5aa8;box-shadow:0 0 0 3px rgba(30,90,168,.15);}
.maya-text:disabled{background:#f1f4f8;color:#8a97ab;}
.maya-sendbtn{flex:none;border:0;border-radius:999px;background:#123a6d;color:#fff;font-weight:700;font-size:14.5px;padding:12px 20px;cursor:pointer;font-family:inherit;}
.maya-sendbtn:hover{background:#0e2f59;}
.maya-sendbtn:disabled{opacity:.6;cursor:default;}

.maya-hint{flex:none;font-size:11.5px;color:#8a97ab;text-align:center;padding:0 12px 10px;background:#fff;}

@media (max-width:480px){
  .maya-fab{right:14px;bottom:14px;padding:12px 18px;font-size:15px;}
  .maya-panel{right:8px;left:8px;bottom:78px;width:auto;max-width:none;}
}
@media (prefers-reduced-motion:reduce){
  .maya-fab,.maya-chip,.maya-send-lead,.maya-sendbtn{transition:none;}
  .maya-typing span,.maya-mic.listening{animation:none;}
}
