/* Sedona Equity Group — broker application form styles
   Layered on top of theme.css. */

/* ────────────────────────────────────────────────────────────────────
   Layout shell
   ──────────────────────────────────────────────────────────────────── */
.bf {
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--se-ink);
}

/* sidebar */
.bf-side {
  background: var(--se-ink-soft);
  border-right: 1px solid var(--se-hairline);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 44px;
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  /* Hide the scrollbar visually but keep scrollability */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
}
.bf-side::-webkit-scrollbar { width: 0; height: 0; display: none; } /* Chromium / Safari */
.bf-side::before {
  content:''; position: absolute; bottom: -160px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(184,84,64,.18), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.bf-side > * { position: relative; }

.bf-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;                   /* tighten — icon has intrinsic padding */
  text-decoration: none;
  padding: 4px 0 8px;
}
.bf-brand img {
  width: 130px; height: 130px; object-fit: contain;
  margin-bottom: -18px;     /* pull the text up under the icon's transparent padding */
  filter: drop-shadow(0 8px 22px rgba(184,84,64,.28));
}
.bf-brand__name { font-family: var(--se-display);
                  font-size: 26px; font-weight: 400;
                  color: var(--se-sand); line-height: 1; letter-spacing: .02em; }
.bf-brand__sub  { font-size: 11px; letter-spacing: .36em;
                  text-transform: uppercase; color: var(--se-ember);
                  margin-top: 5px; font-weight: 600; }

/* step rail */
.bf-rail { display: flex; flex-direction: column; gap: 0; }
.bf-rail__title { color: var(--se-sand-mute); font-size: 10px;
                  letter-spacing: .26em; text-transform: uppercase;
                  margin-bottom: 14px; font-weight: 500; }
.bf-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; position: relative;
  background: transparent; border: none; width: 100%;
  text-align: left; cursor: pointer;
  color: var(--se-ash);
}
.bf-step:focus-visible {
  outline: 2px solid var(--se-ember);
  outline-offset: 4px; border-radius: 6px;
}
.bf-step__dot {
  width: 30px; height: 30px; border-radius: 99px;
  border: 1px solid var(--se-hairline-strong);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--se-ash);
  flex-shrink: 0; transition: all .25s;
}
.bf-step__meta { display: flex; flex-direction: column; gap: 2px;
                 flex: 1; min-width: 0; }
.bf-step__num  { font-size: 9px; letter-spacing: .24em;
                 text-transform: uppercase; color: var(--se-ash);
                 font-weight: 500; }
.bf-step__lbl  { font-size: 13px; font-weight: 400; color: var(--se-ash); }
.bf-step__connector {
  position: absolute; left: 18px; top: 46px;
  width: 1px; height: 22px;
  background: var(--se-hairline);
}
.bf-step:last-child .bf-step__connector { display: none; }

.bf-step[data-state="active"] .bf-step__dot {
  background: linear-gradient(135deg, var(--se-rust), var(--se-ember));
  border: none; color: var(--se-ink);
  box-shadow: 0 6px 18px rgba(184,84,64,.4);
}
.bf-step[data-state="active"] .bf-step__num { color: var(--se-ember); }
.bf-step[data-state="active"] .bf-step__lbl { color: var(--se-sand); font-weight: 600; }
.bf-step[data-state="done"] .bf-step__dot {
  background: rgba(184,84,64,.18);
  border-color: rgba(184,84,64,.45);
  color: var(--se-ember);
}
.bf-step[data-state="done"] .bf-step__num { color: var(--se-sand-mute); }
.bf-step[data-state="done"] .bf-step__lbl { color: var(--se-sand-mute); }
.bf-step[data-state="done"] .bf-step__connector { background: rgba(184,84,64,.4); }

