/* Step bar (origination) — progress track + status pill */
.step-bar-root {
  display: block;
}

.module {
  text-align: center;
}

.maxw {
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: 10px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 60%;
  max-width: min(360px, 100%);
  margin: 0 auto 10px;
}

.stepper-segment {
  flex: 1;
  min-width: 36px;
  height: 6px;
  border-radius: 999px;
  box-sizing: border-box;
}

.stepper-segment--pending {
  background: #eef1f4;
}

.stepper-segment--done {
  background: #eef1f4;
}

.stepper-segment--active {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 14px;
  padding: 4px;
  background: #dcf5e6;
}

.stepper-segment__inner {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--meadow);
  animation: step-bar-active-pulse 1.8s ease-in-out infinite;
}

@keyframes step-bar-active-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--meadow);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(65, 190, 77, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(65, 190, 77, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stepper-segment__inner {
    animation: none;
  }
}

.step-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0px 10px;
  border-radius: 999px;
  background: #dcf5e6;
  text-align: left;
}

.step-bar-status__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--forest);
}

.step-bar-status__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 6.5em;
  min-width: 0;
  font-size: 1px;
}

.step-bar-status__step {
  font-size: 0.7rem !important;
  font-weight: 500;
  line-height: 1.3;
  color: var(--forest);
  white-space: nowrap;
  font-family: var(--default-font, "Manrope", sans-serif);
}

.step-bar-status__title {
  margin: 0;
  font-size: 0.7rem !important;
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest);
  text-align: left;
  font-family: var(--default-font, "Manrope", sans-serif);
}

/* Widescreen: larger step label + more breathing room in the pill (step 1 “Preliminärt beviljad”, etc.) */
@media (min-width: 1024px) {
  .step-bar-status {
    padding: 10px 16px;
  }

  .step-bar-status__step,
  .step-bar-status__title {
    font-size: 0.875rem !important;
    line-height: 1.35;
  }
}

/* Legacy class names kept for any external references */
.eyebrow {
  font-size: 13px;
  line-height: 1;
  color: #3b3f45;
}

.title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 10px;
}
