* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.chat-box-container {
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 475px;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 150px;
  transition: opacity 0.3s; /* Add transition for smooth hover effect */
  border-radius: 15px; /* Add border-radius for rounded corners */
}

.open-button:hover {
  opacity: 1; /* Increase opacity on hover */
}


  .chat-messages {
    height: 60%;
    overflow-y: scroll;
    margin-bottom: 5px;
  }

  .message-label {
    font-weight: bold; /* Bold text */
    margin-bottom: 5px; /* Margin below the label */
  }

  .user-message {
    background-color: #e6f2ff; /* Light blue background for user's messages */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding around the message */
    margin: 5px 0; /* Margin between messages */
  }


  .message {
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0;
  }

  .error-message {
    background-color: #ffe6e6; /* Light red background for errors */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding around the message */
    margin: 5px 0; /* Margin between messages */
    color: #cc0000; /* Red text color for errors */
  }
  
  /* The popup chat - hidden by default */
  .chat-popup {
    display: none;
    position: fixed;
    max-height: 80%;
    overflow-y: scroll;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
  }
  
  /* Add styles to the form container */
  .form-container {
    max-width: 350px;
    padding: 15px;
    background-color: white;
  }
  
  /* Full-width textarea */
  .form-container textarea {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
    resize: none;
    min-height: 100px;
  }
  
  /* When the textarea gets focus, do something */
  .form-container textarea:focus {
    background-color: #ddd;
    outline: none;
  }
  
  /* Set a style for the submit/send button */
  .form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
  }
  
  /* Add a red background color to the cancel button */
  .form-container .cancel {
    background-color: red;
  }
  
  /* Add some hover effects to buttons */
  .form-container .btn:hover, .open-button:hover {
    opacity: 1;
  }
 
