/* Chatbot Container */
#chatbot-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 300px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  /* Chatbot Window */
  #chatbot-window {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
  }
  
  /* Header */
  .chat-header {
    background-color: #007bff;
    color: white;
    padding: 12px;
    font-weight: bold;
    justify-content: space-between;
    display: flex;
    font-size: 16px;
    align-items: center;
  }
  .chat-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
  }
  
  .chat-controls button:hover {
    color: #ffeb3b;
  }
  
  /* Chat Body */
  .chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background-color: #f7f7f7;
  }
  
  /* Chat Messages */
  .chat-message {
    margin-bottom: 8px;
    font-size: 14px;
  }
  .chat-message .user {
    text-align: right;
    color: #333;
  }
  .chat-message .bot {
    text-align: left;
    color: #007bff;
  }
  
  /* Chat Footer */
  .chat-footer {
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
  }
  .chat-footer input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 6px;
  }
  .chat-footer button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
  }
  
  /* Further Assistance Button */
  .assist-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
  }
  .assist-btn:hover {
    background-color: #218838;
  }
  
  /* Contact Form */
  .contact-form {
    margin-top: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
  }
  .contact-form input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
  }
  .contact-form button {
    background-color: #007bff;
    color: white;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
  }
  .contact-form button:hover {
    background-color: #0056b3;
  }
  .error {
    color: red;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
  }
  .chatbot-button-wrapper {
    margin-top: 8px;
  }
  
  .chatbot-assist-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .chatbot-assist-button:hover {
    background-color: #005a9e;
  }
  #chat-toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
  }
  /* Fade animation */
.fade-in {
  animation: fadeIn 0.5s forwards;
}
.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}