/* Chatbot Library Styles */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

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

.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #ef3936;
  border-radius: 50% 15% 50% 50%/52% 50% 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}
.chat-icon:hover {
  transform: scale(1.05);
  background-color: #d73530;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-icon:active {
  transform: scale(0.95);
}
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 30px;
  width: 400px;
  max-width: 90%;
  height: 600px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: 'Montserrat', sans-serif;
}

@keyframes slideUpSmooth {
  from {
    opacity: 0;
    transform: translateY(100%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideDownSmooth {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(100%) scale(0.95);
  }
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, #ef3936, #d73530);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.chat-header .logo {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  margin-bottom: 5px;
}

.chat-header .logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.chat-header h2 {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1;
}

.chat-header .tagline {
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
  line-height: 1.2;
}

/* System Messages */
.system-message {
  display: block;
  width: 100%;
  text-align: center;
  color: #494949;
  margin: 10px 0;
  font-size: 12px;
  font-style: italic;
}

.message.system-message {
  display: flex !important;
  justify-content: center;
  width: 100%;
  margin: 10px 0;
  font-style: italic;
  font-size: 12px;
  color: #494949;
}

.system-message .message-text {
  background: none;
  border: none;
  color: #494949;
  padding: 0;
  border-radius: 0;
  font-style: italic;
}

/* Buttons */
.attach-button {
  background: none !important;
  padding: 8px !important;
  margin-left: 10px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.attach-button:hover {
  background: rgba(151, 151, 151, 0.1) !important;
  transform: scale(1.07);
}

.attach-button:active {
  transform: scale(0.95);
}

.attach-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-button {
  background: none !important;
  padding: 8px !important;
  margin-left: 10px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.send-button:hover {
  background: rgba(151, 151, 151, 0.1) !important;
  transform: scale(1.05);
}

.send-button:active {
  transform: scale(0.95);
}

.end-chat-btn {
  position: absolute;
  top: 7px;
  right: 23px !important;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: normal;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.end-chat-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.end-chat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dialogs */
.end-chat-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.end-chat-dialog {
  background: white;
  padding: 16px;
  border-radius: 8px;
  width: 85%;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: "Montserrat", sans-serif;
  animation: scaleIn 0.2s ease-out;
}

.end-chat-dialog h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #333333e0;
  font-weight: 510;
}

.end-chat-dialog p {
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-buttons button {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cancel-button {
  background: #f0f0f0;
  color: #666;
}

.confirm-button {
  background: #ef3936;
  color: white;
}

.cancel-button:hover {
  background: #e5e5e5;
}

.confirm-button:hover {
  background: #d73530;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header Buttons */
.chat-header button[aria-label="Minimize chat"] {
  position: absolute;
  top: 8px;
  right: 45px !important;
  width: 28px;
  height: 28px;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.chat-header button[aria-label="Minimize chat"]:hover {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

/* End Chat Container */
.end-chat-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
}

.new-chat-button {
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  border: none;
  color: #ffffff;
  background-color: #ef3936;
  transition: all 0.2s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-chat-button:hover {
  background-color: #d73530;
  transform: translateY(-1px);
}

.new-chat-button:active {
  transform: translateY(0);
}

/* Chat Window */
.chat-window {
  flex: 1;
  padding: 15px;
  background-color: #f7f7f7;
  overflow-y: auto;
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
  background-color: #dcdcdc;
  border-radius: 3px;
}

/* Message Styling */
.message {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  word-wrap: break-word;
  position: relative;
}

.user-message {
  justify-content: flex-end;
}

.chatbot-message::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #ffffff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOIAAACsCAMAAABRnID5AAAC61BMVEUAAAD/AAD/AAD/AAC/AADMMzPVKyvbJCTfICDjHBzMGhrRFxfVFRXYJyfbJCTdIiLPICDSHh7VHBzXGxvZGhrbGBjRIyPTISHVICDWHx/YHR3ZHBzRGxvTGhrVIiLWISHXICDYHx/SHh7THR3WHBzXGxvYISHSICDTHx/VHh7VHh7WHR3XHBzTHBzUISHVICDVHx/WHx/XHh7THR3UHR3VHBzVHBzWICDXHx/THx/UHh7VHh7VHR3WHR3XHBzTICDUHx/VHx/VHh7WHh7WHh7THR3UHR3VHBzVHx/WHx/WHx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FMPQQRfPgGkRFdBhc0yg6lgJDeyjqAVduHS+t+la4UiooehKGrqdoAxqby0va1gWN3EFRQ1sYeouiYWgsdQUvbt+vQmhsI0XvwFDLOmqOp+JCty399OA3+Nf6Z/uFcIGucYp+DkOPUjQN3uZRdCAMO6FyaqLt4CuzmqJJMHQLRe/C2ziKalvAUClFA+BtJ0WvwlDbBmoOhOGrgKq+MPQkRZPgbTFFu2Eo+Sg1tS3gq+U5iu6DoaEULYK3KRRVN4WhNRT1ga/wIYqeh6FOMWp2wdsgqnrA0HSKxsDbSoo2wFDaCWqqmsLXFVGKhsHQ3RTNhrdnKTqeCkObKeoGX6lfUPQ0DHWNU7MO3kZQFGsPQy9QVAhvWyh6D4Yyqqg5lgJf3am6GYbuo6gE3l6k6GAYhsqoaciDr6waiibD0I8pWg5vv6GorhUMvUJRf3j7hKLFMNTsK2rKQ/D1M6oKYOhBiibC21sU/ROW9lBT2xy+cusoGg9D11P0Mrw9QdGZLBh6k6Le8HXZKYrmw1DLOmq2w9tUqq6CoUcpGg1fGSco2gxDoXJqqjLgawpVI2DoZopmwlfraoq+TIOhUmriXeBrIVXPwlDbBmpWw1evGEWxDjBUQtEQeEraTtXfYCj5KDVHkuFpMmW3wtBQih6Dpy61VB1OgqHV1DS0gZ+kzZQVw1D7GDWvwdMfKDubC0NTqTnXDn761FNWAkurqHkYfnI+o2xvBiztoWRFCF6SPqDsTA+Y2kbF2ibwM52ySD/YmkXB6+nwc2ecqoprYKxDDS+lajw8/TBC1buXw1z/E7yomtmt4SnvMEXrB+Db0HzC21vL/r8df50/NAu+khaWKTa+8eD3kZCQkJCQkGDvf0Rb43yT9F+CAAAAAElFTkSuQmCC") no-repeat 50%;
  background-size: 60%;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid #ef3936;
}

.operator-message::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #cfcece url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 60%;
  border-radius: 50%;
  margin-right: 10px;
}

.user-message::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background: #ef3936 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 60%;
  border-radius: 50%;
  margin-left: 10px;
}

.message-text strong {
  font-weight: bold;
}

.message-text p {
  margin-bottom: 4px;
}

/* Message bubbles */
.user-message .message-text {
  background-color: #ef3936;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 20px 20px 0 20px;
  max-width: 80%;
  font-size: 14px;
  position: relative;
  animation: slideInRight 0.3s ease-out;
}

.chatbot-message .message-text {
  background-color: #ffffff;
  color: #333333;
  padding: 10px 15px;
  border-radius: 20px 20px 20px 0;
  max-width: 80%;
  font-size: 14px;
  border: 1px solid #ced4da;
  position: relative;
  animation: slideInLeft 0.3s ease-out;
}

.operator-message .message-text {
  background-color: #ffffff;
  color: #333333;
  padding: 10px 15px;
  border-radius: 20px 20px 20px 0;
  max-width: 80%;
  font-size: 14px;
  border: 1px solid #ced4da;
  position: relative;
  animation: slideInLeft 0.3s ease-out;
}

/* Chat Input */
.chat-input {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #f8f9fa;
  border-top: 1px solid #ced4da;
}

.chat-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.chat-input input:focus {
  border-color: #ef3936;
}

.chat-input button {
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  border: none;
  color: #ef3936;
  background-color: #ef3936;
  flex-shrink: 0;
}

.chat-input button:hover {
  background-color: #d73530;
}

.chat-input button + button {
  margin-left: 5px;
}

/* Message Time */
.message-time {
  display: block;
  font-size: 10px;
  margin-top: 1px;
  opacity: 0.7;
}

.time-right {
  text-align: right;
  color: #474747;
  margin-top: -4px;
}

.time-left {
  text-align: left;
  color: #fffefe;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scrollbar */
.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
  background-color: #ced4da;
  border-radius: 3px;
}

.chat-window::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* Error Message */
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 20px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  z-index: 10002;
}

/* Guest Prompt */
.guest-prompt {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin: 0 auto;
  max-width: 260px;
  text-align: left;
  animation: fadeIn 0.3s ease-out;
  border: none;
  position: relative;
  left: 0;
  transition: transform 0.3s ease;
}

.message.chatbot-message .guest-prompt {
  margin-top: -50px;
  position: relative;
  width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.guest-prompt h5 {
  margin: 0 0 18px 0;
  font-size: 0.85rem;
  color: #5c5c5c;
  line-height: 1.3;
  font-weight: 450;
  font-family: "Montserrat", sans-serif;
}

.guest-prompt form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-prompt input[type="text"],
.guest-prompt input[type="email"]{
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  font-family: "Montserrat", sans-serif;
  background-color: #f8f9fa;
  box-sizing: border-box;
}

.guest-prompt input[type="text"]:focus,
.guest-prompt input[type="email"]:focus {
  border-color: #ef3936;
  outline: none;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(239, 57, 54, 0.1);
}

.guest-prompt input[type="text"]::placeholder,
.guest-prompt input[type="email"]::placeholder {
  color: #999;
  font-size: 0.8rem;
}

.guest-prompt button[type="submit"] {
  width: 100%;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background-color: #ef3936;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: all 0.2s ease;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guest-prompt button[type="submit"]:hover {
  background-color: #d73530;
  transform: translateY(-1px);
}

.guest-prompt button[type="submit"]:active {
  transform: translateY(0);
}

/* File Attachment */
.file-attachment-info {
  position: relative;
  top: -15px;
  left: 15px;
  right: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-name {
  font-size: 0.7rem;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-left: -13px;
  margin-top: 5px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
  padding: 2px 0;
}

.clear-file {
  background: none;
  border: none;
  color: #5f5e5e;
  font-size: 1.2rem;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1;
  position: relative;
  right: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
}

.clear-file:hover {
  color: #ef3936;
  background-color: rgba(0, 0, 0, 0.05);
}

.image-preview {
  border-top: 1px solid #eee;
  max-height: 100px;
  overflow: hidden;
  border-radius: 4px;
  margin-left: -15px;
  margin-bottom: -5px;
}

.image-preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* Image Preview Modal */
.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20000;
  animation: fadeIn 0.2s ease-out;
}

.image-preview-modal {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.2s ease-out;
}

.image-preview-modal img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.close-preview {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ef3936;
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

.close-preview:hover {
  background: #d73530;
}

.message-image img {
  transition: transform 0.2s ease;
  max-width: 200px;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
}

.message-image img:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 600px) {
  .chat-container {
    width: 90%;
    right: 5%;
    bottom: 80px;
    height: 70vh;
  }
  
  .chat-icon {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }
}

/* Loading Spinner */
.spinner-border {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 3rem;
  height: 3rem;
  z-index: 10001;
  border: 0.3em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  color: #ef3936;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}