/* ==========================================================================
   eParivartan Concierge & Project Enquiry Assistant
   Professional Agency-Grade Brand Overlay
   ========================================================================== */

:root {
  --ep-green: #75BF46;
  --ep-green-dark: #5F9E34;
  --ep-green-light: #F4F8F0;
  --ep-dark: #111827;
  --ep-muted: #6B7280;
  --ep-border: #E5E7EB;
  --ep-border-focus: #75BF46;
  --ep-bg-subtle: #F9FAFB;
}

#parivartan-chatbot-root,
.chatbot-launcher-btn,
.chatbot-bubble-prompt,
.chatbot-window-panel,
.chatbot-window {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#parivartan-chatbot-root * {
  box-sizing: border-box;
}

/* ── 1. Floating Launcher ── */
.chatbot-launcher-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--ep-green);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(117, 191, 70, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  outline: none;
  padding: 0;
  user-select: none;
}

.chatbot-launcher-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16), 0 4px 12px rgba(117, 191, 70, 0.3);
}

.chatbot-launcher-btn:active {
  transform: scale(0.96);
}

.chatbot-launcher-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.2s ease;
  display: block;
}

.chatbot-launcher-close {
  position: absolute;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-dark);
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: transform 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}

#parivartan-chatbot-root.is-open .chatbot-launcher-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

#parivartan-chatbot-root.is-open .chatbot-launcher-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}


/* ── 2. Greeting Tooltip Pill ── */
.chatbot-greeting-pill {
  position: absolute;
  right: 72px;
  bottom: 8px;
  background: #FFFFFF;
  color: var(--ep-dark);
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--ep-border);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  animation: chatbotPillSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s backwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-greeting-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.14);
}

.chatbot-greeting-close {
  background: transparent;
  border: none;
  color: var(--ep-muted);
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: color 0.2s ease;
}

.chatbot-greeting-close:hover {
  color: var(--ep-dark);
}

@keyframes chatbotPillSlide {
  from {
    opacity: 0;
    transform: translateX(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ── 3. Chat Window ── */
.chatbot-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 100px);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.15), 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--ep-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

#parivartan-chatbot-root.is-open .chatbot-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Clean Header (No round circle, no bottom text) */
.chatbot-header {
  background: #FFFFFF;
  color: var(--ep-dark);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ep-border);
  flex-shrink: 0;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-leaf {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chatbot-header-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ep-dark);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.chatbot-header-tagline {
  font-size: 11.5px;
  font-weight: 600;
  color: #75BF46;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #75BF46;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(117, 191, 70, 0.25);
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--ep-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.chatbot-header-btn:hover {
  background: #F3F4F6;
  color: var(--ep-dark);
}

/* ── 4. Message Body ── */
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F4F5F7;
  scroll-behavior: smooth;
}

.chatbot-body::-webkit-scrollbar {
  width: 5px;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 10px;
}

.chatbot-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chatbot-msg-row.is-bot {
  align-self: flex-start;
  max-width: 92%;
}

.chatbot-msg-row.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
  max-width: 84%;
}

/* Bot bubble: grow from bottom-left corner */
.chatbot-msg-row.is-bot .chatbot-bubble {
  animation: botBubbleIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom left;
}

/* User bubble: grow from bottom-right corner */
.chatbot-msg-row.is-user .chatbot-bubble {
  animation: userBubbleIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom right;
}

