/* Chatbot Widget Styles */
#bhagwati-chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#bhagwati-chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #B32025;
  /* Deep Red */
  border: 3px solid #FFD700;
  /* Gold */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#bhagwati-chatbot-toggle:hover {
  transform: scale(1.05);
}

#bhagwati-chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chat window */
#bhagwati-chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  max-height: 80vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  animation: slideUpFade 0.3s ease forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#bhagwati-chatbot-window.open {
  display: flex;
}

/* Header */
#bhagwati-chatbot-header {
  background-color: #B32025;
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #FFD700;
}

.bhagwati-header-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.bhagwati-header-info p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #ffcccc;
}

#bhagwati-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#bhagwati-close-btn:hover {
  color: #FFD700;
}

/* Messages Area */
#bhagwati-chatbot-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f8efe6;
  /* Matches website background */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bhagwati-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bhagwati-message.bot {
  align-self: flex-start;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
}

.bhagwati-message.user {
  align-self: flex-end;
  background-color: #B32025;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Input Area */
#bhagwati-chatbot-input-area {
  display: flex;
  padding: 12px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

#bhagwati-chatbot-input {
  flex-grow: 1;
  border: 1px solid #cccccc;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

#bhagwati-chatbot-input:focus {
  border-color: #B32025;
}

#bhagwati-chatbot-mic-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 8px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  border-radius: 50%;
}

#bhagwati-chatbot-mic-btn:hover {
  color: #B32025;
}

#bhagwati-chatbot-mic-btn.listening {
  color: #ffffff;
  background-color: #B32025;
  animation: pulse-mic 1.5s infinite;
}

@keyframes pulse-mic {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(179, 32, 37, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(179, 32, 37, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(179, 32, 37, 0);
  }
}

#bhagwati-chatbot-send-btn {
  background-color: #B32025;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-left: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

#bhagwati-chatbot-send-btn:hover {
  background-color: #8a171c;
}

/* CTA Buttons */
#bhagwati-chatbot-actions {
  display: flex;
  padding: 12px;
  gap: 8px;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.bhagwati-action-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.bhagwati-call-btn {
  background-color: #ffffff;
  color: #B32025;
  border: 1px solid #B32025;
}

.bhagwati-call-btn:hover {
  background-color: #fff0f0;
}

.bhagwati-wa-btn {
  background-color: #25D366;
  /* WhatsApp Green */
  color: #ffffff;
  border: 1px solid #25D366;
}

.bhagwati-wa-btn:hover {
  background-color: #20b858;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  #bhagwati-chatbot-window {
    width: calc(100vw - 40px);
    right: 0;
    bottom: 70px;
  }
}