/* Overlay */
.cj-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal box */
.cj-modal-content {
  background: #fff;
  max-width: 400px;
  width: 90%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header */
.cj-modal-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  position: relative;
}
.cj-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.cj-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Body */
.cj-modal-body {
  padding: 1rem;
}
.cj-modal-body form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cj-modal-body input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cj-modal-body .cj-error {
  color: #c00;
  font-size: 0.9rem;
  display: none;
}

/* Footer */
.cj-modal-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  text-align: right;
}
.cj-modal-footer button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #0073aa;
  color: #fff;
}
.cj-modal-footer button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Step visibility */
.cj-step {
  display: none;
}
.cj-step.active {
  display: block;
}

/* Responsive */
@media (max-width: 480px) {
  .cj-modal-content {
    width: 95%;
  }
}
