:root {
  --primary-color: #e3e3e3;
  --secondary-color: #0056b3;
  --text-color: #ffffff;
  --paragraph: #000000;
  --background-color: #f4f4f9;
  --user-message-color: #007bff;
  --bot-message-color: #f4f4f9;
  --input-field-color: #ffffff;
  --input-border-color: #cccccc;
  --chatbot-bg-color: #ffffff;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
}

/* Chatbot container */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 350px;
}

/*.chat_with_us {
  background-color: var(--primary-color);
  color: white;
  padding: 1px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}*/

.power {
  font-size: 17px;
  margin: 1px;
}

.power a {
  font-weight: bold;
  text-decoration: none;
  color: black;
  margin-right: 5px;
}

/* Chatbot header */
/*#chatbot-header {
  background-color: #8f86f6;
  color: var(--text-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}*/

#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #888888; /* ash background */
  padding: 10px 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: white;
}

/*.header-left,
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}*/

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px; /* small gap between logo and text */
  justify-content: center;
  flex: 1 1 auto;
}

.chatbot-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4px;
}

#chatbot-window {
  display: block;
}

#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /*font-size: 24px;*/
}

#chatbot-icon img {
  border-radius: 50%; /* Makes the image a circle */
  width: 60px;
  height: 60px;
  object-fit: contain; /* Ensures the image fits within the circle */
}

#chatbot-header-m {
  color: var(--text-color);
  padding: 8px;
  padding-top: 0px;
  padding-bottom: 0px;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#chatbot-header h3 {
  margin: 0;
  font-size: 18px;
}

#chatbot-header button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
}

/* Chatbot body */
#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2px solid var(--primary-color); /* Add this line to create a solid border */
  background-color: var(--chatbot-bg-color);
  font-size: 17px;
}

/* Chatbot messages area */
#chatBox {
  flex-grow: 1;
  width: 350px;
  height: 300px;
  padding: 15px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Chatbot message input area */
#chatbot-input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eee;
}

#chatbot-input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  outline: none;
  border-radius: 20px;
  background-color: var(--input-field-color);
  margin-right: 10px;
}

#chatbot-actions {
  display: flex;
  position: fixed;
  bottom: 5px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.action-button {
  background-color: #1a1a1a;
  color: #ccc;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: "Roboto", sans-serif;
  border-right: 1px solid #333;
}

.action-button span {
  font-weight: bold;
}

.action-button i {
  font-size: 14px;
  padding-top: 2px;
}

.action-button:hover {
  background-color: #333;
  color: #fff;
}

.action-button:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.action-button:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-right: none;
}

.connect-btn {
  background-color: #000;
  color: #fff;
}

/* User and bot messages */
.user-message,
.bot-message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
  word-wrap: break-word; /* Ensure long words break to fit within the container */
  white-space: pre-wrap; /* Preserve whitespace and ensure text wraps correctly */
}

.user-message {
  /*background-color: var(--user-message-color);*/
  background-color: #8f86f6;
  color: white;
  align-self: flex-end;
}

.bot-message {
  background-color: var(--bot-message-color);
  color: black;
  align-self: flex-start;
}

/* Dark mode variables */
body.dark-mode {
  --chatbot-bg-color: #1a1a1a;
  /*--paragraph: #ffffff;*/
}

/* Media query for mobile devices */
@media (max-width: 600px) {
  /* Adjust chatbot container */
  #chatbot {
    bottom: 60px;
    right: 10px;
  }

  /* Adjust chatbot window */
  #chatbot-window {
    width: 100%;
    /*height: 70vh;*/
  }
}
.toggle-switch {
  position: relative;
  width: 45px;
  height: 24px;
}

.switch-checkbox {
  display: none;
}

.switch-label {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ccc;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

.switch-label::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.switch-checkbox:checked + .switch-label {
  background-color: #4caf50;
}

.switch-checkbox:checked + .switch-label::after {
  transform: translateX(21px);
}

.message {
  max-width: 300px;
  border-radius: 5px;
  align-items: center;
  align-content: center;
  font-size: 14px;
  text-align: center;
  display: grid;
  justify-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
}

.message2 {
  max-width: 300px;
  border-radius: 5px;
  margin-left: 28px;
  align-items: center;
  align-content: center;
  font-size: 14px;
  text-align: center;
  justify-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;

  background-color: #007bff;
  color: white;
  padding: 2px;
  border: none;
  cursor: pointer;
}

.online-indicator {
  width: 12px; /* Width of the circle */
  height: 12px; /* Height of the circle */
  /*background-color: green; /* Color of the circle */
  border-radius: 50%; /* Make the div a circle */
  /*display: inline-block; /* Keep it inline */
}

#action-buttons {
  text-align: center;
  margin-top: 10px;
}

.action-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 16px;
  width: 70%; /* Adjust width as needed */
}

.action-btn:hover {
  background-color: #0056b3;
}

.action-btn:active {
  background-color: #004494;
}

.service-btn {
  display: inline-block;
  padding: 10px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}
.service-btn.selected {
  background-color: #d1e7ff;
  border-color: #007bff;
}

.send-services-button,
.submit-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px 0;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: 2px solid #007bff;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.send-services-button:hover,
.submit-button:hover {
  background-color: #0056b3;
  color: #ffffff;
}

.send-services-button:active {
  background-color: #004085;
  color: #ffffff;
}

