/* ── GET-STARTED PAGE ────────────────────────────────────────────────
   Progress bar, registration selection cards, form steps,
   order sidebar, and success screen.
──────────────────────────────────────────────────────────────────── */

/* MAIN LAYOUT (left nav + content + sidebar) ----------------------- */
.gs-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Step 1 hides left nav: content gets full width */
.gs-main.step1-active {
  grid-template-columns: 1fr 300px;
}
.gs-main.step1-active .step-nav-sidebar {
  display: none;
}

/* LEFT STEP NAV ---------------------------------------------------- */
.step-nav-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s, color .15s;
  color: var(--muted);
  font-family: inherit;
}
.step-nav-item:hover {
  border-color: var(--teal);
  color: var(--text);
}
.step-nav-item.active {
  border-color: var(--teal);
  background: rgba(var(--teal-rgb),.07);
  color: #fff;
}
.step-nav-item.done {
  border-color: rgba(var(--teal-rgb),.35);
  color: var(--teal-light);
}
.step-nav-num {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--surface-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.step-nav-item.active .step-nav-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.step-nav-item.done .step-nav-num {
  background: rgba(var(--teal-rgb),.18);
  border-color: var(--teal);
  color: var(--teal-light);
}
.step-nav-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.step-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.step-nav-context {
  padding: 4px 2px;
}
.step-nav-context-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
}
.step-nav-context-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* STEP PANELS ------------------------------------------------------ */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-heading { margin-bottom: 28px; }
.step-heading h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.step-heading p  { font-size: 14px; color: var(--muted); }

/* REGISTRATION CARDS ----------------------------------------------- */
.regs-divider {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0 8px;
  grid-column: 1 / -1;
}
.reg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.reg-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  position: relative;
  user-select: none;
  min-height: 0;
}
.reg-card:hover    { border-color: var(--teal); background: #1f2f2e; }
.reg-card.selected { border-color: var(--teal); background: #1a3a35; }
.reg-card:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; }
/* Locked cards stay clickable so toggleCard() can surface the
   "Select ABN first" hint: they just look disabled. */
.reg-card.card-locked { opacity: .45; cursor: not-allowed; }
.reg-card.card-locked:hover { border-color: var(--border); background: var(--surface); }

/* Checkbox floats to top-right corner */
.reg-card-checkbox {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px; height: 26px;
  border: 2px solid var(--border-dark);
  border-radius: 5px;
  flex-shrink: 0;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-mid);
}
.reg-card.selected .reg-card-checkbox { background: var(--teal); border-color: var(--teal); }

.reg-card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  transition: background .15s;
}
.reg-card.selected .reg-card-icon { background: rgba(var(--teal-rgb),.2); }
.reg-card-price { font-size: 17px; font-weight: 700; color: var(--teal-light); margin-left: auto; flex-shrink: 0; padding-right: 36px; }

