/* --------------------- */
/* Fade-in overlay + centering */
/* --------------------- */
.chatnxt-modal {
  display: none;
  position: fixed;
  inset: 0;                          /* shorthand for top/right/bottom/left */
  background: rgba(0,0,0,0.6);       /* darker backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chatnxt-modal.show {
  display: flex;
  opacity: 1;
}

/* --------------------- */
/* Modal box styling + slide animation */
/* --------------------- */
.chatnxt-modal-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  position: relative;
  animation: slideIn 0.4s ease-out;
}

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

/* --------------------- */
/* Close button styling */
/* --------------------- */
.chatnxt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.chatnxt-close:hover {
  color: #333;
}
#chatnxt-extra-form {
  margin-bottom: 1.5em;
}

.chatnxt-field {
  margin-bottom: 1em;
}

.chatnxt-fieldset {
  border: 1px solid #ddd;
  padding: 0.75em;
  margin-bottom: 1em;
}

.chatnxt-fieldset legend {
  font-weight: bold;
  margin-bottom: 0.5em;
}

.chatnxt-option {
  display: inline-block;
  margin-right: 1em;
}
