/* ==========================================================================
   EXPIRISE ASSISTANT — PREMIUM FLOATING AI CONCIERGE CHATBOT
   Clean, Modern, Mobile-First Visual Styling
   ========================================================================== */

/* --- Floating Launcher Button --- */
.chatbot-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25), 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.chatbot-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.35);
  border-color: rgba(56, 189, 248, 0.4);
}

.launcher-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.launcher-avatar svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.online-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border: 2px solid #0F172A;
  border-radius: 50%;
}

.launcher-text {
  display: flex;
  flex-direction: column;
}

.launcher-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.launcher-status {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: #38BDF8;
  font-weight: 600;
}

/* --- Chatbot Modal Window --- */
.chatbot-modal {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 610px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* --- Chat Header --- */
.chat-header {
  padding: 16px 20px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.chat-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  color: #94A3B8;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* --- Messages Container --- */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #F8FAFC;
  scroll-behavior: smooth;
}

/* --- Message Bubbles --- */
.chat-bubble {
  max-width: 88%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  border-radius: 16px;
  padding: 14px 16px;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  font-weight: 500;
}

/* --- Entry Path Cards (5 Large Buttons) --- */
.chat-paths-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.chat-path-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.chat-path-card:hover {
  border-color: #2563EB;
  background: #EFF6FF;
  transform: translateX(4px);
}

.path-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563EB;
  letter-spacing: 0.04em;
}

.path-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.path-card-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}

/* --- Interactive Option Buttons --- */
.chat-options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.chat-option-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-option-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.chat-option-btn.highlight {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

.chat-option-btn.highlight:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.btn-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.chat-option-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Prominent Callout Box --- */
.chat-prominent-callout {
  background: #0F172A;
  border-radius: 12px;
  padding: 14px 16px;
  color: #FFFFFF;
  margin-top: 4px;
  border-left: 4px solid #38BDF8;
}

.chat-prominent-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-prominent-callout li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 6px;
  line-height: 1.35;
}

.chat-prominent-callout li:last-child {
  margin-bottom: 0;
}

/* --- Reflection Statement Card --- */
.chat-reflection-card {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 14px 16px;
  color: #78350F;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-top: 4px;
}

.chat-reflection-card p {
  margin: 0 0 8px 0;
}

.chat-reflection-card p:last-child {
  margin: 0;
}

/* --- CTA Buttons inside Chat --- */
.chat-cta-btn {
  display: inline-block;
  background: #0F172A;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.chat-cta-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
}

/* --- Just Exploring Cards --- */
.chat-exploring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.chat-exploring-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exploring-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
}

.exploring-card-desc {
  font-size: 0.76rem;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.35;
}

/* --- Contextual Solution Cards ("Show me some ideas") --- */
.chat-ideas-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.chat-idea-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #2563EB;
  border-radius: 8px;
  padding: 12px 14px;
}

.idea-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563EB;
  letter-spacing: 0.04em;
}

.idea-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  margin: 2px 0 4px 0;
}

.idea-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

/* --- Lead Form --- */
.chat-lead-form-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 16px;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.chat-form-group {
  margin-bottom: 10px;
}

.chat-form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.chat-form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: #0F172A;
  box-sizing: border-box;
}

.chat-form-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-radio-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.chat-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
}

.chat-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 11px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 6px;
}

.chat-submit-btn:hover {
  opacity: 0.95;
}

/* Animations */
.fade-in {
  animation: chatFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
  .chatbot-launcher {
    bottom: 20px;
    right: 20px;
    padding: 8px 14px 8px 10px;
  }
  .launcher-title {
    font-size: 0.85rem;
  }
  .chatbot-modal {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
}
