/* Steps variant — additions on top of styles.css */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Progress */
.progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 28px;
}

.progress-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.progress-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 50%;
  height: 2px;
  background: var(--border);
}

.progress-item::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  right: 0;
  height: 2px;
  background: var(--border);
}

.progress-item:first-child::before,
.progress-item:last-child::after { display: none; }

.progress-item.is-done::before,
.progress-item.is-done::after,
.progress-item.is-active::before { background: var(--navy); }

.progress-item.is-active::after { background: var(--border); }

.progress-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-item.is-active .progress-dot {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.progress-item.is-done .progress-dot {
  border-color: var(--navy);
  background: #fff;
  color: var(--navy);
}

.progress-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-item.is-active .progress-label { color: var(--navy); }

/* Step panels */
.step-panel[hidden] { display: none; }

.step-heading {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.step-sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Navigation */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.step-nav .submit { width: auto; flex: 1; margin-top: 0; }

.btn-back {
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-back:hover { border-color: var(--navy); background: #f7fafc; }

.btn-back[hidden] { display: none; }

/* Review */
.review {
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.45;
}

.review-row:last-child { border-bottom: 0; }

.review-row dt {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.review-row dd { margin: 0; color: var(--ink); font-weight: 500; }

.review-edit {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-2);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .progress-label { font-size: 9px; }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .btn-back { width: 100%; }
  .review-row { grid-template-columns: 1fr; gap: 4px; }
}
