/* Start here and the Onboard a customer wizard (RXCON-57). Loaded after guidance.css. Mobile first: a single column, 44px controls and nothing that scrolls sideways at 375px.
   Every state has a word as well as a colour. */

/* ---- Start here ---- */
.sh-card { box-sizing: border-box; display: grid; gap: 12px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--chip-on-line); border-radius: 8px; background: var(--tint); }
.sh-card h2 { margin: 0; font-size: 20px; color: var(--navy); }
.sh-purpose { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.45; }
.sh-next { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.sh-next-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.sh-next-title { margin: 0; color: var(--navy); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.sh-next-text { margin: 0; color: var(--ink); }
.sh-next .actions { margin-top: 8px; }
.sh-next .actions button { min-height: 44px; max-width: 100%; white-space: normal; }
.sh-shortcuts h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.sh-shortcut-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sh-shortcut-list li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.sh-shortcut { display: inline-flex; align-items: center; min-height: 24px; color: var(--blue); font-weight: 700; }
.sh-shortcut:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sh-shortcut-note { color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (min-width: 720px) { .sh-shortcut-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sh-shortcut-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Wizard stepper: a vertical list on a phone, one row from 900px ---- */
.ob-stepper { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: none; }
.ob-stepper-item { min-width: 0; }
.ob-stepper-button { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; text-align: left; }
.ob-stepper-number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 14px; }
.ob-stepper-title { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.ob-stepper-state { flex: none; font-size: 13px; color: var(--muted); }
.ob-stepper-item[data-state="current"] .ob-stepper-button { border-color: var(--navy); background: var(--tint); box-shadow: inset 4px 0 0 var(--navy); }
.ob-stepper-item[data-state="current"] .ob-stepper-state { color: var(--navy); font-weight: 700; }
.ob-stepper-item[data-state="done"] .ob-stepper-number { background: var(--navy); color: var(--white); }
.ob-stepper-button:disabled { opacity: 0.6; }
@media (min-width: 900px) { .ob-stepper { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ob-stepper-button { flex-wrap: wrap; align-content: flex-start; } .ob-stepper-state { flex-basis: 100%; padding-left: 36px; } }

/* ---- Step card ---- */
.ob-step { box-sizing: border-box; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.ob-step h2 { margin: 0; font-size: 20px; color: var(--navy); }
.ob-step h2:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ob-does { margin: 0; font-weight: 600; color: var(--ink); }
.ob-why { margin: 0; color: var(--muted); }
.ob-body { display: grid; gap: 12px; min-width: 0; }
.ob-body .form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ob-body input[type="text"], .ob-body input[type="email"], .ob-body input[type="search"], .ob-body input[type="password"], .ob-body input:not([type]) { box-sizing: border-box; width: 100%; min-height: 44px; }
.ob-kinds button { min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }
.ob-count { margin: 0; font-weight: 700; color: var(--navy); }
.ob-later { margin: 0; }
.ob-invite-warning { padding: 10px 12px; border: 1px solid var(--chip-on-line); border-radius: 8px; background: var(--tint); }
.ob-invite-warning[hidden] { display: none; }
.ob-invite-warning p { margin: 0 0 8px; }
.ob-groups { margin: 0; padding: 0; border: 0; }
.ob-groups legend { padding: 0; font-weight: 700; }

/* ---- Source tenant choice ---- */
.ob-sources { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ob-legend { display: flex; align-items: center; gap: 4px; padding: 0; font-weight: 700; color: var(--navy); }
.ob-source { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ob-source input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; }
.ob-source-label { display: block; min-width: 0; min-height: 0; margin: 0; padding: 0; line-height: 1.4; overflow-wrap: anywhere; }
.ob-source .hint { grid-column: 2; margin: 0; }
.ob-badge { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--tint); border: 1px solid var(--chip-on-line); color: var(--navy); font-size: 12px; font-weight: 700; }

/* ---- Back, Next, Save and finish later ---- */
.ob-footer { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.ob-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-nav button { min-height: 44px; max-width: 100%; white-space: normal; }
.ob-resume { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ob-nav button { flex: 1 1 100%; } }

/* The securing panel inside the wizard has its own heading structure; keep it flush with the step card. */
.ob-step .tc-finish { margin: 0; padding: 0; border: 0; box-shadow: none; }

/* ---- What happens next, preview of a locked step, remaining action ---- */
.ob-stepper-item[data-locked="true"] .ob-stepper-button { opacity: 0.75; border-style: dashed; }
.ob-remaining { margin: 8px 0; }
/* Inline validation (ONB-02): required labels say so in words, an error sits under its field in text as well as the red border. */
.ob-required .field-label-row label::after { content: " (required)"; font-weight: 400; color: var(--muted); }
.ob-error-slot:empty { display: none; }
.ob-body .field-error { margin: 6px 0 0; color: var(--bad); font-weight: 600; font-size: 14px; }
