/* Header */

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-text-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-image {
  max-width: 50px; /* Adjust size as needed */
  height: auto;
  margin-right: 5px; /* Reduce space between image and text */
}


/* General styles */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, [type='button'], [type='reset'], [type='submit'] {
  background-color: transparent;
  background-image: none;
}


.hidden {
  display: none;
}

.relative {
  position: relative;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.h-4 {
  height: 1rem;
}

.h-8 {
  height: 2rem;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.w-full {
  width: 100%;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.border-t {
  border-top-width: 1px;
}

.border-t-gray-200 {
  --tw-border-opacity: 1;
  border-top-color: rgb(229 231 235 / var(--tw-border-opacity));
}

.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: #ececec;
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}

.p-4 {
  padding: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.leading-5 {
  line-height: 1.25rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.opacity-75 {
  opacity: 0.75;
}

@media (min-width: 640px) {
  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

/* Chatbot Specific Styles */
.chat-wrapper {
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  flex-direction: column;
  max-width: 800px; /* Set a max-width for better readability */
  margin-left: auto;
  margin-right: auto;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.chat-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.chat-message {
  margin-bottom: 10px;
  max-width: 75%;
  word-wrap: break-word;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  border: 1px solid #3742FA;
}

.chat-button {
  background-color: #3742FA;
  color: white;
  border: none;
  padding-left: 32px; /* Converted padding to px */
  padding-right: 32px; /* Converted padding to px */
  padding-top: 13px;
  padding-bottom: 13px;
  border-radius: 20px; /* Added rounded corners */
  cursor: pointer;
  margin: 5px;
}

.chat-button:hover {
  background-color: #273C75;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
  width: 100%; /* Make input take full width */
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  cursor: pointer; /* Make it look like a button */
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="number"]:focus {
  border-color: #dc2625;
  outline: none; /* Remove default outline */
}

/* Suggestions container styles */
.input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ccc;
}

.suggestions-container {
  position: absolute;
  bottom: 70px; /* Adjusted to place above input box */
  left: 0;
  right: 0;
  background-color: #ececec;
  border: 1px solid #3742FA;
  border-radius: 5px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%; /* Make it full width */
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.suggestion {
  padding: 10px;
  cursor: pointer;
  flex: 1 1 50%; /* Display suggestions in a grid layout */
  text-align: left;
}

.suggestion:hover {
  background-color: #f0f0f0;
}

.send-button {
  background-color: #158d00 ;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.send-button:hover {
  background-color: #273C75;
}

@keyframes typing {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

/* Chat Avatar Styles */
.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  position: absolute;
  bottom: 0px;
}

.bot .chat-avatar {
  left: -45px;
}

.bot {
  background-color: #ececec;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  padding-top: 1px;  /* Adjusted padding */
  padding-bottom: 1px;  /* Adjusted padding */
  margin-left: 30px; /* Margin for agent messages */
}

.user {
  background-color: #273C75;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  padding-top: 1px;  /* Adjusted padding */
  padding-bottom: 1px;  /* Adjusted padding */
  margin-right: 30px; /* Margin for user messages */
}

.user .chat-avatar {
  right: -45px;
}

.typing-animation {
  display: inline-flex;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #3742FA;
  background-color: #f5f5f5;
  margin-left: 30px; /* Margin for agent messages */
  position: relative;
  height: 2rem; /* Set a fixed height for the typing animation bubble */
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: #a7a7a7;
  border-radius: 50%;
  margin-right: 4px;
  animation: typing 1s infinite;
}

/* Style for Header */
.header-section {
  background-color: #3742FA; /* Adjust background color as needed */
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.compensation-text {
  line-height: 34px;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-style: normal;
  font-size: 34px;
  color: rgb(0, 0, 0);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -1px;
  padding-top: 10px;
}

.compensation-text strong {
  font-family: "Lato", sans-serif;
  font-size: 34px; /* Adjusted to match the main text size */
  color: rgb(0, 0, 0);
}

.compensation-text .highlight-text {
  color: #ff0000;
}

.compensation-claim-text {
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  font-size: 25px;
  color: #ffffff;
  margin-bottom: 0px;
  margin-top: 5px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

/* Force mobile view on desktop */
@media only screen and (min-width: 1024px) {
  body {
    margin: 0 auto;
    overflow-x: hidden;
  }
  .chat-wrapper {
    width: 100%;
  }
}

/* Remove spinners from number input fields */
input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Pop-up styles */
.popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease-out;
  z-index: 1000;
}

.popup-content {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.popup-content h2 {
  margin-top: 0;
}

.popup-content label {
  display: block;
  margin: 10px 0;
  text-align: left;
}

.popup-content input[type="checkbox"] {
  margin-right: 10px;
}

.submit-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3742FA;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 20px; /* Added rounded corners */
}

.submit-button:hover {
  background-color: #c8a0eb;
}

/* Slide up animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Close button styles */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

/* Dropup input container fixed at the bottom */
.dropup-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ccc;
  z-index: 1000;
  padding-top: 0px;
  box-sizing: border-box; /* Ensure padding and border are included in width and height calculations */
}

/* Dropup container styles */
.dropup-container {
  position: fixed; /* Keep it fixed at the bottom */
  bottom: 60px; /* Place it above the input box */
  left: 0;
  right: 0;
  background-color: #ffffff; /* White background */
  border: 1px solid #3742FA;
  border-radius: 5px;
  max-height: 600px; /* Set a max height */
  overflow-y: scroll; /* Enable vertical scroll with scrollbar */
  overflow-x: hidden; /* Hide horizontal scroll */
  width: 100%; /* Make it full width */
  display: block; /* Always show the dropup */
  box-sizing: border-box; /* Ensure padding and border are included in width and height calculations */
}

/* Dropup suggestion styles */
.dropup-suggestion {
  padding: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%; /* Make each suggestion take the full width */
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  border-bottom: none; /* Remove the border */
}

.dropup-suggestion:hover {
  background-color: #e0e0e0;
}

.dropup-suggestion.selected {
  background-color: #1E90FF;
  color: white;
}

/* Dropup button styles */
.dropup-button {
  width: calc(100% - 80px) !important; /* Make button take full width minus space for the send button */
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  cursor: pointer; /* Make it look like a button */
  color: #ffffff !important; /* Set the text color to white */
  background-color: #158d00 !important; /* Set the background color */
  text-align: center; /* Center the text */
  font-weight: 500;
}

.dropup-button:focus {
  border-color: #dc2625;
  outline: none; /* Remove default outline */
}

/* Custom scrollbar */
.dropup-container::-webkit-scrollbar {
  width: 12px; /* Set width of the scrollbar */
}

.dropup-container::-webkit-scrollbar-track {
  background: #f1f1f1; /* Set background color of the scrollbar track */
}

.dropup-container::-webkit-scrollbar-thumb {
  background-color: #3742FA; /* Set color of the scrollbar thumb */
  border-radius: 6px; /* Add roundness to the thumb */
  border: 2px solid #f1f1f1; /* Add a border around the thumb for padding */
}

@media only screen and (min-width: 1024px) {
  .dropup-input-container,
  .input-container,
  .dropup-container {
    max-width: 800px; /* Match the max-width of chat-wrapper */
    margin-left: auto;
    margin-right: auto;
    left: 0; /* Remove left offset */
    right: 0; /* Remove right offset */
    transform: none; /* Remove centering transform */
  }
}
