/* Elite Success chat assistant (js/chatbot.js). Sits above the WhatsApp button (bottom: 40px; right: 40px; 60px). */
#es-chat { font-family: inherit; }
/* The button is Eli, a full-body robot standing above the WhatsApp button (which ends 100px from the bottom).
   When the chat is open it turns into a round navy close button. */
.es-chat-toggle { position: fixed; right: 33px; bottom: 102px; z-index: 1001; width: 74px; height: 92px; border: 0; padding: 0;
  background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; border-radius: 14px; }
.es-chat-toggle:focus-visible { outline: 3px solid #f4621a; outline-offset: 2px; }
/* Thin white outline so the navy robot also shows up on the site's dark-blue sections */
.es-chat-toggle .es-eli { width: 74px; height: 92px; overflow: visible;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(1px 2px 2px rgba(0,0,0,.25));
  transition: transform .2s; animation: es-eli-bob 3.2s ease-in-out infinite; }
.es-chat-toggle:hover .es-eli { transform: scale(1.06); }
.es-eli .es-eli-eyes { transform-origin: 40px 27px; animation: es-eli-blink 4.5s infinite; }
.es-eli .es-eli-light { animation: es-eli-glow 2s ease-in-out infinite; }
.es-eli .es-eli-arm { transform-origin: 63.5px 52px; animation: es-eli-wave 6s ease-in-out infinite; }
.es-eli .es-eli-shadow { transform-origin: 40px 97px; animation: es-eli-shadow 3.2s ease-in-out infinite; }
@keyframes es-eli-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes es-eli-shadow { 0%, 100% { transform: scaleX(1); opacity: .18; } 50% { transform: scaleX(.8); opacity: .1; } }
@keyframes es-eli-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes es-eli-glow { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
/* Waves hello for a moment every few seconds: the arm swings up from the shoulder and back */
@keyframes es-eli-wave { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-150deg); } 68% { transform: rotate(-120deg); }
  74% { transform: rotate(-150deg); } 80% { transform: rotate(-120deg); } 86% { transform: rotate(-150deg); } 93% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .es-eli, .es-eli * { animation: none !important; } }
.es-chat-toggle .es-close-icon { display: none; width: 60px; height: 60px; border-radius: 50%; background: #233055; color: #fff;
  align-items: center; justify-content: center; box-shadow: 2px 2px 6px rgba(0,0,0,.25); margin-bottom: 10px; }
.es-chat-toggle .es-close-icon svg { width: 26px; height: 26px; }
.es-open .es-chat-toggle .es-close-icon { display: flex; }
.es-head-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.es-head-avatar .es-eli { width: 34px; height: 27px; }
.es-open .es-chat-toggle .es-open-icon { display: none; }
/* Speech bubble next to Eli's head */
.es-chat-label { position: absolute; right: 74px; top: 8px; white-space: nowrap; background: #fff; color: #233055;
  font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 14px 14px 4px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
.es-open .es-chat-label { display: none; }

/* Above the fixed site header (Bootstrap navbars use 1030), below Bootstrap modals (1050) */
.es-chat-panel { position: fixed; right: 24px; bottom: 200px; z-index: 1045; width: 370px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 210px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(24,37,74,.28);
  display: flex; flex-direction: column; overflow: hidden; }
.es-chat-panel[hidden] { display: none; }
.es-chat-head { background: #233055; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.es-chat-head strong { display: block; font-size: 15px; }
.es-chat-head small { display: block; color: #c9d1e4; font-size: 12px; }
.es-chat-close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.es-chat-log { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; padding: 14px; background: #f4f7fb; }
.es-msg { max-width: 92%; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.es-msg p { margin: 0 0 6px; }
.es-bot { color: #263046; }
.es-bot > p { background: #fff; border: 1px solid #e1e6ef; border-radius: 4px 12px 12px 12px; padding: 9px 12px; display: inline-block; }
.es-user { margin-left: auto; background: #233055; color: #fff; border-radius: 12px 4px 12px 12px; padding: 9px 12px; width: fit-content; max-width: 85%; }
.es-lead { position: relative; }
.es-typing { display: flex; gap: 4px; padding: 10px 12px; background: #fff; border: 1px solid #e1e6ef; border-radius: 12px; width: 56px; }
.es-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa5bd; animation: es-dot 1s infinite ease-in-out; }
.es-typing span:nth-child(2) { animation-delay: .15s; } .es-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes es-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .es-typing span { animation: none; } }
.es-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.es-chip { border: 1px solid #233055; background: #fff; color: #233055; border-radius: 16px; padding: 5px 11px; font-size: 13px; cursor: pointer;
  text-align: left; line-height: 1.35; text-decoration: none; }
.es-chip:hover, .es-chip:focus-visible { background: #233055; color: #fff; text-decoration: none; outline: none; }
.es-card { background: #fff; border: 1px solid #e1e6ef; border-left: 3px solid #f4621a; border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.es-card strong { display: block; color: #233055; margin-bottom: 3px; }
.es-card small { display: block; color: #6b7590; margin-bottom: 4px; }
.es-card p { font-size: 13px; margin: 0 0 5px; }
.es-card a { font-size: 13px; font-weight: 600; color: #f4621a; }
.es-lead { background: #fff; border: 1px solid #e1e6ef; border-radius: 8px; padding: 10px; margin: 6px 0; display: grid; gap: 7px; }
.es-lead input, .es-lead select { width: 100%; height: 38px; border: 1px solid #cfd6e4; border-radius: 6px; padding: 0 10px; font-size: 14px; background: #fff; }
.es-lead button { height: 40px; border: 0; border-radius: 6px; background: #f4621a; color: #fff; font-weight: 700; cursor: pointer; }
.es-lead button:disabled { opacity: .6; }
.es-error { color: #c0392b; font-size: 13px; margin: 0; }
.es-error:empty { display: none; }
.es-sr, .es-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.es-chat-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e1e6ef; background: #fff; }
.es-chat-input[hidden] { display: none; }
.es-chat-input input { flex: 1; min-width: 0; height: 40px; border: 1px solid #cfd6e4; border-radius: 20px; padding: 0 14px; font-size: 14px; }
.es-chat-input button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4621a; color: #fff; cursor: pointer; flex: 0 0 40px; }
.es-chat-note { font-size: 11px; color: #8a93a8; text-align: center; padding: 0 10px 8px; background: #fff; margin: 0; }

/* Short screens (laptops): open beside the buttons, using the full height */
@media (min-width: 576px) and (max-height: 760px) {
  .es-chat-panel { right: 116px; bottom: 16px; height: calc(100vh - 32px); max-height: 600px; }
}
@media (max-width: 575px) {
  .es-chat-label { display: none; }
  .es-chat-panel { right: 8px; left: 8px; width: auto; max-width: none; bottom: 8px; height: auto; top: 70px; max-height: none; }
}
