/* ==========================================================
   VCX Recovery Pilot  --  vcx-recovery-pilot.css
   Scoped to body[data-vcx-page="vcx-recovery-pilot"]
   ========================================================== */

body[data-vcx-page="vcx-recovery-pilot"] {
  background: var(--vcx-bg-canvas, #F4F7F6);
  color: var(--vcx-ink-body, #2E4F46);
}

/* --- Wizard container ------------------------------------ */
.rp-wizard {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--vcx-space-lg, 24px);
}

/* --- Step indicators ------------------------------------- */
.rp-steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--vcx-space-xl, 32px);
}

.rp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.rp-step .rp-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vcx-bg-muted, #E5EEEC);
  color: var(--vcx-ink-muted, #8896A4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.rp-step .rp-step-label {
  margin-top: var(--vcx-space-xs, 6px);
  font-size: 12px;
  color: var(--vcx-ink-muted, #8896A4);
  text-align: center;
}

/* --- Active step ----------------------------------------- */
.rp-step.is-active .rp-step-circle {
  background: var(--vcx-brand-primary, #2D8A82);
  color: #FFFFFF;
}

.rp-step.is-active .rp-step-label {
  color: var(--vcx-ink-body, #2E4F46);
  font-weight: 600;
}

/* --- Complete step --------------------------------------- */
.rp-step.is-complete .rp-step-circle {
  background: var(--vcx-status-success, #00D97E);
  color: #FFFFFF;
}

.rp-step.is-complete .rp-step-circle::after {
  content: "\2713";
  font-size: 16px;
}

.rp-step.is-complete .rp-step-label {
  color: var(--vcx-ink-body, #2E4F46);
}

/* --- Connecting line ------------------------------------- */
.rp-step-line {
  position: absolute;
  top: 16px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 2px;
  background: var(--vcx-border-light, #DDE4E3);
  z-index: 0;
}

.rp-step:first-child .rp-step-line {
  display: none;
}

.rp-step.is-complete .rp-step-line,
.rp-step.is-active .rp-step-line {
  background: var(--vcx-brand-primary, #2D8A82);
}

/* --- Form steps ------------------------------------------ */
.rp-form-step {
  display: none;
}

.rp-form-step.is-visible {
  display: block;
}

/* --- Field wrapper --------------------------------------- */
.rp-field {
  margin-bottom: var(--vcx-space-md, 16px);
}

.rp-field label {
  display: block;
  margin-bottom: var(--vcx-space-xs, 6px);
  font-size: 14px;
  font-weight: 600;
  color: var(--vcx-ink-heading, #1A2F2A);
}

.rp-field input,
.rp-field select,
.rp-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--vcx-border-light, #DDE4E3);
  border-radius: var(--vcx-radius-sm, 4px);
  font-size: 14px;
  background: var(--vcx-bg-surface, #FFFFFF);
  color: var(--vcx-ink-body, #2E4F46);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.rp-field input:focus,
.rp-field select:focus,
.rp-field textarea:focus {
  outline: none;
  border-color: var(--vcx-brand-primary, #2D8A82);
}

/* --- Navigation row -------------------------------------- */
.rp-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--vcx-space-lg, 24px);
  gap: var(--vcx-space-md, 16px);
}

.rp-nav button {
  padding: 10px 24px;
  border-radius: var(--vcx-radius-sm, 4px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--vcx-border-light, #DDE4E3);
  background: var(--vcx-bg-surface, #FFFFFF);
  color: var(--vcx-ink-body, #2E4F46);
  transition: background 0.15s ease;
}

.rp-nav button:hover {
  background: var(--vcx-bg-muted, #E5EEEC);
}

.rp-nav button.rp-btn-primary {
  background: var(--vcx-brand-primary, #2D8A82);
  color: #FFFFFF;
  border-color: var(--vcx-brand-primary, #2D8A82);
}

.rp-nav button.rp-btn-primary:hover {
  opacity: 0.9;
}

/* --- Results panel --------------------------------------- */
.rp-results {
  background: var(--vcx-bg-surface, #FFFFFF);
  border: 1px solid var(--vcx-border-light, #DDE4E3);
  border-radius: var(--vcx-radius-md, 8px);
  padding: var(--vcx-space-lg, 24px);
  margin-top: var(--vcx-space-lg, 24px);
}

.rp-results .rp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--vcx-space-md, 16px);
}

/* --- KPI card -------------------------------------------- */
.rp-kpi {
  text-align: center;
  padding: var(--vcx-space-md, 16px);
  background: var(--vcx-bg-muted, #E5EEEC);
  border-radius: var(--vcx-radius-sm, 4px);
}

.rp-kpi .rp-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vcx-ink-heading, #1A2F2A);
}

.rp-kpi .rp-kpi-label {
  font-size: 12px;
  color: var(--vcx-ink-muted, #8896A4);
  margin-top: var(--vcx-space-xs, 6px);
}