.send-services-button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

#chatbot-body p {
  /*background-color: var(--primary-color);*/
  color: var(--paragraph);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #f0f4ff;
  border-radius: 10px;
  margin-top: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container input {
  border: none;
  background-color: transparent;
  padding: 10px;
  font-size: 16px;
  flex-grow: 1;
  outline: none;
}

.input-container input::placeholder {
  color: #a0a7c2;
  font-size: 14px;
}

.input-container button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.input-container img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

#send-button {
  background-image: url("https://iframeleadbot.chatwhatchat.com/files/send_bttn4.png"); /* You would replace 'send-icon.png' with your icon's path */
  background-size: contain;
  background-repeat: round;
  /* width: 20px;
    height: 20px; */
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  color: black;
}

.small-text {
  font-size: 12px;
  color: #a0a7c2;
  margin-top: -5px;
  margin-left: 10px;
}

.interested-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 10px 10px 0;
  background-color: #f0f4ff;
  color: #007bff;
  font-weight: bold;
  border: 2px solid #007bff;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.interested-button:hover {
  background-color: #007bff;
  color: #ffffff;
}

.interested-button:last-child {
  margin-right: 0; /* Remove margin from the last button */
}

.typing-indicator {
  font-style: italic;
  color: #888;
  margin: 10px 0;
}

#datetimeInput {
  border: none;
  background-color: #f4f4f9;
  padding: 10px;
  font-size: 16px;
  flex-grow: 1;
  outline: none;
}

.time-display {
  font-size: 15px;
  font-weight: bold;
}

/* ################################################################## */

/* General Styling */
:root {
  --primary-color: #8f86f6;
  --secondary-color: #0056b3;
  --text-color: #ffffff;
  --paragraph: #000000;
  --background-color: #f4f4f9;
  --user-message-color: #007bff;
  --bot-message-color: #f4f4f9;
  --input-field-color: #ffffff;
  --input-border-color: #cccccc;
  --chatbot-bg-color: #ffffff;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
}

/* Chatbot Container */

/* Chatbot Icon */
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#chatbot-icon img {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Chatbot Header */
#chatbot-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px 10px 0 0;
}

#chatbot-header,
#chatbot-header-m {
  background-color: #878787 !important;
}

.chatbot-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.chatbot-title {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  color: white;
}

.close-icon-wrapper {
  width: 30px;
  height: 30px;
  background-color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-icon-wrapper:hover {
  background-color: #333;
}

.close-icon {
  font-size: 20px;
  color: white;
}

/*.chatbot-close-btn {
  background: none;
  border: none;
  color: red;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}*/

/* Chatbot Body */
#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--chatbot-bg-color);
  border: 1px solid var(--primary-color);
  border-radius: 0 0 10px 10px;
}

#chatBox {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  max-height: 300px;
  width: 100%;
}

/* Messages */
.user-message,
.bot-message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user-message {
  background-color: var(--user-message-color);
  color: white;
  align-self: flex-end;
}

.bot-message {
  background-color: var(--bot-message-color);
  color: black;
  align-self: flex-start;
}

/* Input Area */
#chatbot-input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eee;
  background-color: var(--input-field-color);
  border-radius: 0 0 10px 10px;
}

#chatbot-input {
  flex-grow: 1;
  border: 1px solid var(--input-border-color);
  border-radius: 20px;
  padding: 10px;
  outline: none;
  margin-right: 10px;
}

/* Buttons */
.action-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.action-btn:hover {
  background-color: var(--secondary-color);
}

/* Dark Mode */
body.dark-mode {
  --chatbot-bg-color: #1a1a1a;
  --paragraph: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  /*#chatbot {
    bottom: 60px;
    right: 10px;
  }*/

  #chatBox {
    max-height: 200px;
  }

  #chatbot-header,
  #chatbot-input-container {
    padding: 8px;
  }

  .user-message,
  .bot-message {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  #chatbot-icon img {
    width: 50px;
    height: 50px;
  }

  #chatBox {
    max-height: 170px;
  }

  .user-message,
  .bot-message {
    font-size: 12px;
    padding: 6px 10px;
  }

  #chatbot-input {
    font-size: 14px;
  }
}

#email-form-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 320px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow-y: auto;
  max-height: 80vh;
  font-family: "Roboto", sans-serif;
}

#email-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  background-color: #878787;
  color: white;
  position: relative;
}

.email-title {
  font-weight: bold;
  font-size: 20px;
  display: block;
}

.email-subtitle {
  font-size: 15px;
  color: #fff;
  margin-top: 4px;
}

.close-email {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}

.email-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-row {
  display: flex;
  gap: 10px;
}

/*.email-row input {
  width: 80%;
}*/

.email-body input,
.email-body textarea {
  width: 95%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  color: #000;
}

.email-body h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.consent-text {
  font-size: 12px;
  color: #777;
  margin: 8px 0;
}

.email-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cancel-btn,
.send-btn {
  flex: 1;
  padding: 10px;
  font-weight: bold;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #d6d6d6;
}

.cancel-btn {
  background-color: #fff;
  color: #444;
}

.send-btn {
  background-color: #b88e2f;
  color: white;
  border: 2px solid #b88e2f;
}

.cancel-btn:hover {
  background-color: #eee;
}

.send-btn:hover {
  background-color: #a07820;
}