.reg-card-body { flex: 1; min-width: 0; }
.reg-card-body h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.reg-card-body p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.reg-card-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.reg-meta-tag { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 3px; }
.reg-meta-tag.free { background: rgba(var(--teal-rgb),.15); color: var(--teal-light); }
.reg-meta-tag.paid { background: rgba(255,165,0,.1); color: var(--gold); }
.reg-meta-tag.time { background: rgba(255,255,255,.07); color: var(--muted); }
.reg-card-details { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.reg-card-details div { margin-bottom: 4px; }
.reg-card-details b { color: #d0d8e0; font-weight: 600; }

/* STEP NAV ---------------------------------------------------------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* SIDEBAR ----------------------------------------------------------- */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-card h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.summary-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 12px 0; }
.summary-list { display: flex; flex-direction: column; gap: 8px; }
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface-mid);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.summary-item-name { color: #d0d8e0; display: flex; align-items: center; gap: 7px; min-width: 0; }
.summary-item-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item-icon { font-size: 14px; flex-shrink: 0; }
.summary-item-price { font-weight: 700; color: var(--teal-light); white-space: nowrap; flex-shrink: 0; margin-left: 8px; }
.summary-group { display: flex; flex-direction: column; gap: 4px; }
.summary-applying {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 6px;
  padding: 3px 10px 3px 12px;
  border-left: 2px solid var(--teal);
}
.summary-applying-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.summary-applying-line strong { color: #fff; font-weight: 600; text-align: right; word-break: break-word; }
.summary-applying-muted { color: var(--muted) !important; font-weight: 500 !important; font-style: italic; }
.summary-divider { height: 1px; background: var(--border); margin: 10px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #fff; }
.summary-total-amount { color: var(--teal-light); font-size: 20px; }
.summary-note { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Compact application summary tile under the business name checker.
   Teal, ~half the width of the checker, logged-in clients only. */
.app-summary-tile {
  width: 50%;
  min-width: 240px;
  margin-top: 20px;
  background: var(--teal-bg);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.app-summary-tile-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 10px;
}
.app-summary-tile-body { display: flex; flex-direction: column; gap: 8px; }
.app-summary-reg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.app-summary-reg-icon { font-size: 13px; flex-shrink: 0; display: inline-flex; }
.app-summary-reg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-summary-reg-price { color: var(--teal-light); font-weight: 700; white-space: nowrap; }
.app-summary-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #cfe9e4;
  padding-left: 20px;
}
.app-summary-detail strong { color: #fff; font-weight: 600; text-align: right; word-break: break-word; }
.app-summary-tile-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 600px) {
  .app-summary-tile { width: 100%; }
}
.sidebar-help {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-help h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-help p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 14px; }
.sidebar-trust { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sidebar-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sidebar-trust-item::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* PROCESS STEPS IN SIDEBAR ----------------------------------------- */
.sidebar-process { display: flex; flex-direction: column; gap: 12px; }
.sidebar-process-step { display: flex; gap: 10px; align-items: flex-start; }
.sidebar-step-num {
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.sidebar-step-text strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-step-text span   { font-size: 12px; color: var(--muted); }

/* SUCCESS PANEL ---------------------------------------------------- */
.success-panel {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.success-icon {
  width: 64px; height: 64px;
  background: rgba(var(--teal-rgb),.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.success-panel h3 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.success-panel p  { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 400px; margin: 0 auto 24px; }
.success-steps {
  background: var(--surface-mid);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
  margin-top: 24px;
}
.success-steps h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: 14px; }
.success-step-row { display: flex; gap: 12px; margin-bottom: 12px; font-size: 14px; color: #d0d8e0; align-items: flex-start; }
.success-step-num {
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}
.success-ref-wrap {
  margin: 14px auto 0;
  padding: 18px 32px;
  background: var(--teal-bg);
  border: 2px solid var(--teal);
  border-radius: var(--radius-md);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-light);
  display: inline-block;
  text-align: center;
}
.success-ref-wrap strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 3px;
  font-weight: 800;
  color: #fff;
}
.success-locked-note {
  margin: 18px auto 0;
  max-width: 420px;
  font-size: 13px;
  color: var(--muted);
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
/* A submitted application locks the step navigation. */
.step-nav-item.locked {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* REVIEW PANEL WITHIN STEP 4 --------------------------------------- */
.review-block { background: var(--surface-mid); border-radius: var(--radius-md); padding: 16px 18px; }
.review-block-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: 12px; }
.review-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.review-field { background: var(--surface); border-radius: var(--radius-md); padding: 8px; }
.review-field-label { font-size: 11px; color: var(--muted); }
.review-field-value { font-size: 13px; color: #fff; font-weight: 500; }

/* FORM QUESTIONS: wide inputs matching tile width ------------------- */
.step-panel .form-group {
  margin-bottom: 20px;
}
.step-panel .form-group input,
.step-panel .form-group select,
.step-panel .form-group textarea {
  padding: 16px 20px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
/* Field mirrored from another section (e.g. ABN tax-agent = Company's) */
.step-panel .form-group input.input-locked {
  opacity: .6;
  cursor: not-allowed;
}
.step-panel .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.step-panel .form-row > .form-group {
  margin-bottom: 0;
}

/* CUSTOM SELECT DROPDOWN: base styles now live in components.css --- */

/* Larger trigger inside step-panel form groups */
.step-panel .form-group .cs-trigger {
  padding: 16px 20px;
  font-size: 16px;
}

/* ABN QUESTION FIELDS ---------------------------------------------- */
.radio-group { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #d0d8e0;
  cursor: pointer;
  padding: 9px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .15s;
  user-select: none;
}
.radio-label:hover { border-color: var(--teal); }
.radio-label input[type="radio"] { accent-color: var(--teal); }
.radio-label:has(input:checked) { border-color: var(--teal); background: rgba(var(--teal-rgb),.12); color: #fff; }

.checkbox-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.checkbox-option:hover { border-color: var(--teal); }
.checkbox-option:has(input:checked) { border-color: var(--teal); background: rgba(var(--teal-rgb),.08); }
.checkbox-option input[type="checkbox"],
.checkbox-option input[type="radio"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.checkbox-option-body strong { display: block; font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.checkbox-option-body span  { font-size: 12px; color: var(--muted); line-height: 1.5; }

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-mid);
  border: 1px solid var(--border-dark);
  font-size: 10px;
  color: var(--muted);
  cursor: help;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
}

/* BN REGISTRATION PERIOD: left/right segmented selector ------------ */
.bn-period-toggle { display: flex; gap: 10px; margin-top: 10px; }
.bn-period-opt { flex: 1; cursor: pointer; user-select: none; }
.bn-period-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bn-period-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .15s;
  text-align: center;
}
.bn-period-opt:hover .bn-period-card { border-color: var(--teal); }
.bn-period-opt input:checked + .bn-period-card {
  border-color: var(--teal);
  background: rgba(var(--teal-rgb), .12);
}
.bn-period-opt input:focus-visible + .bn-period-card {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}
.bn-period-term  { font-size: 15px; font-weight: 600; color: #fff; }
.bn-period-price { font-size: 20px; font-weight: 800; color: var(--teal-light); }

/* BUSINESS NAME SEARCH --------------------------------------------- */
.bn-search-row { display: flex; gap: 10px; align-items: stretch; }
.bn-search-input {
  flex: 1;
  background: var(--surface-mid);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: border-color .15s;
}
.bn-search-input:focus { outline: none; border-color: var(--teal); }
.bn-search-input::placeholder { color: rgba(255,255,255,.2); font-weight: 400; letter-spacing: 0; font-size: 13px; }

.bn-result {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
}
.bn-result-available {
  border-color: #4ade80;
  background: rgba(74,222,128,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bn-result-taken { border-color: #f87171; background: rgba(248,113,113,.06); }
.bn-result-name  { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .8px; }
.bn-result-meta  { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

.bn-name-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-mid);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bn-name-tag-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; min-width: 0; }
.bn-name-tag-label { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.bn-name-tag-text { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .6px; }

/* Per-name 1yr/3yr period toggle inside each added-name row. */
.bn-name-period { display: inline-flex; flex-shrink: 0; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.bn-name-period-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 7px 11px; white-space: nowrap; transition: background .15s, color .15s;
}
.bn-name-period-btn + .bn-name-period-btn { border-left: 1.5px solid var(--border); }
.bn-name-period-btn:hover:not(.is-active) { color: #fff; }
.bn-name-period-btn.is-active { background: rgba(var(--teal-rgb), .15); color: #fff; }
.bn-name-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.bn-name-remove:hover { color: #f87171; background: rgba(248,113,113,.12); }

/* ── ADDITIONAL LOCATIONS ────────────────────────────────────────── */
.additional-location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.additional-location-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}
.additional-location-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb),.15);
}
.btn-add-location {
  background: none;
  border: 1.5px dashed var(--teal);
  color: var(--teal);
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.btn-add-location:hover { background: rgba(var(--teal-rgb),.08); }
.btn-remove-location {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 17px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.btn-remove-location:hover { color: #f87171; background: rgba(248,113,113,.1); }

/* ── BUSINESS ASSOCIATES ─────────────────────────────────────────── */
.associate-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.associate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.associate-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-light);
  letter-spacing: .3px;
}
.assoc-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.assoc-role-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: border-color .15s, background .15s;
}
.assoc-role-label:has(input:checked) {
  border-color: var(--teal);
  background: rgba(var(--teal-rgb),.08);
  color: var(--teal-light);
}
.assoc-role-label input { accent-color: var(--teal); }
.assoc-director-fields,
.assoc-shareholder-fields { margin-top: 14px; }

/* ── VALIDATION ──────────────────────────────────────────────────── */
.has-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248,113,113,.15) !important;
}
.validation-error {
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.validation-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f87171;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gs-main { grid-template-columns: 1fr 280px; }
  .step-nav-sidebar { display: none; }
}
@media (max-width: 900px) {
  .gs-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .reg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .reg-card-price { display: none; }
}

/* ── CONFIRM DIALOG (themed replacement for window.confirm) ──────── */
.bfa-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 22, 40, .72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.bfa-confirm-overlay.show { opacity: 1; }
.bfa-confirm-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}
.bfa-confirm-overlay.show .bfa-confirm-card { transform: translateY(0) scale(1); }
.bfa-confirm-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(var(--teal-rgb), .15);
}
.bfa-confirm-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px;
}
.bfa-confirm-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 24px;
}
.bfa-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.bfa-confirm-actions .btn { padding: 10px 20px; }

/* CONTEXTUAL HELP: large teal "?" buttons + Help topics panel ------- */
.help-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  padding: 0;
  transition: background .15s, transform .08s;
}
.help-q:hover { background: var(--teal-light, #1fc8be); }
.help-q:active { transform: scale(.9); }
.help-q:focus-visible { outline: 2px solid var(--teal-light, #1fc8be); outline-offset: 2px; }

.help-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.95);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.help-overlay.active { display: flex; }
.help-card {
  width: min(620px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0,0,0,.5);
  overflow: hidden;
}
.help-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.help-card-head h2 { font-size: 19px; color: #fff; margin: 0; }
.help-head-actions { display: flex; align-items: center; gap: 8px; }
.help-print {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.help-print:hover { background: rgba(255,255,255,.12); }
.help-close {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.help-close:hover { background: rgba(255,255,255,.12); }
.help-body { padding: 20px 22px 26px; overflow-y: auto; }
.help-topic-title { font-size: 17px; color: var(--teal-light, #1fc8be); margin: 0 0 10px; font-weight: 700; }
.help-topic-title + .help-topic-title { margin-top: 4px; }
.help-body p { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.help-body ul { margin: 0 0 12px; padding-left: 20px; }
.help-body li { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
.help-body strong { color: #fff; }
.help-body a { color: var(--teal-light, #1fc8be); text-decoration: underline; }
.help-body a:hover { color: #fff; }