.bf-aside-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 14px;
}
.bf-aside-foot small {
  color: var(--se-ash); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.bf-aside-foot p {
  margin: 0; color: var(--se-sand-mute); font-size: 11.5px; line-height: 1.6;
}
.bf-aside-foot a { color: var(--se-ember); border-bottom: 1px dashed rgba(210,104,73,.3); }


/* ────────────────────────────────────────────────────────────────────
   Main pane
   ──────────────────────────────────────────────────────────────────── */
.bf-main {
  padding: 40px clamp(28px, 4.5vw, 64px) 80px;
  max-width: 100%;
  overflow-x: hidden;
}

.bf-step-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.bf-step-head__lead { max-width: 600px; }
.bf-step-head__eyebrow { color: var(--se-ember); font-size: 10px;
                         letter-spacing: .26em; text-transform: uppercase;
                         font-weight: 600; margin-bottom: 10px; }
.bf-step-head__title {
  margin: 0; font-family: var(--se-display); font-weight: 300;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.1;
  letter-spacing: -.01em; color: var(--se-sand);
}
.bf-step-head__sub {
  margin: 10px 0 0; color: var(--se-sand-mute);
  font-size: 14px; line-height: 1.6; max-width: 520px;
}
.bf-progress { text-align: right; min-width: 140px; }
.bf-progress__pct { color: var(--se-sand-mute); font-family: var(--se-mono);
                    font-size: 11px; letter-spacing: .1em; }
.bf-progress__bar {
  width: 120px; height: 2px; background: var(--se-ink-card);
  border-radius: 99px; margin-top: 6px; overflow: hidden;
}
.bf-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--se-rust), var(--se-ember));
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}


/* ────────────────────────────────────────────────────────────────────
   Field grid
   ──────────────────────────────────────────────────────────────────── */
.bf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  max-width: 820px;
}
.bf-grid--single { grid-template-columns: 1fr; }
.bf-grid > .bf-field--wide { grid-column: 1 / -1; }

/* Section heading inside a step (e.g. Personal / Business) */
.bf-section-title {
  max-width: 820px;
  margin: 4px 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--se-hairline);
  font-family: var(--se-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--se-sand);
}
/* Space between a grid and a following section heading */
.bf-grid + .bf-section-title { margin-top: 38px; }


/* ────────────────────────────────────────────────────────────────────
   Field (underline)
   ──────────────────────────────────────────────────────────────────── */
.bf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bf-field__label {
  font-family: var(--se-sans); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  font-size: 10px; color: var(--se-sand-mute);
  transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.bf-field__label--required::after {
  content: ''; width: 4px; height: 4px; border-radius: 99px;
  background: var(--se-ember); display: inline-block;
}
.bf-field__optional { color: var(--se-ash); font-size: 9.5px; letter-spacing: .15em; }

.bf-field__shell {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--se-hairline);
  transition: border-color .2s, box-shadow .2s;
}
.bf-field__shell input,
.bf-field__shell select,
.bf-field__shell textarea {
  background: transparent; border: none; outline: none;
  color: var(--se-sand);
  font-family: var(--se-serif); font-weight: 400;
  font-size: 17px; padding: 0; flex: 1;
  width: 100%; min-width: 0;
}
.bf-field__shell select {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 6 5-6' stroke='%23B8A892' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.bf-field__shell select option {
  background: var(--se-ink-panel); color: var(--se-sand);
  font-family: var(--se-sans); font-size: 14px;
}
.bf-field__shell textarea {
  resize: vertical; min-height: 60px;
  font-family: var(--se-serif); line-height: 1.5; padding: 6px 0;
}
.bf-field__shell input::placeholder,
.bf-field__shell textarea::placeholder {
  color: var(--se-ash); font-style: italic;
}

