/* ============================
   Simple Bootstrap-like Modal
   ============================ */

/* Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

/* Modal container */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;

  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;

  /* For fade animation */
  transition: opacity 0.25s ease;
  opacity: 0;
}

/* When modal is visible */
.modal.show {
  display: block;
  opacity: 1;
}

/* Modal dialog (centering shell) */
.modal-dialog {
  position: relative;
  margin: 1.75rem auto;
  pointer-events: none;
  max-width: 600px;
  width: 90%;
  transition: transform 0.25s ease-out;
  transform: translateY(-20px);
}

/* Pop-in transition */
.modal.show .modal-dialog {
  transform: translateY(0);
}

/* Actual modal content */
.modal-content {
  background-color: #fff;
  pointer-events: auto;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 1.1rem;
  margin: 0;
}

.modal-header .btn-close {
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Body */
.modal-body {
  flex: 1 1 auto;
  padding: 18px;
  overflow-y: auto;
}

/* Footer */
.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #eee;

  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Optional responsive sizes */
@media (min-width: 500px) {
  .modal-dialog {
    max-width: 500px;
  }
}

.chatbot-button {
  position: fixed;
  cursor: pointer;
  bottom: 80px !important;
  right: 20px;
  z-index: 1000;
  background: transparent;
  border: none;
}

@media (min-width: 500px) {
  .chatbot-button {
    bottom: 20px !important;
  }
}

.chat-header .row {
  justify-content: space-between;
}

.enlarge-chat-window .chat-header {
  justify-content: center !important;
}

.close-chat {
  top: 15px;
}

.chat-window {
  right: 18vw !important;
}