@keyframes botBubbleIn {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(6px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes userBubbleIn {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(6px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chatbot-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  margin-bottom: 2px;
}

.chatbot-mini-avatar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Spacer for no-avatar bot messages — keeps bubble aligned */
.chatbot-mini-avatar-spacer {
  width: 28px;
  flex-shrink: 0;
}

/* User avatar — right side of user bubble */
.chatbot-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #75BF46;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  color: #FFFFFF;
}

.chatbot-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.chatbot-msg-row.is-bot .chatbot-bubble {
  background: #FFFFFF;
  color: #1A2E10;
  border-bottom-left-radius: 3px;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-weight: 450;
}

.chatbot-msg-row.is-user .chatbot-bubble {
  background: #75BF46;
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
  box-shadow: 0 3px 10px rgba(117, 191, 70, 0.3);
  font-weight: 500;
}


/* ── 6. Conversational Steps UI ── */
.chatbot-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ep-green-light);
  color: var(--ep-green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Service Chips Grid (Question 4) */
.chatbot-service-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chatbot-service-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid #75BF46;
  background: #FFFFFF;
  color: #1A2E10;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  line-height: 1.35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chatbot-service-chip:hover:not(:disabled) {
  background: #75BF46;
  color: #FFFFFF;
  border-color: #75BF46;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(117, 191, 70, 0.3);
}

.chatbot-service-chip:active:not(:disabled) {
  transform: translateY(0);
}

.chatbot-service-chip.is-selected {
  background: #75BF46;
  color: #FFFFFF;
  border-color: #75BF46;
  box-shadow: 0 3px 10px rgba(117, 191, 70, 0.35);
  cursor: default;
}

.chatbot-service-chip.is-dimmed {
  opacity: 0.45;
  cursor: default;
  border-color: rgba(0, 0, 0, 0.1);
  color: #888888;
}

/* Skip Button Card */
.chatbot-skip-card {
  margin-top: 10px;
  display: flex;
}

.chatbot-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #F3F4F6;
  color: var(--ep-dark);
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.chatbot-skip-btn:hover {
  background: #E5E7EB;
}

/* ── Card 1: Success Message ── */
.chatbot-success-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-success-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chatbot-success-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EBF7E5;
  color: #2A7A3B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(117, 191, 70, 0.4);
}

.chatbot-success-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1A2E10;
  letter-spacing: -0.01em;
}

.chatbot-success-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #4A5568;
  margin: 0;
}

.chatbot-success-desc strong {
  color: #1A2E10;
  font-weight: 600;
}

/* ── Card 2: Details / Summary ── */
.chatbot-details-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.chatbot-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-details-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #2A7A3B;
  background: #EBF7E5;
  border: 1px solid rgba(117, 191, 70, 0.35);
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chatbot-details-list {
  background: #F8FAF7;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chatbot-details-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px dashed #E2E8F0;
  padding-bottom: 7px;
}

.chatbot-details-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.chatbot-details-row.is-stack {
  flex-direction: column;
  gap: 3px;
}

.chatbot-details-key {
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.chatbot-details-val {
  color: #1A2E10;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chatbot-details-row.is-stack .chatbot-details-val {
  text-align: left;
  font-size: 13px;
  color: #1A2E10;
}

.chatbot-details-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #EBF7E5;
  color: #2A7A3B;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.chatbot-details-val.is-quote {
  font-style: italic;
  font-weight: 500;
  color: #475569;
  background: #FFFFFF;
  border-left: 3px solid #75BF46;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 2px;
  display: block;
  width: 100%;
}

.chatbot-details-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.chatbot-restart-btn {
  padding: 10px 16px;
  background: #75BF46;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(117, 191, 70, 0.28);
}

.chatbot-restart-btn:hover {
  background: #2A7A3B;
  box-shadow: 0 4px 14px rgba(42, 122, 59, 0.32);
}

.chatbot-call-btn {
  padding: 9px 16px;
  background: #FFFFFF;
  color: #1A2E10;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.chatbot-call-btn:hover {
  border-color: #75BF46;
  color: #2A7A3B;
  background: #F8FAF7;
}

/* Warning Bubble */
.chatbot-bubble.is-warning {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: #FCD34D !important;
}

/* ── 7. Typing Indicator ── */
.chatbot-typing-row {
  display: none;
  align-items: center;
  gap: 8px;
}

.chatbot-typing-row.is-active {
  display: flex;
}