/* focus state */
.bf-field--focused .bf-field__label { color: var(--se-ember); }
.bf-field--focused .bf-field__shell {
  border-bottom-color: var(--se-ember);
  box-shadow: 0 1px 0 0 var(--se-ember), 0 4px 12px rgba(210,104,73,.18);
}
/* error state */
.bf-field--error .bf-field__label { color: var(--se-error); }
.bf-field--error .bf-field__shell { border-bottom-color: var(--se-error); }
.bf-field__error {
  font-size: 11.5px; color: var(--se-error);
  margin-top: 2px; min-height: 16px;
  font-weight: 500; letter-spacing: .01em;
  animation: se-fade-in .2s ease-out;
}
/* valid state (green glow) — applied when a field's content matches its format */
.bf-field--valid .bf-field__shell {
  border-bottom-color: #4CAF50;
  box-shadow: 0 1px 0 0 #4CAF50, 0 4px 14px rgba(76, 175, 80, .18);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.bf-field--valid .bf-field__shell::after {
  content: '✓';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #4CAF50;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.bf-field--valid .bf-field__shell { position: relative; }
/* filled (valid) state — subtle */
.bf-field--filled .bf-field__shell::after { content: ''; }


/* ────────────────────────────────────────────────────────────────────
   Radio group (pills)
   ──────────────────────────────────────────────────────────────────── */
.bf-radio-group {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.bf-radio-group__opts {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.bf-radio-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--se-hairline-strong);
  background: transparent;
  color: var(--se-sand-mute);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.bf-radio-opt:hover { border-color: var(--se-ember); color: var(--se-sand); }
.bf-radio-opt__dot {
  width: 14px; height: 14px; border-radius: 99px;
  border: 1.5px solid var(--se-ash);
  position: relative;
  transition: border-color .2s;
}
.bf-radio-opt[data-checked="true"] {
  background: rgba(184,84,64,.15);
  border-color: var(--se-ember);
  color: var(--se-sand);
}
.bf-radio-opt[data-checked="true"] .bf-radio-opt__dot {
  border-color: var(--se-ember);
}
.bf-radio-opt[data-checked="true"] .bf-radio-opt__dot::after {
  content: ''; position: absolute; inset: 2px;
  border-radius: 99px; background: var(--se-ember);
}
.bf-radio-opt input { position: absolute; opacity: 0; pointer-events: none; }


/* ────────────────────────────────────────────────────────────────────
   File dropzone
   ──────────────────────────────────────────────────────────────────── */
.bf-drop {
  border: 1.5px dashed rgba(232,220,201,.18);
  background: rgba(36,22,18,.4);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
}
.bf-drop:hover, .bf-drop--over {
  border-color: var(--se-ember);
  background: rgba(184,84,64,.08);
}
.bf-drop__icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 99px;
  background: rgba(210,104,73,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--se-ember);
}
.bf-drop__title  { font-family: var(--se-display); font-size: 18px;
                   color: var(--se-sand); font-weight: 400; }
.bf-drop__sub    { color: var(--se-sand-mute); font-size: 13px; margin-top: 6px; }
.bf-drop__hint   { color: var(--se-ash); font-size: 11px; margin-top: 14px;
                   letter-spacing: .15em; text-transform: uppercase; }
.bf-drop input { display: none; }

.bf-files { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bf-file {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(36,22,18,.6);
  border: 1px solid var(--se-hairline);
  border-radius: 10px;
  animation: se-fade-in .25s ease-out;
}
.bf-file__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(210,104,73,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--se-ember); flex-shrink: 0;
}
.bf-file__meta { flex: 1; min-width: 0; }
.bf-file__name {
  color: var(--se-sand); font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-file__size { color: var(--se-ash); font-size: 11px; margin-top: 2px;
                 font-family: var(--se-mono); }
.bf-file__rm {
  background: transparent; border: none; cursor: pointer;
  color: var(--se-sand-mute); padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.bf-file__rm:hover { color: var(--se-error); background: rgba(224,89,74,.1); }

/* Thumbnail preview for uploaded files */
.bf-file--preview { padding: 10px 12px; gap: 14px; }
.bf-file__thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: rgba(210,104,73,.10);
  border: 1px solid var(--se-hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--se-ember);
  position: relative;
}
.bf-file__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bf-file__thumb svg { opacity: .9; }

.bf-doc-list { padding-left: 18px; margin: 8px 0 0;
               color: var(--se-sand-mute); font-size: 13px; line-height: 1.7; }
.bf-doc-list li::marker { color: var(--se-ember); }
.bf-doc-warn { color: var(--se-warn); font-size: 11px; font-style: italic;
               margin: 12px 0 0; }


/* ────────────────────────────────────────────────────────────────────
   Signature pad
   ──────────────────────────────────────────────────────────────────── */
.bf-sig { display: flex; flex-direction: column; gap: 10px; }
.bf-sig__canvas-wrap {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(232,220,201,.06) 39px 40px),
    var(--se-ink-card);
  border: 1px solid var(--se-hairline-strong);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 5;
  max-width: 600px;
}
.bf-sig__canvas { display: block; width: 100%; height: 100%; cursor: crosshair;
                  touch-action: none; }
.bf-sig__hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  color: var(--se-ash); font-family: var(--se-serif); font-style: italic;
  font-size: 15px;
  transition: opacity .2s;
}
.bf-sig__line {
  position: absolute; left: 24px; right: 24px; bottom: 30%;
  height: 1px; background: var(--se-hairline-strong);
  pointer-events: none;
}
.bf-sig__line::before {
  content: '×'; position: absolute; left: -2px; top: -8px;
  color: var(--se-ash); font-size: 14px;
}
.bf-sig__actions { display: flex; align-items: center; justify-content: space-between;
                   gap: 12px; max-width: 600px; }


