/* =============================================================================
   pso-wizard.css  —  Public Self-service Onboarding (redesign)
   Single source of visual truth for signup + verify + every wizard step.

   WHITE-LABEL RULE: never hardcode brand colors. Every brand-driven value
   reads a CSS custom property injected by OnboardingThemeStyles.razor, with a
   BrickellPay fallback baked into the var() call. If the affiliate theme is
   missing a token, the fallback keeps the Brickell look — nothing breaks.

   Semantic colors (success/error/amber/neutral grays) stay hardcoded on
   purpose — they are meaning, not brand.
   ========================================================================== */

/* ---- Semantic (non-brand) constants ------------------------------------- */
:root {
  --pso-success:  #2db872;
  --pso-error:    #e84a4a;
  --pso-amber:    #ffd54f;
  --pso-ink-3:    #5b6171;   /* neutral gray — muted text on light UI      */
  --pso-ink-4:    #8a90a0;   /* neutral gray — hints                       */

  /* Convenience blends derived from the affiliate primary. */
  --pso-primary-tint-05: color-mix(in srgb, var(--bp-onb-primary, #F26A21)  5%, transparent);
  --pso-primary-tint-12: color-mix(in srgb, var(--bp-onb-primary, #F26A21) 12%, transparent);
  --pso-primary-tint-18: color-mix(in srgb, var(--bp-onb-primary, #F26A21) 18%, transparent);
}

/* =============================================================================
   LAYOUT
   ========================================================================== */
.pso-wizard-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bp-onb-background, #f5f6f8);
  color: var(--bp-onb-text-primary, #101b2d);
  font-family: var(--bp-onb-font-family, 'Inter', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.pso-wizard-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
/* Signup uses a narrower shell only if you keep it single-column; the
   two-column hero layout uses the full .pso-wizard-main width. */
.pso-wizard-main--narrow { max-width: 640px; }

/* ---- Brand strip -------------------------------------------------------- */
.pso-brand-strip {
  height: 72px;
  background: var(--bp-onb-strip-background, var(--bp-onb-primary, #F26A21));
  display: flex;
  align-items: center;
}
.pso-brand-strip-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pso-brand-strip-logo {
  height: 40px;
  width: auto;
  content: var(--bp-onb-strip-logo, url("/images/BrickellPay_Logo_With_Label.png"));
}

/* =============================================================================
   TYPOGRAPHY
   ========================================================================== */
.pso-h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bp-onb-text-primary, #101b2d);
  font-family: var(--bp-onb-font-family, 'Inter', sans-serif);
}
/* Each wizard step heading carries tabindex="-1" and is focused programmatically after
   navigation (screen-reader context announcement). That focus painted the browser's default
   outline as a black box around the title for sighted users. It is focusable only via script
   (never via keyboard tab), so suppressing its focus ring is safe and removes the box. */
.pso-h1:focus,
.pso-h1:focus-visible { outline: none; }
.pso-h2 {
  margin: 26px 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bp-onb-text-primary, #101b2d);
  font-family: var(--bp-onb-font-family, 'Inter', sans-serif);
}
.pso-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bp-onb-text-muted, var(--pso-ink-3));
}
/* Inline links inside the signup form (e.g. "Enter your verification code") follow the theme
   primary. Without this they inherit the app-global orange anchor color, leaking Brickell orange
   onto a white-label signup whose brand color is different. Scoped to .bp-onb-main so it wins over
   the global `a` rule by specificity (no !important needed). */
.bp-onb-main a { color: var(--bp-onb-primary, #F26A21); }
.bp-onb-main a:hover { color: var(--bp-onb-primary-dark, var(--bp-onb-primary, #F26A21)); }
.pso-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-onb-primary, #F26A21);
}

/* =============================================================================
   CARD / SURFACE
   ========================================================================== */
.pso-card {
  background: var(--bp-onb-surface, #ffffff);
  border: 1px solid var(--bp-onb-hairline, #e8eaf0);
  border-radius: calc(var(--bp-onb-border-radius, 12px) + 6px);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(10, 20, 40, 0.06),
              0 12px 32px -18px rgba(10, 20, 40, 0.25);
}

/* Two-column signup: form card + value/trust panel. */
.pso-split {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch;
}
.pso-split > .pso-split-form  { flex: 1 1 380px; min-width: 320px; }
.pso-split > .pso-split-panel { flex: 1 1 380px; min-width: 300px; display: flex; }

.pso-panel {
  flex: 1;
  background: var(--bp-onb-panel-background,
              linear-gradient(165deg, #101b2d, #1c2c48));
  color: var(--bp-onb-panel-text, #ffffff);
  border: 1px solid var(--bp-onb-panel-hairline, rgba(255,255,255,0.14));
  border-radius: calc(var(--bp-onb-border-radius, 12px) + 6px);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pso-panel-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-onb-panel-accent, var(--bp-onb-primary, #F26A21));
}
.pso-panel-headline {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bp-onb-panel-text, #ffffff);
  font-family: var(--bp-onb-font-family, 'Inter', sans-serif);
}
.pso-benefits { display: flex; flex-direction: column; gap: 16px; }
.pso-benefit { display: flex; gap: 12px; align-items: flex-start; }
.pso-benefit-check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  margin-top: 1px;
  background: var(--bp-onb-panel-accent, var(--bp-onb-primary, #F26A21));
  color: var(--bp-onb-on-primary, #ffffff);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.pso-benefit-title { font-weight: 600; font-size: 15px; color: var(--bp-onb-panel-text, #fff); }
.pso-benefit-desc  { font-size: 13px; line-height: 1.5; color: var(--bp-onb-panel-muted, rgba(255,255,255,0.68)); }

.pso-seals {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bp-onb-panel-hairline, rgba(255,255,255,0.14));
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pso-seal {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bp-onb-seal-background, rgba(255,255,255,0.1));
  color: var(--bp-onb-seal-text, rgba(255,255,255,0.85));
}

/* =============================================================================
   FORMS
   ========================================================================== */
.pso-field { margin-bottom: 16px; }
/* .pso-label is the real class the Blazor pages put on <label>; the bare
   `.pso-field label` selector keeps plain-HTML labels working too. */
.pso-field label,
.pso-label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px;
  color: var(--bp-onb-text-primary, #101b2d);
}
/* .pso-input is the real class on Blazor <InputText>/<input>; the bare element
   selectors cover the static-SSR wizard forms that don't add it. */
.pso-field input,
.pso-field select,
.pso-field textarea,
.pso-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--bp-onb-text-primary, #101b2d);
  background: var(--bp-onb-field-background, var(--bp-onb-surface, #ffffff));
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
  border-radius: var(--bp-onb-border-radius, 12px);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pso-field input:focus,
.pso-field select:focus,
.pso-field textarea:focus,
.pso-input:focus {
  border-color: var(--bp-onb-primary, #F26A21);
  box-shadow: 0 0 0 3px var(--pso-primary-tint-18);
}
.pso-field input::placeholder,
.pso-field textarea::placeholder,
.pso-input::placeholder {
  color: color-mix(in srgb, var(--bp-onb-text-muted, var(--pso-ink-4)) 70%, transparent);
}
.pso-field-hint {
  margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.5;
  color: var(--bp-onb-text-muted, var(--pso-ink-3));
}
/* .pso-validation-error is emitted by <ValidationMessage>; .pso-field-error is
   the static-form equivalent. Both render the same. */
.pso-field-error,
.pso-validation-error {
  display: block;
  margin: 6px 0 0;
  font-size: 12.5px; font-weight: 500;
  color: var(--pso-error);
}
/* Error state on a field wrapper highlights its control. */
.pso-field.error input,
.pso-field.error select,
.pso-field.error textarea {
  border-color: var(--pso-error);
  box-shadow: 0 0 0 3px rgba(232, 74, 74, 0.15);
}
/* Task 3 (onboarding-wizard hardening): client validator (pso-wizard-validate.js) toggles
   ".invalid" on the .pso-field wrapper — distinct from the ".error" state above (server-driven
   banner flow) so the two don't collide. White-label: reads var(--pso-error), never a hardcoded hex. */
.pso-field.invalid .pso-input {
  border-color: var(--pso-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pso-error) 15%, transparent);
}
.pso-optional {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--bp-onb-text-muted, var(--pso-ink-4));
}

/* Task 5 (onboarding-wizard hardening): theme native select/date/file controls
   so they match the .pso-input look instead of showing raw browser chrome. */
/* Replace the native OS dropdown arrow with a themed chevron. */
select.pso-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6171' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
/* Align the native date-picker glyph vertically with the themed text inputs. */
input[type=date].pso-input { line-height: 1.2; }
/* Restyle the native file-picker button (optional-doc uploads) to match the theme. */
input[type=file].pso-input { padding: 10px 12px; }
input[type=file].pso-input::file-selector-button {
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
  background: var(--pso-primary-tint-05); color: var(--bp-onb-primary, #F26A21);
  border-radius: 8px; padding: 6px 12px; margin-right: 12px; cursor: pointer; font-weight: 600;
}

/* Field row (side-by-side inputs). */
.pso-field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pso-field-row > .pso-field { flex: 1 1 180px; }

/* Round 2 (T5b, bug-fix 2026-07-15): the "has a website" checkbox and the URL input now live
   side-by-side in a two-column .pso-field-row (see Business.razor). The URL input renders as
   `disabled` until the checkbox is checked (JS toggles the attribute in pso-wizard-validate.js).
   The translucent :disabled state below signals inactivity without hiding the input, so the row
   layout stays intact both ways. */
.pso-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bp-onb-input-bg-disabled, #f5f5f5);
}

/* OTP code inputs (verify). */
.pso-otp { display: flex; gap: 10px; margin-bottom: 6px; }
.pso-otp input {
  flex: 1; min-width: 0;
  text-align: center;
  padding: 14px 0;
  font-size: 22px; font-weight: 700; font-family: inherit;
  color: var(--bp-onb-text-primary, #101b2d);
  background: var(--bp-onb-field-background, var(--bp-onb-surface, #fff));
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
  border-radius: var(--bp-onb-border-radius, 12px);
  outline: none;
}
.pso-otp input:focus {
  border-color: var(--bp-onb-primary, #F26A21);
  box-shadow: 0 0 0 3px var(--pso-primary-tint-18);
}

/* =============================================================================
   BUTTONS / ACTIONS
   ========================================================================== */
.pso-btn-primary {
  width: 100%;
  padding: 14px 22px;
  border: none;
  border-radius: var(--bp-onb-button-radius, 12px);
  background: var(--bp-onb-primary, #F26A21);
  color: var(--bp-onb-on-primary, #ffffff);
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.pso-btn-primary:hover  { background: var(--bp-onb-primary-dark, #d9531a); transform: translateY(-1px); }
.pso-btn-primary:active { transform: translateY(0); }

.pso-btn-secondary {
  padding: 12px 20px;
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
  border-radius: var(--bp-onb-button-radius, 12px);
  background: transparent;
  color: var(--bp-onb-text-primary, #101b2d);
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pso-btn-secondary:hover {
  border-color: var(--bp-onb-primary, #F26A21);
  color: var(--bp-onb-primary, #F26A21);
}

.pso-step-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 28px;
}

/* =============================================================================
   PROGRESS  (named stepper + fill bar)
   ========================================================================== */
.pso-progress { margin-bottom: 28px; }
.pso-stepper { display: flex; align-items: center; margin-bottom: 8px; }
.pso-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.pso-step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: inherit;
  background: var(--bp-onb-surface, #fff);
  color: var(--bp-onb-text-muted, var(--pso-ink-4));
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
}
.pso-step.current .pso-step-dot,
.pso-step.done    .pso-step-dot {
  background: var(--bp-onb-primary, #F26A21);
  color: var(--bp-onb-on-primary, #fff);
  border-color: var(--bp-onb-primary, #F26A21);
}
.pso-step.current .pso-step-dot { box-shadow: 0 0 0 4px var(--pso-primary-tint-18); }
.pso-step-label {
  font-size: 10.5px; font-weight: 500; white-space: nowrap;
  color: var(--bp-onb-text-muted, var(--pso-ink-4));
}
.pso-step.current .pso-step-label {
  font-weight: 700;
  color: var(--bp-onb-text-primary, #101b2d);
}

.pso-progress-bar {
  height: 4px;
  background: var(--bp-onb-hairline, #e8eaf0);
  border-radius: 999px;
  overflow: hidden;
}
.pso-progress-fill {
  height: 100%;
  background: var(--bp-onb-primary, #F26A21);
  border-radius: 999px;
  transition: width .35s ease;
}
.pso-progress-label {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--bp-onb-text-muted, var(--pso-ink-3));
}

/* On narrow screens, hide the step names, keep the numbered dots. */
@media (max-width: 560px) {
  .pso-step-label { display: none; }
}

/* =============================================================================
   SIGNUP PAGE  (bp-onb-* classes emitted by Signup.razor)
   The signup page renders a themed shell whose layout is chosen by the affiliate
   theme (_theme.Layout.HeroLayout): "centered", "split-image-right",
   "split-image-left". These classes style that shell. The value/trust panel from
   the redesign is the "split" layout — see the .pso-panel block above; wire the
   panel markup inside .bp-onb-page as the second column.
   ========================================================================== */
.pso-form { margin-top: 26px; }

.bp-onb-page {
  display: grid;
  gap: 32px 40px;
  align-items: start;
}
/* Centered (default / level 1-2): single narrow column. */
.bp-onb-layout-centered {
  max-width: 520px;
  margin: 0 auto;
}
/* Split (level 3 landings): form on one side, hero/value panel on the other. */
.bp-onb-layout-split-image-right,
.bp-onb-layout-split-image-left {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: stretch;
}
.bp-onb-layout-split-image-left .bp-onb-hero-image,
.bp-onb-layout-split-image-left .pso-panel { order: -1; }

.bp-onb-header { grid-column: 1 / -1; }
.bp-onb-headline {                    /* usually also carries .pso-h1 */
  margin: 0 0 8px;
}
.bp-onb-subheadline { margin: 0; }

.bp-onb-main {
  background: var(--bp-onb-surface, #ffffff);
  border: 1px solid var(--bp-onb-hairline, #e8eaf0);
  border-radius: calc(var(--bp-onb-border-radius, 12px) + 6px);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(10, 20, 40, 0.06),
              0 12px 32px -18px rgba(10, 20, 40, 0.25);
}

.bp-onb-hero-image {
  border-radius: calc(var(--bp-onb-border-radius, 12px) + 6px);
  overflow: hidden;
}
.bp-onb-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-onb-terms-ack {
  margin: 4px 0 0;
  font-size: 12.5px; line-height: 1.5;
  color: var(--bp-onb-text-muted, var(--pso-ink-3));
}

.bp-onb-trust-bar {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding-top: 8px;
  opacity: 0.7;
}
.bp-onb-trust-bar img { height: 26px; width: auto; }

.bp-onb-footer {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bp-onb-hairline, #e8eaf0);
  font-size: 13px;
}
.bp-onb-footer a { color: var(--bp-onb-text-muted, var(--pso-ink-3)); text-decoration: none; }
.bp-onb-footer a:hover { color: var(--bp-onb-primary, #F26A21); }
.bp-onb-credit { margin-left: auto; color: var(--bp-onb-text-muted, var(--pso-ink-4)); }

@media (max-width: 820px) {
  .bp-onb-layout-split-image-right,
  .bp-onb-layout-split-image-left { grid-template-columns: 1fr; }
  .bp-onb-layout-split-image-left .bp-onb-hero-image,
  .bp-onb-layout-split-image-left .pso-panel { order: 0; }
}

/* =============================================================================
   CAPABILITIES (Step 1) + CONSENTS (Step 6)
   ========================================================================== */
.pso-capabilities,
.pso-consents { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.pso-capability {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--bp-onb-field-border, #d7dbe3);
  border-radius: var(--bp-onb-border-radius, 12px);
  background: var(--bp-onb-field-background, var(--bp-onb-surface, #fff));
  cursor: pointer;
  transition: border-color .15s ease;
}
.pso-capability:hover { border-color: var(--bp-onb-primary, #F26A21); }
.pso-capability input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex: none;
  /* No hardcoded orange fallback so the check tick never leaks Brickell orange onto
     a white-labeled affiliate landing that doesn't set --bp-onb-primary. */
  accent-color: var(--bp-onb-primary, currentColor);
}
.pso-capability strong { color: var(--bp-onb-text-primary, #101b2d); font-size: 15px; }
.pso-capability small  { color: var(--bp-onb-text-muted, var(--pso-ink-3)); font-size: 13px; line-height: 1.5; }

/* Round 2 (T5b): lightweight inline checkbox for a lone optional field (e.g. "has a website"),
   distinct from .pso-capability which is the Step 1 multi-option capability card.
   Explicit flex-row + fixed checkbox dimensions guard against per-affiliate landing CSS that
   might otherwise force checkboxes to display:block or grow them full-width. */
.pso-checkbox-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--bp-onb-text-primary, #101b2d);
}
.pso-checkbox-inline input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  /* Round-2 polish: no hardcoded fallback color — accent-color falls through to
     currentColor (the label text color, which IS theme-hydrated via --bp-onb-text-primary)
     when a landing theme doesn't define --bp-onb-primary, so the check tick never leaks
     Brickell orange onto a white-labeled affiliate. */
  accent-color: var(--bp-onb-primary, currentColor);
}
/* Round 2 (T5b, 2026-07-16): reverse variant — checkbox appears AFTER the text label.
   Slightly larger gap so the box doesn't crowd the sentence. Uses flex-direction: row
   (default order) but swaps the two children's order via source-order in the razor. */
.pso-checkbox-inline--reverse {
  gap: 14px;
  justify-content: flex-start;
}

/* =============================================================================
   ID UPLOAD (Step 4)
   ========================================================================== */
.pso-id-slots { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.pso-id-slot {
  flex: 1 1 200px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  padding: 28px 18px;
  border: 2px dashed color-mix(in srgb, var(--bp-onb-primary, #3680ee) 45%, transparent);
  border-radius: var(--bp-onb-border-radius, 12px);
  background: var(--pso-primary-tint-05);
  cursor: pointer;
  position: relative;
}
.pso-id-slot-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--pso-primary-tint-12);
  color: var(--bp-onb-primary, #3680ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.pso-id-slot.uploaded,
.pso-id-slot.selected {
  border-style: solid;
  border-color: var(--pso-success);
  background: color-mix(in srgb, var(--pso-success) 6%, transparent);
}
.pso-id-slot-status { display: block; margin-top: 8px; font-size: 13px; color: var(--pso-success); word-break: break-word; }
.pso-id-slot-status img,
.pso-file-status img { max-height: 48px; border-radius: 6px; vertical-align: middle; margin-right: 8px; }
.pso-file-status { display: block; margin-top: 6px; font-size: 13px; color: var(--pso-success); word-break: break-word; }
.pso-id-slot-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 40, 0.45);
  color: #fff;
  border-radius: inherit;
  font-size: 14px; font-weight: 600;
}
/* The interactive <InputFile> inside a required-ID slot renders a visible <input type=file>;
   overlay it transparently across the whole card so a tap anywhere opens the picker (matches
   the mockup's tap-to-upload card). Same technique as .pso-doc-drop above. */
.pso-id-slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* =============================================================================
   REVIEW / SUMMARY (Step 6)
   ========================================================================== */
.pso-summary {
  margin-top: 20px;
  border: 1px solid var(--bp-onb-hairline, #e8eaf0);
  border-radius: var(--bp-onb-border-radius, 12px);
  overflow: hidden;
}
.pso-summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 16px; font-size: 14px;
  border-bottom: 1px solid var(--bp-onb-hairline, #e8eaf0);
}
.pso-summary-row:last-child { border-bottom: none; }
.pso-summary-row .k { color: var(--bp-onb-text-muted, var(--pso-ink-3)); }
.pso-summary-row .v { color: var(--bp-onb-text-primary, #101b2d); font-weight: 600; text-align: right; }

/* Ronda 2 (T6): satisfying green checklist for the Confirm summary. */
.pso-summary-row .v.pso-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bp-success-600, #16a34a);
    font-weight: 600;
}
.pso-summary-row .v.pso-done::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bp-success-100, #dcfce7);
    color: var(--bp-success-600, #16a34a);
    font-size: 12px;
    line-height: 1;
}

.pso-eventually-due {
  text-align: left;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--bp-onb-hairline, #e8eaf0);
  border-radius: var(--bp-onb-border-radius, 12px);
  background: var(--pso-primary-tint-05);
}
/* Round 2 (T5b, 2026-07-16): success variant — when the applicant has uploaded every
   optional doc the "still needed" block flips to a positive-affirmation panel with a
   green tint + border so it reads as a completion badge instead of an alert. */
.pso-eventually-due--complete {
  background: var(--bp-success-100, #dcfce7);
  border-color: var(--bp-success-500, #22c55e);
  color: var(--bp-success-800, #166534);
}
.pso-eventually-due--complete .pso-h2 {
  color: var(--bp-success-800, #166534);
}

/* =============================================================================
   FEEDBACK
   ========================================================================== */
.pso-banner-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--bp-onb-border-radius, 12px);
  background: rgba(232, 74, 74, 0.1);
  border: 1px solid rgba(232, 74, 74, 0.35);
  color: var(--pso-error);
  font-size: 14px; font-weight: 500;
}
/* Success / info banners (merged from wizard-hardening: success on document upload,
   info on session/link notices). Styled to match .pso-banner-error's redesign shape. */
.pso-banner-success {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--bp-onb-border-radius, 12px);
  background: color-mix(in srgb, var(--pso-success) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pso-success) 35%, transparent);
  color: #1b5e20;
  font-size: 14px; font-weight: 500;
}
.pso-banner-info {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--bp-onb-border-radius, 12px);
  background: color-mix(in srgb, var(--pso-amber) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--pso-amber) 55%, transparent);
  color: #6b5300;
  font-size: 14px; font-weight: 500;
}

.pso-save-indicator { font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.pso-save-indicator.saving { color: var(--bp-onb-primary, #3680ee); }
.pso-save-indicator.saved  { color: var(--pso-success); }
.pso-save-indicator.error  { color: var(--pso-error); }

/* Success check (Done page). */
.pso-done-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: color-mix(in srgb, var(--bp-success-600, #16a34a) 16%, transparent);
  color: var(--bp-success-600, #16a34a);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 820px) {
  .pso-split { gap: 24px; }
  .pso-split > .pso-split-panel { order: -1; }   /* panel on top on mobile */
  .pso-card, .pso-panel { padding: 24px; }
  .pso-h1 { font-size: 24px; }
}

/* =============================================================================
   Merged from feat/onboarding-legal-pages — net-new rule sets only. Our redesign
   (above) supersedes the branch's legacy pso-* rules; these two blocks add markup
   that the redesign didn't cover: the unified documents step (DocumentChecklist)
   and the long-form legal pages. Both already read --bp-onb-* tokens with fallbacks,
   so they stay white-label-consistent with the rest of this file.
   ============================================================================= */

/* 2026-07-06 unified documents step (DocumentChecklist.razor / IdUpload step) */
.pso-doc-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 18px 0 8px; }
.pso-doc-row { border: 1px solid #e8eaf0; border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; background: white; }
.pso-doc-row-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.pso-doc-name { font-weight: 600; color: var(--bp-onb-primary, #3680ee); }
.pso-doc-row.uploaded .pso-doc-name { color: var(--bp-onb-primary-dark, #c2410c); }
.pso-doc-file { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.pso-doc-check { color: var(--bp-onb-primary-dark, #c2410c); font-weight: 700; }
.pso-doc-drop { margin-top: 12px; border: 2px dashed var(--bp-onb-primary, #3680ee); border-radius: 8px; padding: 18px; text-align: center; position: relative; }
.pso-doc-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pso-doc-nudge { border-radius: 10px; padding: 14px 16px; margin: 16px 0; background: color-mix(in srgb, var(--bp-onb-primary, #f97316) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bp-onb-primary, #f97316) 30%, transparent); display: flex; gap: 10px; font-size: 13px; line-height: 1.45; }
.pso-doc-nudge-icon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--bp-onb-primary, #f97316); color: var(--bp-onb-primary, #f97316); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pso-doc-nudge strong { color: var(--bp-onb-primary, #f97316); }

/* Legal pages (Terms, Privacy, Recurring). Long-form typography rendered
   inside the wizard shell so branded landings preserve --bp-onb-* tokens. */
.pso-legal { max-width: 720px; margin: 0 auto; color: var(--bp-onb-text-primary, #1f2937); font-family: var(--bp-onb-font-family, system-ui, -apple-system, sans-serif); line-height: 1.6; }
.pso-legal .pso-h1 { font-size: 26px; margin: 8px 0 4px; }
.pso-legal .pso-h2 { font-size: 17px; margin: 22px 0 6px; color: var(--bp-onb-text-primary, #1f2937); }
.pso-legal p { font-size: 14px; margin: 8px 0; color: var(--bp-onb-text-primary, #374151); }
.pso-legal ul { padding-left: 22px; margin: 8px 0; }
.pso-legal ul li { font-size: 14px; margin: 4px 0; }
.pso-legal a { color: var(--bp-onb-primary, #f26816); text-decoration: none; }
.pso-legal a:hover { text-decoration: underline; }
.pso-legal-meta { font-size: 12px; color: var(--bp-onb-text-muted, #6b7280); margin-bottom: 16px; }
.pso-legal-draft-banner { background: #fff8e1; border: 1px solid #ffd54f; border-radius: var(--bp-onb-border-radius, 8px); padding: 12px 14px; margin: 12px 0 16px; font-size: 13px; color: #6b5300; }
.pso-legal-back { margin-top: 28px; font-size: 13px; }
.pso-legal-back a { color: var(--bp-onb-primary, #f26816); }

/* Legal-page responsive width only (our redesign owns the general .pso-wizard-main sizing). */
@media (min-width: 768px) {
    .pso-legal { max-width: 720px; }
    .pso-wizard-body:has(.pso-legal) .pso-wizard-main { max-width: 760px; }
}
