/* ============================================================
   TALEEMI CARD — REGISTRATION FORM CSS
   ============================================================ */

.reg-body { background: #f4f7f5; }

/* ── CONTAINER ── */
.reg-container { max-width: 780px; margin: 0 auto; padding: 32px 20px 60px; }

/* ── HEADER ── */
.reg-header { text-align: center; margin-bottom: 28px; }
.reg-title { font-size: 26px; font-weight: 700; color: #1a5c2e; margin-bottom: 6px; }
.reg-subtitle { font-size: 14px; color: #888; }

/* ── STEP BAR ── */
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 12px;
  padding: 18px 24px;
  gap: 0;
}
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.si-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  border: 2px solid #dde8e1;
  background: #fff;
  color: #bbb;
  transition: all .2s;
}
.si-label {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
  font-weight: 500;
}
.step-indicator.active .si-num { border-color: #1a5c2e; color: #1a5c2e; background: #e8f5ec; }
.step-indicator.active .si-label { color: #1a5c2e; }
.step-indicator.done .si-num { border-color: #1a5c2e; background: #1a5c2e; color: #fff; }
.step-indicator.done .si-label { color: #1a5c2e; }
.step-line { flex: 1; height: 2px; background: #dde8e1; margin: 0 8px; margin-bottom: 20px; transition: background .2s; }
.step-line.done { background: #1a5c2e; }

/* ── FORM ── */
.reg-form { display: flex; flex-direction: column; gap: 0; }

.form-section {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1a5c2e;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f5ec;
  margin-bottom: 18px;
}

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 5px; }
.req { color: #dc2626; margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #d0d7df;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: #1a5c2e; box-shadow: 0 0 0 3px rgba(26,92,46,0.1); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.mb-8 { margin-bottom: 8px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ── HEARD VIA PILLS ── */
.heard-via-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.heard-via-pill { display: flex; align-items: center; cursor: pointer; }
.heard-via-pill input[type="radio"] { display: none; }
.heard-via-pill span {
  padding: 7px 16px;
  border: 1.5px solid #d0d7df;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  transition: all .15s;
  user-select: none;
}
.heard-via-pill input:checked + span {
  border-color: #1a5c2e;
  background: #e8f5ec;
  color: #1a5c2e;
  font-weight: 600;
}

/* ── RADIO OPTIONS ── */
.radio-options { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-opt { display: flex; align-items: center; cursor: pointer; }
.radio-opt input[type="radio"] { display: none; }
.radio-opt span {
  padding: 7px 16px;
  border: 1.5px solid #d0d7df;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  transition: all .15s;
}
.radio-opt input:checked + span {
  border-color: #1a5c2e;
  background: #e8f5ec;
  color: #1a5c2e;
  font-weight: 600;
}

/* ── CHECKBOXES ── */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 10px 12px; border: 1.5px solid #e8e8e8; border-radius: 8px; transition: all .15s; }
.check-item:hover { border-color: #1a5c2e; background: #f7fdf8; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1a5c2e; flex-shrink: 0; margin-top: 1px; }
.check-item span { font-size: 13px; color: #444; line-height: 1.4; }
.check-item input:checked ~ span { color: #1a5c2e; font-weight: 500; }

/* ── JI WORKER TOGGLE ── */
.ji-worker-toggle { padding: 14px 16px; background: #f7faf8; border: 1.5px solid #dde8e1; border-radius: 9px; }
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: #1a5c2e; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1a5c2e; }

/* ── CHILD CARDS ── */
.child-card {
  background: #f9fbfa;
  border: 1.5px solid #dde8e1;
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 14px;
}
.child-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.child-card-title { font-size: 14px; font-weight: 600; color: #1a5c2e; }
.btn-remove {
  background: #fee2e2;
  border: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.btn-remove:hover { background: #fecaca; }
.add-child-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed #3a9a52;
  border-radius: 10px;
  background: #f0faf3;
  color: #1a5c2e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  margin-top: 4px;
}
.add-child-btn:hover { background: #e0f5e6; }

/* ── SCHOOL SEARCH ── */
.school-search-wrap { position: relative; }
.school-suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #1a5c2e;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 99;
  display: none;
}
.school-suggestions.show { display: block; }
.school-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.school-suggestion-item:hover { background: #f0faf3; }
.school-suggestion-item:last-child { border-bottom: none; }
.school-type-badge { font-size: 10px; color: #888; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.school-add-new {
  padding: 11px 14px;
  font-size: 13px;
  color: #1a5c2e;
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
}
.school-add-new:hover { background: #f0faf3; }

/* ── REVIEW ── */
.review-block { margin-bottom: 16px; background: #f7faf8; border: 1px solid #dde8e1; border-radius: 10px; overflow: hidden; }
.review-block-title { background: #1a5c2e; color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 14px 16px; }
.review-grid div { padding: 5px 0; }
.review-grid div span { display: block; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.review-grid div strong { font-size: 13px; color: #1a1a1a; }
.review-child { padding: 10px 16px; border-bottom: 1px solid #e8e8e8; font-size: 13px; display: flex; gap: 12px; align-items: baseline; }
.review-child:last-child { border-bottom: none; }
.review-child strong { color: #1a5c2e; }
.review-child span { color: #888; }

/* ── CONSENT ── */
.consent-list { display: flex; flex-direction: column; gap: 10px; }
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: #f7faf8;
  border: 1.5px solid #dde8e1;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.consent-item:hover { border-color: #1a5c2e; }
.consent-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1a5c2e; flex-shrink: 0; margin-top: 2px; }

/* ── FORM ACTIONS ── */
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.btn-next { flex: 1; max-width: 320px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 9px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all .15s; }
.btn-primary { background: #1a5c2e; color: #fff; }
.btn-primary:hover { background: #2a7a3f; }
.btn-outline-green { background: transparent; border: 2px solid #1a5c2e; color: #1a5c2e; }
.btn-outline-green:hover { background: #e8f5ec; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── ALERTS ── */
.alert { padding: 13px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; }
.alert-danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.text-muted { color: #aaa; font-weight: 400; }

/* ── SUCCESS PAGE ── */
.success-card {
  background: #fff;
  border: 1px solid #dde8e1;
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-top: 20px;
}
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 28px; font-weight: 700; color: #1a5c2e; margin-bottom: 8px; }
.success-subtitle { font-size: 15px; color: #888; margin-bottom: 28px; }
.success-details {
  background: #f7faf8;
  border: 1px solid #dde8e1;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}
.success-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.success-row:last-child { border-bottom: none; }
.success-row span { color: #888; }
.success-row strong { color: #1a5c2e; font-weight: 600; }
.success-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 14px 16px; font-size: 13px; color: #856404; line-height: 1.7; margin-bottom: 24px; text-align: left; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media(max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .steps-bar { padding: 14px 12px; gap: 0; }
  .si-label { display: none; }
  .form-actions { flex-direction: column-reverse; }
  .btn-next { max-width: 100%; width: 100%; }
  .btn-outline-green { width: 100%; }
}
