/* B2B partner onboarding wizard — teal/sand, scoped to .b2b-reg */
.login-page.b2b-reg-page {
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(0, 168, 180, 0.18), transparent 55%),
    radial-gradient(900px 420px at 110% 10%, rgba(212, 165, 116, 0.22), transparent 50%),
    var(--bg);
}
.b2b-reg {
  width: min(760px, 94vw);
  margin: 48px auto 32px;
  padding: 28px 28px 24px;
}
.b2b-reg h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.b2b-reg-lead {
  margin: 0 0 20px;
}
.b2b-reg-rail {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.b2b-reg-rail li {
  flex: 1;
  position: relative;
  counter-increment: step;
}
.b2b-reg-rail button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  text-align: start;
}
.b2b-reg-rail button::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.b2b-reg-rail li.is-active button,
.b2b-reg-rail li.is-done button {
  border-color: var(--cyan);
  color: var(--text);
}
.b2b-reg-rail li.is-active button::before,
.b2b-reg-rail li.is-done button::before {
  background: var(--cyan);
  color: #fff;
}
.b2b-reg-rail .rail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.b2b-reg-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  margin: -12px 0 20px;
  overflow: hidden;
}
.b2b-reg-progress > span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--cyan), #d4a574);
  transition: width 0.28s ease;
}
.b2b-reg-step { display: none; }
.b2b-reg-step.is-visible { display: block; }
.b2b-reg .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.b2b-reg .field-span-2 { grid-column: 1 / -1; }
.b2b-reg .field > label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.b2b-reg .field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
  color: var(--cyan);
  font: 700 11px/1 inherit;
  cursor: help;
  flex: 0 0 auto;
}
.b2b-reg .field-help:hover,
.b2b-reg .field-help:focus-visible {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 18%, var(--surface));
  outline: 2px solid rgba(0, 168, 180, 0.28);
  outline-offset: 1px;
}
.b2b-reg .field-help__tip {
  position: absolute;
  z-index: 40;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: min(17rem, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(8, 28, 48, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.b2b-reg .field-help:hover .field-help__tip,
.b2b-reg .field-help:focus .field-help__tip,
.b2b-reg .field-help:focus-visible .field-help__tip {
  opacity: 1;
  visibility: visible;
}
.b2b-reg .brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.b2b-reg .brand-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13px;
}
.b2b-reg .brand-chip:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(0, 168, 180, 0.1);
}
.b2b-reg-drop {
  border: 1px dashed rgba(0, 168, 180, 0.45);
  border-radius: 10px;
  padding: 16px;
  background: rgba(212, 165, 116, 0.08);
  text-align: center;
  cursor: pointer;
}
.b2b-reg-drop.is-drag {
  border-color: var(--cyan);
  background: rgba(0, 168, 180, 0.12);
}
.b2b-reg-drop input[type="file"] { display: none; }
.b2b-reg-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.b2b-reg-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.b2b-reg-hint {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 168, 180, 0.1);
  font-size: 13px;
}
.b2b-reg-hint.is-silver { background: rgba(212, 165, 116, 0.18); }
.b2b-reg-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.b2b-reg-review {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.b2b-reg-review dt { color: var(--text-muted); font-size: 12px; }
.b2b-reg-review dd { margin: 0 0 10px; }
@media (max-width: 640px) {
  .b2b-reg .form-grid { grid-template-columns: 1fr; }
  .b2b-reg-rail { flex-wrap: wrap; }
  .b2b-reg-rail li { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .b2b-reg-progress > span { transition: none; }
}
[dir="rtl"] .b2b-reg-rail button { align-items: flex-end; }

.gov-picker {
  position: relative;
}
.gov-picker-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gov-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.gov-picker.is-open .gov-picker-trigger,
.gov-picker-trigger:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid rgba(0, 168, 180, 0.28);
  outline-offset: 1px;
}
.gov-picker-value.is-placeholder {
  color: var(--text-muted);
}
.gov-picker-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-top: -4px;
}
.gov-picker.is-open .gov-picker-chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}
.gov-picker-panel {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 6px);
  display: none;
  flex-direction: column;
  max-height: 340px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(8, 28, 48, 0.16);
  overflow: hidden;
}
.gov-picker.is-open .gov-picker-panel {
  display: flex;
}
.gov-picker-search {
  margin: 10px 10px 0;
  width: calc(100% - 20px);
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  font: inherit;
}
.gov-picker-list {
  overflow: auto;
  padding: 8px;
}
.gov-picker-group {
  padding: 10px 10px 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gov-picker-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.gov-picker-option:hover,
.gov-picker-option.is-active {
  background: rgba(0, 168, 180, 0.1);
}
.gov-picker-option.is-selected {
  background: rgba(0, 168, 180, 0.16);
}
.gov-picker-primary {
  font-weight: 600;
}
.gov-picker-secondary {
  color: var(--text-muted);
  font-size: 12px;
}
.gov-picker-empty {
  margin: 0;
  padding: 16px 12px;
  color: var(--text-muted);
  font-size: 13px;
}
[dir="rtl"] .gov-picker-option { align-items: flex-end; }
