.chatbot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  display: none;
  width: 340px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  position: absolute;
  bottom: 70px;
  right: 0;
  color: #fff;
  overflow: hidden;
  border: 2px solid #00f;
  animation: ledBorder 3s infinite;
}

.chatbot-header {
  background: #1a1a1a;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
}

.chatbot-icon {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
  margin-right: 8px;
}

.voice-bar {
  width: 3px;
  height: 100%;
  background: #00f;
  animation: voicePulse 1s infinite ease-in-out;
}

.voice-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.voice-bar:nth-child(3) {
  animation-delay: 0.4s;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.chatbot-messages {
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: #000;
  scroll-behavior: smooth;
}

.chatbot-input {
  display: flex;
  padding: 10px;
  background: #1a1a1a;
}

.chatbot-input input {
  flex: 1;
  padding: 8px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
  margin-right: 8px;
}

.chatbot-send {
  background: #1F4E79;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

.chatbot-send:hover {
  background: #153552;
}

.chatbot-contact-buttons {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px 12px 10px;
  background: #111;
}

.contact-button {
  flex: 0 0 48%;
  background: transparent;
  border: 1px solid white;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.contact-button:hover {
  background: white;
  color: black;
}

.message {
  margin: 6px 0;
  padding: 8px;
  border-radius: 8px;
  max-width: 80%;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  white-space: pre-wrap;
}

.message.user {
  background: #1F4E79;
  margin-left: auto;
}

.message.bot {
  background: #2d2d2d;
  margin-right: auto;
}

.typing-indicator {
  color: #888;
  margin: 5px 0;
  font-style: italic;
  animation: fadeTyping 1s infinite;
}

.chatbot-input-field {
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #000;
  color: white;
}

.chatbot-input-field::placeholder {
  color: #3c4047;
}

.date-time-field {
  background: #000;
  color: white;
  border: 1px solid white;
  padding: 8px;
}

.form-horizontal {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  max-height: 60vh;
  overflow-y: auto;
  position: relative;
}

.form-horizontal label {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.close-form-button {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cancel-button {
  background: #444 !important;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeTyping {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

@keyframes voicePulse {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
  100% { transform: scaleY(1); }
}

@keyframes ledBorder {
  0% { box-shadow: 0 0 5px #00f, 0 0 10px #00f inset; }
  50% { box-shadow: 0 0 15px #00f, 0 0 25px #00f inset; }
  100% { box-shadow: 0 0 5px #00f, 0 0 10px #00f inset; }
}