/* Shared flow stepper styles (used across steps 1–3) */
:root {
  --stepper-active: linear-gradient(135deg, #22d3ee, #0ea5e9);
  --stepper-active-border: rgba(34, 211, 238, 0.4);
  --stepper-active-shadow: 0 0 8px rgba(34, 211, 238, 0.25), inset 0 0 2px rgba(255, 255, 255, 0.12);
  --stepper-visited-bg: rgba(14, 165, 233, 0.12);
  --stepper-visited-border: rgba(14, 165, 233, 0.2);
  --stepper-visited-text: #38bdf8;
  --stepper-locked-bg: rgba(148, 163, 184, 0.1);
  --stepper-locked-border: rgba(148, 163, 184, 0.18);
  --stepper-locked-text: #94a3b8;
  --stepper-line-inactive: rgba(148, 163, 184, 0.35);
  --stepper-line-active: rgba(14, 165, 233, 0.9);
  --stepper-glow: rgba(56, 189, 248, 0.55);
}

.flow-stepper-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 0;
  align-content: auto;
  align-items: right;
  gap: 12px;
  width: 100%;
  max-width: 582px;
  margin-top: -35px;
  padding: 0 20px;
  box-sizing: border-box;
}

.flow-stepper {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: -10px;
  margin-bottom: 20px;
}

.flow-stepper-inner {
  /* Aligns the start of the track with the text inside the left card (card padding = 22px) */
  padding-left: 0px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-stepper-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin: 0;
  justify-self: end;
}

.flow-stepper-track {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
}

.flow-stepper-item {
  position: relative;
  display: flex;
  align-items: center;
}

.flow-stepper-button {
  border: none;
  padding: 0;
  background: transparent;
  cursor: default;
  transition: transform 140ms ease, box-shadow 200ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.flow-stepper-button .deck-slide-step {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--stepper-locked-border);
  background: var(--stepper-locked-bg);
  color: var(--stepper-locked-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-shadow: none;
}

.flow-stepper-item.is-active .deck-slide-step {
  background: var(--stepper-active);
  border: 1px solid var(--stepper-active-border);
  color: #0b1220;
  box-shadow: var(--stepper-active-shadow), 0 0 10px rgba(56, 189, 248, 0.25);
}

.flow-stepper-item.is-visited:not(.is-active) .deck-slide-step {
  background: var(--stepper-visited-bg);
  border: 1px solid var(--stepper-visited-border);
  color: var(--stepper-visited-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.55), inset 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3px);
}

.flow-stepper-item.is-clickable .flow-stepper-button { cursor: pointer; }
.flow-stepper-item.is-clickable .flow-stepper-button:hover { transform: translateY(-0.25px); }

.flow-stepper-connector {
  position: relative;
  width: 84px;
  height: 1px;
  background: var(--stepper-line-inactive);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.flow-stepper-connector-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--stepper-line-active);
  box-shadow: 0 0 6px var(--stepper-glow), 0 0 12px rgba(56, 189, 248, 0.25);
  transition: width 320ms ease-in-out, box-shadow 220ms ease-in-out, opacity 220ms ease-in-out;
  opacity: 0;
}

.flow-stepper-connector.is-complete .flow-stepper-connector-fill {
  width: 100%;
  opacity: 1;
}

.flow-stepper-tooltip {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #0b1220;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.35);
  color: #cbd5e1;
  font-size: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2;
}

.flow-stepper-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

.flow-stepper-item.is-locked.has-tooltip:hover .flow-stepper-tooltip {
  opacity: 1;
}

@media (max-width: 760px) {
   .flow-stepper-shell {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .flow-stepper { margin-top: 16px; }
  .flow-stepper-inner { padding-left: 18px; gap: 10px; }
  .flow-stepper-connector { width: 64px; }

  .flow-stepper-cta {
    align-items: flex-start;
    text-align: left;
    justify-self: start;
    margin-left: 18px;
  }
}


.step-3 .flow-stepper-cta {
  justify-self: end;
  margin-top: -15px;
  display: inline;
}