/* =========================================================================
   AMDT -- Congres Tiznit -- registration 3-stage stepper.
   Scoped entirely to #inscription's stepper header + stage panels. Does
   not alter any existing selector's rules -- purely additive.
   ========================================================================= */

#amdt-congres .amdt-reg-stepper-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto 34px;
  flex-wrap: wrap;
}

#amdt-congres .amdt-reg-step {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 34, 71, .16);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font: inherit;
  cursor: pointer;
  color: rgba(13, 34, 71, .55);
  transition: border-color .25s var(--ease, ease), color .25s var(--ease, ease), background .25s var(--ease, ease);
}

#amdt-congres .amdt-reg-step:disabled {
  cursor: default;
  opacity: .6;
}

#amdt-congres .amdt-reg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(13, 34, 71, .08);
  color: var(--navy, #172554);
  font-size: 12px;
  font-weight: 700;
}

#amdt-congres .amdt-reg-step-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

#amdt-congres .amdt-reg-step.is-active {
  border-color: var(--blue, #2563EB);
  color: var(--navy, #172554);
  background: rgba(15, 79, 138, .06);
}

#amdt-congres .amdt-reg-step.is-active .amdt-reg-step-num {
  background: var(--blue, #2563EB);
  color: #fff;
}

#amdt-congres .amdt-reg-step.is-done .amdt-reg-step-num {
  background: var(--navy, #172554);
  color: #fff;
}

#amdt-congres .amdt-reg-step.is-done {
  color: var(--navy, #172554);
}

#amdt-congres .amdt-reg-step-sep {
  width: 24px;
  height: 1px;
  background: rgba(13, 34, 71, .16);
}

#amdt-congres .amdt-reg-stage {
  animation: amdtRegStageIn .3s var(--ease, ease) both;
}

@keyframes amdtRegStageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

#amdt-congres .amdt-reg-stage-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

#amdt-congres .amdt-reg-stage-nav--back-only {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 22px;
}

#amdt-congres #amdt-stage-1 .amdt-reg-stage-nav {
  justify-content: flex-end;
}

#amdt-congres .amdt-reg-hidden-cta {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #amdt-congres .amdt-reg-stage {
    animation: none;
  }
  #amdt-congres .amdt-reg-step {
    transition: none;
  }
}

@media (max-width: 560px) {
  #amdt-congres .amdt-reg-stepper-header {
    gap: 6px;
  }
  #amdt-congres .amdt-reg-step-label {
    display: none;
  }
  #amdt-congres .amdt-reg-step {
    padding: 6px;
  }
  #amdt-congres .amdt-reg-stage-nav {
    flex-direction: column-reverse;
  }
  #amdt-congres .amdt-reg-stage-nav .btn {
    width: 100%;
    text-align: center;
  }
}
