/* ================= RESET ================= */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  margin: 0;

 

  align-items: center;
  justify-content: center;
}

/* ================= FORM CONTAINER ================= */

.container {
  width: 100%;
  max-width: 860px;
 
      margin: 0 auto;
}

form {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);
}

/* ================= HEADINGS ================= */

h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

/* ================= STEP CONTROL ================= */

.form-step {
  animation: fadeSlide 0.35s ease;
}

.hidden {
  display: none;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FIELDS ================= */

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* ================= NAV BUTTONS ================= */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.nav button {
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.nav button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.prev {
  background: #e2e8f0;
  color: #334155;
}

.next {
  background: #6366f1;
  color: #fff;
}

.submit {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* ================= REPEATER ================= */

.repeater-block {
  border: 1px dashed #c7d2fe;
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  background: #f8fafc;
}

.repeater-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.rep-field label {
  font-size: 13px;
  margin-top: 0;
}

.add-row {
  background: #0ea5e9;
  color: #fff;
  margin-top: 12px;
}

.remove-row {
  background: #ef4444;
  color: #fff;
  align-self: end;
}

/* ================= MOBILE ================= */

@media (max-width: 640px) {
  form {
    padding: 22px;
  }
  h2 {
    font-size: 22px;
  }
}

/* ===== Validation ===== */

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.error-text {
  margin-top: 4px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
}

