.admission-form {
  max-width: 920px;
  margin: 0 auto;
}

/* ── Step Indicator ── */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}

.form-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  cursor: default;
}

.form-steps .step.clickable {
  cursor: pointer;
}

.form-steps .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-steps .step.locked .step-circle {
  background: var(--border-color);
  color: var(--text-muted);
}

.form-steps .step.active .step-circle {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.25);
  transform: scale(1.1);
}

.form-steps .step.completed .step-circle {
  background: var(--brand-primary);
  color: #fff;
}

.form-steps .step.completed .step-circle-text {
  display: none;
}

.form-steps .step.completed .step-circle::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.form-steps .step-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}

.form-steps .step.locked .step-label {
  color: var(--text-muted);
}

.form-steps .step.active .step-label {
  color: var(--brand-primary);
  font-weight: 700;
}

.form-steps .step.completed .step-label {
  color: var(--brand-primary);
}

.form-steps .step-line {
  width: 60px;
  height: 3px;
  margin: 0 4px 20px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.form-steps .step-line.done {
  background: var(--brand-primary);
}

.form-steps .step-line.pending {
  background: var(--border-color);
}

/* ── Form Section Card ── */
.form-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.form-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--brand-light);
}

.form-section-header .section-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-section-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0;
}

.form-section-body {
  padding: 24px;
}

/* ── Step Panel ── */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* ── Form Fields ── */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.form-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .form-row,
  .form-row.cols-2,
  .form-row.cols-3,
  .form-row.cols-4 {
    grid-template-columns: 1fr;
  }
}

.field-group {
  margin-bottom: 16px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.field-group label .required {
  color: #dc2626;
  margin-left: 2px;
}

.field-group .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field-group .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.12);
}

.field-group .form-control::placeholder {
  color: #aaa;
}

.field-group .form-control.is-invalid {
  border-color: #dc2626;
}

.field-group .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-group .invalid-feedback {
  display: none;
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 4px;
}

.field-group .is-invalid ~ .invalid-feedback {
  display: block;
}

.field-group select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field-group textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.field-group .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── File Upload ── */
.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  background: var(--brand-light);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-upload:hover {
  border-color: var(--brand-primary);
  background: rgba(31, 122, 77, 0.04);
}

.file-upload.has-file {
  border-color: var(--brand-primary);
  border-style: solid;
  background: rgba(31, 122, 77, 0.06);
}

.file-upload.is-invalid {
  border-color: #dc2626;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload .upload-icon {
  font-size: 1.8rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.file-upload .upload-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.file-upload .upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.file-upload .file-name {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: 4px;
  word-break: break-all;
}

/* ── Info Banner ── */
.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.info-banner.info {
  background: rgba(31, 122, 77, 0.08);
  border: 1px solid rgba(31, 122, 77, 0.2);
  color: var(--brand-dark);
}

.info-banner.warning {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: #92400e;
}

.info-banner.danger {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.info-banner i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-banner strong {
  font-weight: 600;
}

/* ── Step Navigation ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 12px;
}

.step-nav .btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.step-nav .btn-prev {
  background: #fff;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.step-nav .btn-prev:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

.step-nav .btn-next {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.step-nav .btn-next:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.step-nav .btn-next:disabled {
  background: var(--border-color);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.step-nav .btn-submit {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.step-nav .btn-submit:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ── Correction Banner ── */
.correction-banner {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  color: #92400e;
}

.correction-banner h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.correction-banner h4 i {
  margin-right: 6px;
}

.correction-banner p {
  margin: 0;
  font-size: 0.9rem;
}

/* ── Seat badge ── */
.seat-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.seat-badge.available {
  background: rgba(31, 122, 77, 0.12);
  color: var(--brand-primary);
}

.seat-badge.limited {
  background: rgba(201, 162, 39, 0.15);
  color: #92400e;
}

.seat-badge.full {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

@media (max-width: 576px) {
  .admission-form {
    padding: 0 8px;
  }

  .form-section-body {
    padding: 16px;
  }

  .form-steps .step-label {
    font-size: 0.65rem;
  }

  .form-steps .step-line {
    width: 30px;
  }

  .step-nav {
    flex-direction: column;
  }
}