/* ────────────────────────────────────────────────────────────────────
   Legal disclosure block
   ──────────────────────────────────────────────────────────────────── */
.bf-legal {
  margin-top: 12px;
  padding: 22px 24px;
  background: rgba(30,17,13,.6);
  border: 1px solid var(--se-hairline);
  border-radius: 12px;
  color: var(--se-sand-mute);
  font-size: 13px;
  line-height: 1.7;
}
.bf-legal p { margin: 0 0 12px; }
.bf-legal p:last-child { margin-bottom: 0; }
.bf-legal strong { color: var(--se-sand); font-weight: 600; }
.bf-legal-check {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--se-hairline);
  cursor: pointer;
}
.bf-legal-check input { display: none; }
.bf-legal-check__box {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--se-hairline-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: all .2s;
  color: transparent;
}
.bf-legal-check[data-checked="true"] .bf-legal-check__box {
  background: linear-gradient(135deg, var(--se-rust), var(--se-ember));
  border-color: transparent;
  color: var(--se-ink);
}
.bf-legal-check__text { color: var(--se-sand); font-size: 13px; line-height: 1.55; }
.bf-legal-check.bf-field--error .bf-legal-check__box,
.bf-legal-check.bf-field--error .bf-legal-check__text { color: var(--se-error); border-color: var(--se-error); }

