/* CleanForm floating chatbot — splash & static pages */
.cf-chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cf-chatbot__panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 39, 68, 0.22), 0 0 0 1px rgba(13, 148, 136, 0.15);
  overflow: hidden;
  animation: cfChatSlide 0.25s ease;
}
@keyframes cfChatSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.cf-chatbot__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f2744 0%, #0d9488 100%);
  color: #fff;
}
.cf-chatbot__avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-chatbot__avatar svg { width: 20px; height: 20px; }
.cf-chatbot__title { flex: 1; min-width: 0; }
.cf-chatbot__title strong { display: block; font-size: 0.88rem; font-weight: 800; }
.cf-chatbot__title span { font-size: 0.68rem; opacity: 0.85; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-chatbot__close {
  border: none; background: rgba(255,255,255,0.12); color: #fff;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cf-chatbot__close:hover { background: rgba(255,255,255,0.22); }
.cf-chatbot__messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px; max-height: 340px;
  background: #f8fafc;
}
.cf-chatbot__bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.82rem; line-height: 1.55;
  animation: cfChatFade 0.2s ease;
}
@keyframes cfChatFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.cf-chatbot__bubble--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f2744;
  border-bottom-left-radius: 4px;
}
.cf-chatbot__bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cf-chatbot__bubble strong { font-weight: 700; }
.cf-chatbot__typing { color: #64748b; font-style: italic; }
.cf-chatbot__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 12px 10px; background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.cf-chatbot__chip {
  border: 1px solid #cbd5e1; background: #fff; color: #0f2744;
  font-size: 0.72rem; font-weight: 600; padding: 5px 10px;
  border-radius: 999px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.cf-chatbot__chip:hover { border-color: #0d9488; color: #0d9488; }
.cf-chatbot__clear {
  border: none; background: rgba(255,255,255,0.12); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 4px 8px; border-radius: 6px;
  cursor: pointer; margin-right: 4px;
}
.cf-chatbot__clear:hover { background: rgba(255,255,255,0.22); }
.cf-chatbot__bubble a { color: #0d9488; font-weight: 600; }
.cf-chatbot__bubble code { background: #f1f5f9; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.78rem; }
.cf-chatbot__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cf-chatbot__action {
  font-size: 0.68rem; font-weight: 700; padding: 5px 10px;
  border-radius: 999px; background: #ecfdf5; color: #0d9488;
  text-decoration: none; border: 1px solid rgba(13,148,136,0.25);
}
.cf-chatbot__action:hover { background: #ccfbf1; }
.cf-chatbot__composer {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #e2e8f0; background: #fff;
}
.cf-chatbot__composer input {
  flex: 1; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 10px 14px; font-size: 0.82rem; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.cf-chatbot__composer input:focus { border-color: #0d9488; }
.cf-chatbot__composer button {
  width: 40px; height: 40px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-chatbot__composer button:disabled { opacity: 0.45; cursor: not-allowed; }
.cf-chatbot__launcher {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #0f2744 0%, #0d9488 100%);
  color: #fff; cursor: pointer;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cf-chatbot__launcher:hover { transform: scale(1.06); box-shadow: 0 12px 36px rgba(13, 148, 136, 0.55); }
.cf-chatbot__launcher svg { width: 26px; height: 26px; }
.cf-chatbot__welcome-green { color: #22c55e; font-weight: 700; }
@media (max-width: 480px) {
  .cf-chatbot { bottom: 16px; right: 16px; }
  .cf-chatbot__panel { bottom: 64px; }
}
