/* ---------- SOLARIO CHAT BOT ---------- */
.chat-launcher {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #00296b; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 41, 107, .38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-launcher:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0, 41, 107, .5); }
.chat-launcher svg { width: 30px; height: 30px; }
.chat-launcher.is-open { transform: scale(.9); opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; bottom: 28px; right: 28px; z-index: 101;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 56px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(16px) scale(.98);
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  font-family: 'Manrope', system-ui, sans-serif;
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.chat-header {
  background: #00296b; color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
}
.chat-header h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
.chat-header p { margin: 2px 0 0; font-size: 12px; opacity: .8; }
.chat-header .chat-close {
  margin-left: auto; background: none; border: none; color: #fff;
  cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; opacity: .85;
}
.chat-header .chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; background: #f5f7fb; }
.chat-log {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; min-height: 100%;
}

.chat-msg {
  max-width: 88%; padding: 11px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap;
  animation: chatIn .18s ease;
}
.chat-msg.bot {
  align-self: flex-start; background: #fff; color: #1a2233;
  border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chat-msg.user {
  align-self: flex-end; background: #00296b; color: #fff;
  border-bottom-right-radius: 4px;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat-options { align-self: flex-start; display: flex; flex-direction: column; gap: 8px; width: 88%; }
.chat-opt {
  text-align: left; background: #fff; border: 1px solid #cfd6e4; border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; font-family: inherit;
  color: #00296b; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.chat-opt:hover { border-color: #00296b; background: #f0f4fb; }
.chat-opt.is-active { background: #00296b; color: #fff; border-color: #00296b; }

/* Email chips + button rendered inside a bot bubble */
.chat-emails { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.chat-email {
  display: inline-block; background: #f0f4fb; border: 1px solid #d5deee; border-radius: 10px;
  padding: 9px 12px; font-size: 14px; font-weight: 700; color: #00296b; text-decoration: none;
}
.chat-email:hover { border-color: #00296b; background: #e7eefb; }
.chat-btn {
  display: block; text-align: center; background: #00296b; color: #fff;
  border-radius: 12px; padding: 11px; font-size: 15px; font-weight: 700; text-decoration: none;
}
.chat-btn:hover { background: #003a91; }

@media (max-width: 520px) {
  .chat-launcher { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .chat-panel { bottom: 12px; right: 12px; left: 12px; width: auto; height: min(70vh, 560px); }
}
