body {
  /*font-family: "Poppins", sans-serif;*/
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;

  /*background-color: #f5f5f5;*/
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.message {
  animation: fadeIn 2s;
}

#preloader {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

#chat-container {
  width: 90%;
  max-width: 600px;
  margin: auto;
  background: #fff;
  /* border: 1px solid #ddd;*/
  border-radius: 5px;
  overflow: hidden;
  padding-top: 10px;
  padding: 20px;
  /*box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds a subtle shadow to the form */
}
#chat-box {
  height: 340px;
  overflow-y: auto;
  padding: 5px 0px 0px 0px;
  border-bottom: 1px solid #ddd;
}
#chat-box p,
#chat-box iframe {
  margin: 0 0 10px;
  line-height: 1.4;
}
#chat-input {
  width: calc(100% - 90px);
  padding: 20px;
  border: none;
  font-family: "Roboto Slab", Sans-serif !important;
  font-size: 16px;
  border: 1px solid #ee4037;
}
button,
.loading {
  /*width: 60px;*/
  font-family: "Roboto Slab", Sans-serif !important;
  padding: 10px;
  border: none;
  background-color: #ee4037;
  color: white;
  cursor: pointer;
  text-align: center;
}
button:hover {
  background-color: #c33127;
}
iframe {
  width: 100%;
  height: 400px; /* Adjust as needed */
  border: none;
}

#comp-logo {
  max-width: 550px;
  margin: auto;
  text-align: center;
}

.question-btn {
  border: 1px solid rgb(202, 202, 202);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: rgb(240, 240, 240);
  cursor: pointer;
}

.question-btn:hover {
  border: 1px solid rgb(202, 202, 202);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
  cursor: pointer;
}

.btn-red {
  padding: 12px;
  width: 30%;
  text-align: center;
  margin: 0px auto;
  color: #fff;
  border-radius: 5px;
  background-color: #ee4037;
  cursor: pointer;
}

.stl-tag {
  text-align: center;
  font-size: 0.9em;
  /*color:#d7d7d7;*/
}

.chatagent-tag {
  text-align: center;
  font-size: 1em;
}
#example-questions li.asked {
  color: rgb(55, 0, 117); /* Change as needed */
  pointer-events: none; /* Prevents further clicks */
}

#end-chat-btn {
  background-color: rgb(169, 169, 169);
}

.user-message {
  background-color: #faffd7; /* Light green background for user messages */
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 5px;
}
.bot-message {
  background-color: #ffffff; /* White background for bot messages */
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 5px;
}

.user-message a,
.bot-message a {
  color: #0066cc; /* Blue color for links */
  text-decoration: none; /* Optional: removes underline */
}

.user-message a:hover,
.bot-message a:hover {
  text-decoration: underline; /* Re-add underline on hover */
}
a {
  color: #0066cc !important; /* Make links obviously blue */
  text-decoration: underline !important; /* Ensure they are underlined */
  pointer-events: auto !important; /* Make sure they are clickable */
}

/* General body styling */
body {
  /*font-family: "Arial", sans-serif; /* Ensures a clean, modern font is used */
  font-family: "Roboto Slab", Sans-serif !important;
  font-size: 16px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* Centers the form in the viewport horizontally */
  align-items: center; /* Centers the form in the viewport vertically */
  height: 100vh; /* Uses the full height of the viewport */
  background: #030a2a; /* Light grey background for a neutral look */

  background: url(https://redacted.inc/wp-content/uploads/2024/11/RED_ELECTION_BG1.webp)
    repeat;
  padding: 3%;
  background-size: cover;
}

/* Styling for the user-info-form */
#user-info-form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to the form */
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column; /* Stacks the input fields vertically */
  gap: 10px; /* Adds space between the fields */
}

/* Styling for input fields */
#user-info-form input {
  padding: 10px;
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 4px; /* Rounded borders for the input fields */
  font-size: 16px; /* Slightly larger font for readability */
}

/* Styling for the submit button */
#user-info-form button {
  background: #ee4037; /* Bootstrap's primary blue */
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer; /* Changes the cursor to a pointer when hovering over the button */
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

#user-info-form button:hover {
  background: #c33127; /* Darker blue when the button is hovered over */
}
/* 
#chatbotAvatar {
    width: 100px;
    height: auto;
    border-radius: 50%;
    margin: 10px;
    text-align: center;
    margin: 0px auto;
    /*display: none;
} 
*/

#chatbotAvatar {
  width: 90%;
  height: auto;
  padding-top: 2%;
  border-radius: 0%;
  margin: 0px;
  text-align: center;
  margin: 0px auto;
  /*display: none;*/
}

.slider {
  width: 300px;
  margin: 15px;
}

/* ===== Chat Input (WhatsApp style) ===== */

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  padding: 0px;
  border-top: 1px solid #eee;
  background: #fff;
}

.chat-input-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 0px;
  padding: 0px 0px;
}

#chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 20px;
  font-size: 16px;
}

/* ===== Icon Buttons (Clean Circular Style) ===== */

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  opacity: 1;
  background: #f0f0f0;
}

/* ===== Mic Icon ===== */

.mic-btn {
  background: #ffffff;
}

.mic-icon {
  width: 12px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #555;
  position: relative;
}

.mic-icon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #555;
}

.mic-btn.recording {
  border-color: #ee4037;
  background: #fff5f5;
}

.mic-btn.recording .mic-icon {
  border-color: #ee4037;
}

.mic-btn.recording .mic-icon::after {
  background: #ee4037;
}

/* ===== Auto-Send Checkmark ===== */

.autosend-btn {
  background: #ffffff;
}

.checkmark {
  width: 10px;
  height: 6px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(-45deg);
  margin-bottom: 2px;
}

/* Active (auto-send ON) */
#autosend-toggle[style*="opacity: 1"] {
  background: #ee4037;
  border-color: #ee4037;
}

#autosend-toggle[style*="opacity: 1"] .checkmark {
  border-color: #fff;
}

.send-btn {
  padding: 20px 15px 20px 15px;
  margin-left: 6px;
}

.end-btn {
  padding: 20px 15px 20px 15px;
}

/* ===== Call Button ===== */

/* .call-btn {
  background: #ffffff;
  background-image: url("/chatbot/images/microphone-audio.png");
} */

/*.call-btn {
  background-image: url("/chatbot/images/microphone-audio.png"); /* ← safer RELATIVE path */
/*background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}*/

.call-btn {
  position: relative;
  background-image: url("/chatbot/images/microphone-audio.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.call-btn:hover {
  position: relative;
  background-image: url("/chatbot/images/microphone-audio.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.listening-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(238, 64, 55, 0.25);
  opacity: 0;
}

.call-btn.active .listening-ring {
  opacity: 1;
  animation: listenPulse 1.2s infinite ease-out;
}

@keyframes listenPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.call-btn.active .listening-ring {
  opacity: 1;
  border-top-color: #ee4037;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.call-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #555;
  position: relative;
}

.call-icon::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 4px;
  border-radius: 4px;
  background: #555;
  top: 6px;
  left: 1px;
  transform: rotate(-30deg);
}
