/* Wizard layout container */
.application-wizard {
  max-width: 980px;
  margin: 0 auto;
}

.application-wizard-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  padding: 24px 24px 20px;
}

.application-wizard-header {
  margin-bottom: 24px;
}

.application-wizard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.application-wizard-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.application-wizard-subtitle {
  margin: 0;
  font-size: 13px;
  color: #2563eb;
  font-weight: 700;
}

/* Progress bar + step pills */
.wizard-progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 18px;
}

.wizard-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.3s ease;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-step-pill {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-step-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-weight: 600;
  font-size: 11px;
}

.wizard-step-pill.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.wizard-step-pill.is-active span {
  background: #2563eb;
  color: #ffffff;
}

.wizard-step-pill.is-completed {
  background: #ecfdf5;
  color: #15803d;
}

.wizard-step-pill.is-completed span {
  background: #22c55e;
  color: #ffffff;
}

/* Step content */
.application-step {
  animation: wizardFade 0.25s ease-out;
}

.wizard-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.wizard-section-hint {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* Label left, field right layout */
.application-wizard .form-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.application-wizard .form-group>label {
  flex: 0 0 260px;
  max-width: 260px;
  font-weight: 500;
  margin-top: 6px;
}

.application-wizard .form-group>input,
.application-wizard .form-group>select,
.application-wizard .form-group>textarea,
.application-wizard .form-group>.btn-group,
.application-wizard .form-group>.form-control-file {
  flex: 1 1 auto;
}

.application-wizard .form-control,
.application-wizard select.form-control {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.application-wizard textarea.form-control {
  border-radius: 14px;
  min-height: 70px;
}

/* Radio pill group */
.wizard-radio-group .btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
}

.wizard-radio-group .btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Footer buttons */
.wizard-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wizard-footer-left a.btn-link {
  padding-left: 0;
}

.wizard-footer-right .btn {
  min-width: 120px;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .application-wizard-card {
    padding: 18px 14px 16px;
  }

  .application-wizard .form-group {
    flex-direction: column;
  }

  .application-wizard .form-group>label {
    flex: none;
    max-width: 100%;
    margin-bottom: 4px;
  }

  .wizard-step-pill {
    flex: 1 1 calc(50% - 8px);
  }
}