/* Background overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal container */
.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tombol tutup X */
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

/* Judul & deskripsi */
.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.modal-header p {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
}

/* Input fields */
.modal-content input {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content input:focus {
  outline: none;
  border-color: #2e7dff;
  box-shadow: 0 0 0 2px rgba(46, 125, 255, 0.2);
}

/* Submit button */
.modal-content button[type="submit"] {
  background-color: #2e7dff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  transition: background-color 0.2s;
}

.modal-content button[type="submit"]:hover {
  background-color: #1c6ae9;
}

/* Tombol cancel / kembali */
.modal-content .btn-cancel,
.modal-content button:not([type="submit"]) {
  background-color: #f1f3f5;
  color: #555;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.modal-content .btn-cancel:hover,
.modal-content button:not([type="submit"]):hover {
  background-color: #e4e7eb;
}

/* Error message */
.modal-content .error-message {
  color: #e74c3c;
  font-size: 13px;
  margin: -8px 0 12px;
  display: none;
  text-align: left;
}

/* Form group untuk jarak antar input */
.form-group {
  margin-bottom: 16px;
}

/* Jika kamu ingin menyembunyikan tahap tertentu */
#step2 {
  display: none;
}