/* chatbot.css */

.chat-icon-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.chat-icon {
  /* background: orange; */
  color: white;
  padding: 15px;
  /* border-radius: 50%; */
  cursor: pointer;
  font-size: 20px;
}
/* .chat-icon:hover {
  background: #ed6912;
  color: white;
} */

.chat-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: bold;
  /* color: #ed6912; */
  color: Black;
}

.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: auto;
  min-height: 400px;
  max-height: 600px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.chat-header {
  background: #ed6912;
  color: white;
  padding: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
}

.chat-header .header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.chat-header .header-content img {
  width: 35px;
  height: 35px;
}

.chat-header .header-content span {
  font-weight: bold;
  font-size: 14px;
}

/* .chat-header:hover {
  background: orange;
  color:white;
} */
.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 400px;
}
.chat-body p {
  margin: 0px;
}

.chat-body input {
  margin: 0px;
}

.chat-body textarea {
  margin: 0px;
}

.chat-footer {
  padding: 10px;
  border-top: none;
  width: 100%;
}

.chat-icon {
  animation: floatSideToSide 3s ease-in-out infinite;
}

.chat-box {
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatSideToSide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.validation {
  margin: 4px 0 0;
  color: #d8000c;
  font-size: 12px;
}

.form-field {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.chat-footer label {
  font-size: 12px;
  margin-bottom: 2px;
}

.chat-footer input,
.chat-footer textarea,
.chat-footer button {
  margin-top: 4px;
}

.chat-footer input,
.chat-footer textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.chat-footer input:focus,
.chat-footer textarea:focus {
  outline: none;
  border-color: #ed6912;
  box-shadow: 0 0 0 2px rgba(6, 60, 126, 0.1);
}

.chat-footer input::placeholder,
.chat-footer textarea::placeholder {
  color: #999;
  opacity: 1;
}

.chat-footer textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.chat-footer button {
  margin-top: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #ed6912;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.chat-footer button:hover:not(:disabled) {
  background: #737578;
}

.chat-footer button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}