.chatbot-typing-bubble {
  background: #FFFFFF;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ── 8. Footer Input Redesign ── */
.chatbot-footer {
  padding: 12px 14px;
  background: #FFFFFF;
  border-top: 1px solid #ECEEF2;
  flex-shrink: 0;
}

.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 4px 5px 4px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-input-row:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.chatbot-input-row:focus-within {
  background: #FFFFFF;
  border-color: #85BD56;
  box-shadow: 0 0 0 3px rgba(133, 189, 86, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.chatbot-input-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #1E293B;
  font-family: inherit;
  padding: 7px 0;
  line-height: 1.4;
  caret-color: #85BD56;
}

.chatbot-input-field::placeholder {
  color: #94A3B8;
  font-size: 13px;
  font-weight: 400;
}

/* Voice Input Microphone Button */
.chatbot-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #64748B;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.chatbot-voice-btn:hover {
  background: #EBF7E5;
  color: #2A7A3B;
}

.chatbot-voice-btn.is-listening {
  background: #EF4444;
  color: #FFFFFF;
  animation: voicePulse 1.2s infinite ease-in-out;
}

@keyframes voicePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

.chatbot-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  min-width: 80px;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, #85BD56 0%, #6EA43F 100%);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(110, 164, 63, 0.28);
}

.chatbot-send-text {
  line-height: 1;
}

.chatbot-send-btn svg {
  width: 13.5px;
  height: 13.5px;
  display: block;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #74AA49 0%, #5E9234 100%);
  box-shadow: 0 4px 12px rgba(110, 164, 63, 0.42);
}

.chatbot-send-btn:active {
  transform: translateY(0) scale(0.97);
}

.chatbot-action-card {
  margin-top: 8px;
  padding: 8px 10px;
  background: #F9FAFB;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chatbot-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chatbot-action-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--ep-green-dark);
  text-decoration: underline;
}

/* ── Option Chips (quick reply buttons) ── */
.chatbot-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 2px 0;
}

.chatbot-predefined-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1.5px solid #2A7A3B;
  background: #FFFFFF;
  color: #2A7A3B;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: none;
}

.chatbot-predefined-chip:hover {
  background: #2A7A3B;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(42, 122, 59, 0.22);
}

/* ── 7. Celebration Pop-up & Confetti ── */
.chatbot-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 85;
}

.chatbot-celebration-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 90;
  animation: cbOverlayIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chatbot-celebration-overlay.is-closing {
  animation: cbOverlayOut 0.22s ease forwards;
}

@keyframes cbOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cbOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.chatbot-celebration-modal {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 30px 24px 24px;
  width: 100%;
  max-width: 330px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(117, 191, 70, 0.25);
  animation: cbModalPop 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
  position: relative;
  overflow: hidden;
}

.chatbot-celebration-overlay.is-closing .chatbot-celebration-modal {
  animation: cbModalOut 0.2s ease forwards;
}

@keyframes cbModalPop {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes cbModalOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) translateY(-8px);
  }
}

.chatbot-celebration-badge {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #EBF7E5 0%, #D8F1CE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(117, 191, 70, 0.3);
  animation: cbBadgePulse 1.8s ease-in-out infinite alternate;
}

@keyframes cbBadgePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.chatbot-celebration-icon {
  font-size: 38px;
  line-height: 1;
  display: inline-block;
  animation: cbIconTada 1s ease-in-out;
}

@keyframes cbIconTada {
  0% { transform: scale(0.4) rotate(-15deg); }
  50% { transform: scale(1.2) rotate(15deg); }
  70% { transform: scale(0.95) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.chatbot-celebration-sparkle {
  position: absolute;
  font-size: 18px;
  animation: cbSparkleFloat 1.4s ease-in-out infinite alternate;
}

.chatbot-celebration-sparkle.sparkle-1 {
  top: -4px;
  right: -2px;
}

.chatbot-celebration-sparkle.sparkle-2 {
  bottom: 0px;
  left: -2px;
  animation-delay: 0.7s;
}

@keyframes cbSparkleFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0.6; }
  100% { transform: translateY(-4px) scale(1.15); opacity: 1; }
}

.chatbot-celebration-title {
  font-size: 21px;
  font-weight: 750;
  color: #1A2E10;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.chatbot-celebration-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4A5568;
  margin: 0 0 22px 0;
}

.chatbot-celebration-sub strong {
  color: #1A2E10;
  font-weight: 650;
}

.chatbot-celebration-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 18px;
  background: #75BF46;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(117, 191, 70, 0.35);
  font-family: inherit;
}

.chatbot-celebration-btn:hover {
  background: #2A7A3B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(42, 122, 59, 0.35);
}
