/* One visual language for progress in public forms and dialogs.
   Flow scripts own state; this component maps both existing state class names. */
:root {
  --step-gap: 8px;
  --step-line: #d5dccb;
  --step-muted: #747d70;
  --step-ink: #263b32;
  --step-active: #c84704;
  --step-complete: #526b45;
}
@media screen {
  body:not(.admin) .step-indicator:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
    align-items: start;
    gap: var(--step-gap);
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
  }
  body:not(.admin) .step-indicator > .step-indicator__item {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--step-muted);
    background: transparent;
    box-shadow: none;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
  }
  body:not(.admin) .step-indicator > .step-indicator__item::after { content: none; }
  body:not(.admin) .step-indicator > .step-indicator__item:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(-50% - var(--step-gap) + 16px);
    width: calc(100% + var(--step-gap) - 32px);
    height: 1px;
    margin: 0;
    background: var(--step-line);
  }
  body:not(.admin) .step-indicator > .step-indicator__item > .step-indicator__number {
    position: relative;
    z-index: 1;
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--step-line);
    border-radius: 50%;
    color: var(--step-muted);
    background: #fcfbf7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
  }
  body:not(.admin) .step-indicator > .step-indicator__item > .step-indicator__label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  body:not(.admin) .step-indicator .step-indicator__label > strong { color: inherit; font: inherit; }
  body:not(.admin) .step-indicator > .step-indicator__item[aria-current="step"] { color: var(--step-ink); font-weight: 600; }
  body:not(.admin) .step-indicator > .step-indicator__item[aria-current="step"] > .step-indicator__number {
    color: #fff;
    border-color: var(--step-active);
    background: var(--home-cta-gradient, #c84704);
  }
  body:not(.admin) .step-indicator > .step-indicator__item:is(.is-done, .is-complete) { color: var(--step-complete); }
  body:not(.admin) .step-indicator > .step-indicator__item:is(.is-done, .is-complete) > .step-indicator__number {
    color: var(--step-complete);
    border-color: #b7c5ab;
    background: #e8eddf;
    font-size: 0;
  }
  body:not(.admin) .step-indicator > .step-indicator__item:is(.is-done, .is-complete) > .step-indicator__number::after { content: "✓"; font-size: 16px; }
  body:not(.admin) .step-indicator .step-indicator__done-label { display: none; }
  body:not(.admin) .step-indicator > .step-indicator__item:is(.is-done, .is-complete) > .step-indicator__done-label { display: block; }
  /* Reserve space for the dialog's close button and the mobile safe area. */
  body:not(.admin) .inquiry-wizard .step-indicator:not([hidden]) { margin: 0; padding: calc(18px + env(safe-area-inset-top, 0px)) 52px 18px 24px; }
  body:not(.admin) .inquiry-wizard__progress > * { background: var(--step-active); }
  body:not(.admin) .request-flow__meter > * { background: var(--step-active); }
}
@media screen and (max-width: 700px) {
  body:not(.admin) .step-indicator > .step-indicator__item { font-size: 12px; }
}
@media (forced-colors: active) {
  body:not(.admin) .step-indicator > .step-indicator__item > .step-indicator__number { border-color: CanvasText; }
  body:not(.admin) .step-indicator > .step-indicator__item[aria-current="step"] > .step-indicator__number { color: HighlightText; background: Highlight; border-color: Highlight; forced-color-adjust: none; }
}