.bf-form-alert {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(226, 92, 92, 0.12);
  border: 1px solid var(--se-error, #e25c5c);
  color: var(--se-sand, #E8DCC9);
  font-size: 13px;
  line-height: 1.55;
}
.bf-form-alert[hidden] { display: none; }
.bf-form-alert strong { color: var(--se-error, #e25c5c); display: block; margin-bottom: 4px; }
.bf-form-alert ul { margin: 4px 0 0; padding-left: 18px; }
.bf-form-alert li { margin: 2px 0; }

.bf-legal__heading {
  color: var(--se-sand);
  font-family: var(--se-serif, 'Fraunces', serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 14px;
}
.bf-legal__intro { padding-bottom: 14px; border-bottom: 1px dashed var(--se-hairline); }
.bf-legal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 18px;
  background: rgba(210, 104, 73, 0.12);
  border: 1px solid var(--se-ember, #D26849);
  color: var(--se-sand, #E8DCC9);
  border-radius: 8px;
  font-family: var(--se-sans, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.bf-legal__toggle:hover {
  background: rgba(210, 104, 73, 0.2);
  transform: translateY(-1px);
}
.bf-legal__toggle[aria-expanded="true"] .bf-legal__toggle-icon { transform: rotate(180deg); }
.bf-legal__toggle-icon { transition: transform .2s ease; }
.bf-legal__full {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--se-hairline);
  max-height: 460px;
  overflow-y: auto;
  padding-right: 8px;
}
.bf-legal__full::-webkit-scrollbar { width: 8px; }
.bf-legal__full::-webkit-scrollbar-thumb { background: var(--se-hairline-strong); border-radius: 4px; }
.bf-legal__witness {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--se-hairline);
  color: var(--se-sand);
  font-style: italic;
}


/* ────────────────────────────────────────────────────────────────────
   Footer action row
   ──────────────────────────────────────────────────────────────────── */
.bf-actions {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--se-hairline);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.bf-actions__hint {
  color: var(--se-ash); font-size: 12px; display: flex; align-items: center; gap: 8px;
}


/* ────────────────────────────────────────────────────────────────────
   Success screen
   ──────────────────────────────────────────────────────────────────── */
.bf-success {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  position: relative;
}
.bf-success::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center,
    rgba(210,104,73,.10), transparent 65%);
  pointer-events: none;
}
.bf-success > * { position: relative; }
.bf-success__check {
  width: 88px; height: 88px; border-radius: 99px;
  background: linear-gradient(135deg, var(--se-rust), var(--se-ember));
  display: flex; align-items: center; justify-content: center;
  color: var(--se-ink);
  box-shadow: 0 20px 50px rgba(210,104,73,.4);
  margin-bottom: 32px;
  animation: se-fade-in .6s ease-out both;
}
/* Alarming variant — post-submit screen, on-theme (rust/ember). */
.bf-success__check--alert {
  background: linear-gradient(135deg, var(--se-rust), var(--se-ember));
  color: var(--se-sand);
  box-shadow: 0 0 0 1px rgba(210,104,73,.35), 0 20px 50px rgba(210,104,73,.45);
  animation: se-pulse 1.8s ease-in-out infinite;
}
@keyframes se-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(210,104,73,.35), 0 20px 50px rgba(210,104,73,.45); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(210,104,73,.12), 0 20px 60px rgba(210,104,73,.55); }
}
.bf-success__alert {
  max-width: 54ch;
  margin: 4px 0 22px;
  padding: 18px 22px;
  border: 1px solid var(--se-hairline-strong);
  border-left: 3px solid var(--se-ember);
  border-radius: 12px;
  background: var(--se-ink-card);
  color: var(--se-sand-mute);
  font-size: 14.5px; line-height: 1.7;
  text-align: left;
}
.bf-success__alert strong { color: var(--se-ember); font-weight: 600; }

.bf-success__title {
  margin: 0; font-family: var(--se-display); font-weight: 300;
  font-size: clamp(36px, 5vw, 52px); color: var(--se-sand);
  letter-spacing: -.01em; max-width: 18ch; line-height: 1.1;
}
.bf-success__sub {
  margin: 16px 0 32px; color: var(--se-sand-mute);
  font-size: 15px; line-height: 1.7; max-width: 50ch;
}
.bf-success__id {
  font-family: var(--se-mono); font-size: 12px;
  color: var(--se-ember); letter-spacing: .15em;
  padding: 8px 16px; border: 1px dashed rgba(210,104,73,.35);
  border-radius: 99px; margin-bottom: 32px;
}


/* ────────────────────────────────────────────────────────────────────
   Loading overlay
   ──────────────────────────────────────────────────────────────────── */
.bf-loader {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,7,6,.85);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  animation: se-fade-in .2s ease-out;
}
.bf-loader__ring {
  width: 64px; height: 64px;
  border: 2px solid rgba(232,220,201,.08);
  border-top-color: var(--se-ember);
  border-radius: 99px;
  animation: se-spin .9s linear infinite;
}
.bf-loader__text { color: var(--se-sand-mute); font-size: 13px;
                   letter-spacing: .2em; text-transform: uppercase; }


/* ────────────────────────────────────────────────────────────────────
   Tablet (single-column with top rail)
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bf { grid-template-columns: 1fr; }
  .bf-side {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 24px 28px;
    flex-direction: row; align-items: center; gap: 24px;
    border-right: none;
    border-bottom: 1px solid var(--se-hairline);
  }
  .bf-side::before { display: none; }
  /* On mobile the sidebar becomes a top bar — switch the brand back to a horizontal row */
  .bf-brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 4px;                /* icon has internal padding — gap stays tight */
    padding: 0;
    flex-shrink: 0;
  }
  .bf-brand img { width: 64px; height: 64px; margin-bottom: 0; margin-right: -8px; }
  .bf-brand__name { font-size: 18px; }
  .bf-brand__sub  { font-size: 9px; letter-spacing: .26em; margin-top: 3px; }
  .bf-rail__title { display: none; }
  .bf-rail {
    flex: 1; flex-direction: row; align-items: center;
    gap: 6px; overflow: visible;
  }
  .bf-step { padding: 6px 4px; gap: 8px; flex: 0 1 auto; min-width: 0; }
  .bf-step__meta { flex: 0 1 auto; min-width: 0; gap: 0; }
  .bf-step__connector {
    position: relative; left: 0; top: 0;
    width: 14px; height: 1px;
    flex: 0 0 14px;
  }
  .bf-step__num { display: none; }
  .bf-step__lbl { font-size: 12px; white-space: nowrap; }
  .bf-aside-foot { display: none; }
}

@media (max-width: 700px) {
  .bf-main { padding: 28px 20px 64px; }
  .bf-grid { grid-template-columns: 1fr; gap: 22px; }
  .bf-step__lbl { display: none; }
  .bf-step { gap: 4px; padding: 6px 0; }
  .bf-step__connector { flex: 0 0 8px; width: 8px; }
  .bf-rail { gap: 4px; }
  .bf-step-head { flex-direction: column; align-items: flex-start; }
  .bf-progress { text-align: left; }
}
