/* Floating chatbot wrapper */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 100%;
  max-width: 420px;
  height: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 9999;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Show chatbot */
.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: auto;
  height: auto;
  /* border-radius: 5 0%; */
  background: #0000CC;
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: transform 0.2s ease, background 0.2s;
}

.chatbot-toggle:hover {
  background: #0000AA;
  transform: scale(1.05);
}


.chatbot-header {
  background: #000;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-info h1 {
  color: #FFF;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-info p {
  font-size: 13px;
  color: #999;
}

.header-icons {
  display: flex;
  gap: 10px;
}

.header-icon {
  width: 44px;
  height: 44px;
  background: #333;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-icon:hover {
  background: #444;
}

/* Intro Screen */
.intro-screen {
  padding: 20px;
  text-align: left;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-content h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.intro-content h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.intro-content p {
  font-size: 22px;
  color: #333;
  line-height: 1.5;
}

.start-button {
  width: 100%;
  padding: 18px;
  background: #0000CC;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 40px;
}

.start-button:hover {
  background: #0000AA;
}

.powered-by {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #666;
}

.powered-by a {
  color: #0000CC;
  text-decoration: none;
  font-weight: 600;
}

/* Chat Screen */
.chat-screen {
  display: none;
  flex-direction: column;
  height: 600px;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f8f8;
}

.message {
  margin-bottom: 20px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-header {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.message-bubble {
  background: #E8E5F2;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 85%;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.quick-reply-btn {
  padding: 12px 20px;
  background: white;
  border: 2px solid #0000CC;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #000;
}

.quick-reply-btn:hover {
  background: #0000CC;
  color: white;
}

.chat-input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.chat-input:focus {
  border-color: #0000CC;
}

.send-button {
  width: 48px;
  height: 48px;
  background: #0000CC;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.send-button:hover {
  background: #0000AA;
}

.send-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Loading dots */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 16px 20px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

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

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

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

.hidden {
  display: none;
}

.show {
  display: flex;
}

@media (max-width: 600px) {
  .intro-content h2 {
    font-size: 28px;
  }

  .intro-content h3 {
    font-size: 26px;
  }

  .intro-content p {
    font-size: 18px;
  }
}