/* ==========================================================================
   Registration wizard — loaded only by auth/register.blade.php.
   Builds on the tokens and base classes in style.css (.field, .input,
   .btn, .err-msg, --sky, --teal, --coral ...). Everything here is prefixed
   .rw- so nothing leaks into the login page or the rest of the app.

   Progressive enhancement: with JavaScript off every step is simply shown
   one after another as a normal form. The wizard only takes over once
   register-wizard.js adds .rw-js to the form.
   ========================================================================== */

.rw { position: relative; }
.rw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Every icon is a <svg class="rw-i"><use href="#rw-i-…"/></svg> */
.rw-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* -------------------------------------------------------------- stepper */
.rw-steps {
  --rw-progress: 0;
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; justify-content: space-between; position: relative;
}
.rw-steps::before, .rw-steps::after {
  content: ''; position: absolute; top: 16px; left: 17px; right: 17px; height: 3px; border-radius: 3px;
}
.rw-steps::before { background: var(--stroke-2); }
.rw-steps::after {
  background: linear-gradient(90deg, var(--sky), var(--sky-2));
  transform-origin: left center; transform: scaleX(var(--rw-progress));
  transition: transform .55s var(--ease);
}
.rw-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 34px; }
.rw-dot {
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: default;
  background: var(--panel); border: 2px solid var(--stroke-2); color: var(--text-faint);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.rw-dot .rw-i { width: 16px; height: 16px; grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--ease); }
.rw-dot .rw-i-done { opacity: 0; transform: scale(.4) rotate(-40deg); }
.rw-step.is-current .rw-dot {
  border-color: var(--sky); color: var(--sky); transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(23, 138, 84, .14);
  animation: rwPulse 2.2s ease-out infinite;
}
.rw-step.is-done .rw-dot { background: linear-gradient(135deg, var(--sky), var(--teal)); border-color: transparent; color: #fff; }
.rw-step.is-done .rw-i-idle { opacity: 0; transform: scale(.4); }
.rw-step.is-done .rw-i-done { opacity: 1; transform: none; animation: rwPop .45s var(--ease); }
.rw-step.is-done .rw-dot:not(:disabled) { cursor: pointer; }
.rw-step.is-done .rw-dot:not(:disabled):hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 18px -8px rgba(23, 138, 84, .7); }
.rw-label { font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--text-faint); transition: color .3s; white-space: nowrap; }
.rw-step.is-current .rw-label { color: var(--text); }
.rw-step.is-done .rw-label { color: var(--text-dim); }
@keyframes rwPulse { 0% { box-shadow: 0 0 0 0 rgba(23, 138, 84, .35); } 70% { box-shadow: 0 0 0 9px rgba(23, 138, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 138, 84, 0); } }
@keyframes rwPop { 0% { transform: scale(.3) rotate(-40deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------------------------------------------------------------- header */
.rw-head { margin-bottom: 18px; min-height: 66px; }
.rw-count { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.rw-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 3px 0 4px; color: var(--text); }
.rw-sub { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); margin: 0; }
.rw-head.is-swapping .rw-count, .rw-head.is-swapping .rw-title, .rw-head.is-swapping .rw-sub { animation: rwHeadIn .4s var(--ease) both; }
.rw-head.is-swapping .rw-title { animation-delay: .04s; }
.rw-head.is-swapping .rw-sub { animation-delay: .08s; }
@keyframes rwHeadIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- server alert */
.rw-alert {
  display: none; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 11px 13px; border-radius: 12px;
  background: rgba(179, 69, 47, .10); border: 1px solid rgba(179, 69, 47, .32); color: var(--coral); font-size: 12.5px; line-height: 1.5;
}
.rw-alert.is-visible { display: flex; animation: rwHeadIn .35s var(--ease); }
.rw-alert .rw-i { margin-top: 1px; }

/* -------------------------------------------------------------- panels */
.rw-viewport { position: relative; }
.rw-js .rw-viewport { overflow: hidden; transition: height .45s var(--ease); margin: 0 -6px; padding: 0 6px; }
.rw-js .rw-panel { display: none; }
.rw-js .rw-panel.is-active { display: block; }
.rw-js .rw-panel.is-entering-forward { animation: rwInRight .5s var(--ease) both; }
.rw-js .rw-panel.is-entering-back { animation: rwInLeft .5s var(--ease) both; }
.rw-js .rw-panel.is-leaving-forward { display: block; position: absolute; inset: 0 6px auto; animation: rwOutLeft .3s var(--ease) both; pointer-events: none; }
.rw-js .rw-panel.is-leaving-back { display: block; position: absolute; inset: 0 6px auto; animation: rwOutRight .3s var(--ease) both; pointer-events: none; }
@keyframes rwInRight { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes rwInLeft { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes rwOutLeft { to { opacity: 0; transform: translateX(-34px); } }
@keyframes rwOutRight { to { opacity: 0; transform: translateX(34px); } }

/* fields rise in one after another */
.rw-js .rw-panel.is-active .rw-rise { animation: rwRise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 90ms); }
@keyframes rwRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ inputs */
.rw .field { margin-bottom: 15px; }
.rw-input { position: relative; }
.rw-input > .rw-lead {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px;
  color: var(--text-faint); pointer-events: none; transition: color .2s, transform .3s var(--ease);
}
.rw-input .input { padding-left: 41px; padding-right: 42px; }
.rw-input:focus-within > .rw-lead { color: var(--sky); transform: translateY(-50%) scale(1.12); }
.rw .field.is-valid .input { border-color: var(--teal); }
.rw .field.error .input { border-color: var(--coral); }
.rw .field.error .rw-input > .rw-lead { color: var(--coral); }

/* right-hand state icon: spinner / tick / alert */
.rw-state { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; display: none; align-items: center; justify-content: center; }
.rw-state .rw-i { width: 17px; height: 17px; }
.rw-state-ok { color: var(--teal); }
.rw-state-bad { color: var(--coral); }
.rw .field.is-checking .rw-state-spin, .rw .field.is-valid .rw-state-ok, .rw .field.error .rw-state-bad { display: flex; }
.rw .field.is-valid .rw-state-ok { animation: rwPop .4s var(--ease); }
.rw-state-spin::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--stroke-2); border-top-color: var(--sky);
  animation: spin .7s linear infinite;
}
.rw .field.is-checking .input { border-color: var(--sky); }
/* the password eye button sits where the state icon would, so it wins the slot */
.rw-input .input-toggle { right: 11px; z-index: 2; cursor: pointer; }
.rw-input.has-toggle .input { padding-right: 42px; }
.rw-hint { font-size: 11.5px; color: var(--text-faint); margin: 7px 0 0; line-height: 1.5; }
.rw-hint b { color: var(--text-dim); }
.rw .field .err-msg .rw-i { width: 13px; height: 13px; }
.rw-optional { color: var(--text-faint); font-weight: 400; }

/* ----------------------------------------------------------- photo picker */
.rw-photo-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.rw-photo {
  position: relative; width: 104px; height: 104px; border-radius: 50%; cursor: pointer;
  border: 2px dashed var(--stroke-2); background: var(--panel-2); color: var(--text-faint);
  display: grid; place-items: center; padding: 0; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s, background .25s;
}
.rw-photo:hover, .rw-photo:focus-visible { transform: scale(1.04); border-color: var(--sky); color: var(--sky); box-shadow: 0 10px 26px -12px rgba(23, 138, 84, .6); }
.rw-photo.is-drag { border-style: solid; border-color: var(--sky); background: rgba(23, 138, 84, .08); transform: scale(1.08); }
.rw-photo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.rw-photo-empty .rw-i { width: 24px; height: 24px; }
.rw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: none; }
.rw-photo.has-image { border-style: solid; border-color: var(--teal); }
.rw-photo.has-image img { display: block; animation: rwPop .5s var(--ease); }
.rw-photo.has-image .rw-photo-empty { display: none; }
.rw-photo-remove {
  position: absolute; top: -2px; right: -2px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; padding: 0;
  display: none; place-items: center; cursor: pointer; background: var(--coral); color: #fff; border: 2px solid var(--panel);
  transition: transform .2s var(--ease);
}
.rw-photo-remove:hover { transform: scale(1.12); }
.rw-photo-remove .rw-i { width: 13px; height: 13px; stroke-width: 2.4; }
.rw-photo-holder { position: relative; }
.rw-photo-holder.has-image .rw-photo-remove { display: grid; }
.rw-photo-caption { margin-top: 10px; font-size: 11.5px; color: var(--text-faint); text-align: center; line-height: 1.5; }
.rw-photo-error { margin-top: 6px; font-size: 11.5px; color: var(--coral); text-align: center; display: none; }
.rw-photo-error.is-visible { display: block; animation: shake .32s; }

/* -------------------------------------------------------------- BVN meter */
.rw-count-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rw-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--stroke); }
.rw-bar > span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--sky-2)); transition: width .3s var(--ease); }
.rw-count-num { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); min-width: 38px; text-align: right; }
.rw-count-num.is-full { color: var(--teal); font-weight: 600; }

/* ------------------------------------------------------- password strength */
.rw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.rw-meter span { height: 5px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--stroke); transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease); }
.rw-meter span.on { border-color: transparent; transform: scaleY(1.25); }
.rw-meter[data-level="1"] span.on { background: var(--coral); }
.rw-meter[data-level="2"] span.on { background: var(--amber); }
.rw-meter[data-level="3"] span.on, .rw-meter[data-level="4"] span.on { background: var(--teal); }
.rw-meter-text { font-size: 11.5px; margin-top: 6px; color: var(--text-faint); min-height: 16px; transition: color .3s; }
.rw-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.rw-checks li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-faint); transition: color .3s; }
.rw-checks .rw-tick {
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1.5px solid var(--stroke-2); color: transparent; transition: background .3s var(--ease), border-color .3s, color .2s, transform .3s var(--ease);
}
.rw-checks .rw-tick .rw-i { width: 10px; height: 10px; stroke-width: 3; }
.rw-checks li.ok { color: var(--text); }
.rw-checks li.ok .rw-tick { background: var(--teal); border-color: var(--teal); color: #fff; animation: rwPop .4s var(--ease); }
.rw-match { font-size: 11.5px; margin-top: 6px; min-height: 16px; display: flex; align-items: center; gap: 5px; color: var(--text-faint); }
.rw-match.ok { color: var(--teal); }
.rw-match.bad { color: var(--coral); }
.rw-match .rw-i { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------------------------------------------------------- review step */
.rw-review { display: grid; gap: 10px; }
.rw-card { background: var(--panel-2); border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 14px; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.rw-card:hover { border-color: var(--stroke-2); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5); }
.rw-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.rw-card-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(23, 138, 84, .14); color: var(--sky); }
.rw-card-icon .rw-i { width: 15px; height: 15px; }
.rw-card-title { font-size: 12.5px; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.rw-edit {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; background: none; border: 1px solid var(--stroke-2); color: var(--sky); transition: background .2s, transform .2s var(--ease);
}
.rw-edit:hover { background: rgba(23, 138, 84, .1); transform: translateY(-1px); }
.rw-edit .rw-i { width: 12px; height: 12px; }
.rw-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 4px 0; font-size: 12.5px; }
.rw-row + .rw-row { border-top: 1px dashed var(--stroke); }
.rw-row dt { color: var(--text-faint); flex-shrink: 0; }
.rw-row dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.rw-row dd.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.rw-avatar { display: flex; align-items: center; gap: 11px; }
.rw-avatar-pic { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--sky), var(--teal)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.rw-avatar-pic img { width: 100%; height: 100%; object-fit: cover; display: none; }
.rw-avatar-pic.has-image img { display: block; }
.rw-avatar-pic.has-image span { display: none; }
.rw-avatar b { display: block; font-size: 14px; color: var(--text); }
.rw-avatar small { color: var(--text-faint); font-size: 11.5px; }
.rw-pill { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 700; margin-left: 6px; }
.rw-pill.weak { background: rgba(179, 69, 47, .14); color: var(--coral); }
.rw-pill.okay { background: rgba(217, 169, 59, .16); color: var(--amber); }
.rw-pill.strong { background: rgba(23, 138, 84, .14); color: var(--teal); }
.rw-note {
  display: flex; gap: 10px; margin: 14px 0 12px; padding: 11px 13px; border-radius: 12px; font-size: 12px; line-height: 1.5;
  background: rgba(217, 169, 59, .10); border: 1px solid rgba(217, 169, 59, .32); color: var(--text-dim);
}
.rw-note .rw-i { color: var(--amber); margin-top: 1px; }
.rw-terms { margin-bottom: 4px; }
.rw .field.error.rw-terms-field .err-msg { margin-top: -10px; margin-bottom: 12px; }

/* ------------------------------------------- review step: scrollable details
   The review is the longest step. It scrolls inside its own box, so Back and
   "Create my account" stay on screen the whole time and the member can read
   every detail (and the terms) before submitting. Fades at the top / bottom
   edges and a "Scroll to see everything" pill show when there is more. */
.rw-scroll-wrap { position: relative; }
.rw-scroll {
  max-height: min(50vh, 400px); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  margin-right: -6px; padding: 2px 6px 6px 2px; border-radius: 12px;
  scrollbar-width: thin; scrollbar-color: var(--stroke-2) transparent;
}
.rw-scroll:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.rw-scroll::-webkit-scrollbar { width: 7px; }
.rw-scroll::-webkit-scrollbar-track { background: transparent; }
.rw-scroll::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 8px; }
.rw-scroll::-webkit-scrollbar-thumb:hover { background: var(--sky); }
.rw-scroll-wrap::before, .rw-scroll-wrap::after {
  content: ''; position: absolute; left: 0; right: 6px; height: 28px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.rw-scroll-wrap::before { top: 0; border-radius: 12px 12px 0 0; background: linear-gradient(var(--panel), transparent); }
.rw-scroll-wrap::after { bottom: 0; border-radius: 0 0 12px 12px; background: linear-gradient(transparent, var(--panel)); }
.rw-scroll-wrap.can-scroll-up::before, .rw-scroll-wrap.can-scroll-down::after { opacity: 1; }
.rw-scroll-hint {
  position: absolute; left: 50%; bottom: 8px; z-index: 3; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 10px; border: 0; border-radius: 20px; cursor: pointer;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--teal)); box-shadow: 0 8px 20px -8px rgba(23, 138, 84, .8);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.rw-scroll-hint .rw-i { width: 13px; height: 13px; stroke-width: 2.4; animation: rwNudge 1.3s ease-in-out infinite; }
.rw-scroll-wrap.can-scroll-down .rw-scroll-hint { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
@keyframes rwNudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
/* without JavaScript there is no wizard: nothing to cap or scroll */
.rw-form:not(.rw-js) .rw-scroll { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
.rw-form:not(.rw-js) .rw-scroll-hint { display: none; }

/* --------------------------------------------------------------- actions */
.rw-actions { display: flex; gap: 10px; margin-top: 20px; }
.rw-actions .btn { padding: 12px 18px; }
.rw-back { flex: 0 0 auto; }
.rw-next, .rw-submit { flex: 1; justify-content: center; position: relative; overflow: hidden; }
.rw-js .rw-submit { display: none; }
.rw-js.is-last .rw-submit { display: inline-flex; }
.rw-js.is-last .rw-next { display: none; }
.rw-js.is-first .rw-back { display: none; }
.rw-actions .btn .rw-i { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.rw-next:hover .rw-i-arrow { transform: translateX(3px); }
.rw-back:hover .rw-i-arrow { transform: translateX(-3px); }
.rw-btn-spin { display: none; }
.btn.is-loading .rw-btn-spin { display: inline-block; }
.btn.is-loading .rw-btn-arrow, .btn.is-loading .rw-btn-icon { display: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.rw-actions .btn-primary::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none;
}
.rw-actions .btn-primary:hover::after { transform: translateX(120%); }
.rw-keys { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 12px; }
.rw-keys kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--stroke-2); background: var(--panel-2); }

/* ---------------------------------------------------------- submit overlay */
.rw-overlay {
  position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(5, 12, 9, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.rw-overlay.is-visible { display: flex; animation: rwFade .3s ease both; }
@keyframes rwFade { from { opacity: 0; } to { opacity: 1; } }
.rw-overlay-card {
  width: 100%; max-width: 360px; text-align: center; padding: 30px 26px 26px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--stroke-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  animation: rwPopIn .5s var(--ease) both;
}
@keyframes rwPopIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
.rw-overlay .orbit-loader { margin: 0 auto 18px; width: 68px; height: 68px; }
.rw-overlay .orbit-loader::after {
  content: ''; position: absolute; inset: 24px; border-radius: 50%; background: radial-gradient(circle, var(--sky-2), var(--sky)); opacity: .9; animation: rwBeat 1.2s ease-in-out infinite;
}
@keyframes rwBeat { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.rw-overlay h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; color: var(--text); }
.rw-overlay-sub { font-size: 12.5px; color: var(--text-dim); margin: 0 0 16px; }
.rw-stages { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 9px; }
.rw-stages li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-faint); opacity: .55; transition: opacity .4s, color .4s; }
.rw-stages li .rw-stage-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--stroke-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: background .3s, border-color .3s, color .3s; }
.rw-stages li .rw-stage-mark .rw-i { width: 11px; height: 11px; stroke-width: 3; }
.rw-stages li.is-active { opacity: 1; color: var(--text); }
.rw-stages li.is-active .rw-stage-mark { border-color: var(--stroke-2); border-top-color: var(--sky); animation: spin .8s linear infinite; }
.rw-stages li.is-done { opacity: 1; color: var(--text-dim); }
.rw-stages li.is-done .rw-stage-mark { background: var(--teal); border-color: var(--teal); color: #fff; animation: rwPop .4s var(--ease); }
.rw-overlay-late { display: none; margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.rw-overlay-late.is-visible { display: block; animation: rwHeadIn .4s var(--ease); }
.rw-overlay-late a { color: var(--sky); font-weight: 600; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 520px) {
  .rw-label { display: none; }
  .rw-step.is-current .rw-label { display: block; position: absolute; top: 40px; }
  .rw-steps { margin-bottom: 30px; }
  .rw-checks { grid-template-columns: 1fr; }
  .rw-title { font-size: 19px; }
}

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rw *, .rw *::before, .rw *::after, .rw-overlay, .rw-overlay * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------- without JavaScript
   register-wizard.js adds .rw-js to the form. Until (or unless) it does, the
   controls that only make sense in wizard mode are hidden and every section
   simply shows one after another, ending in the normal submit button. */
.rw-form:not(.rw-js) .rw-steps,
.rw-form:not(.rw-js) .rw-head,
.rw-form:not(.rw-js) .rw-review,
.rw-form:not(.rw-js) .rw-back,
.rw-form:not(.rw-js) .rw-next,
.rw-form:not(.rw-js) .rw-keys,
.rw-form:not(.rw-js) .rw-photo-wrap { display: none; }
.rw-form:not(.rw-js) .rw-panel { margin-bottom: 6px; }

/* Reduced motion removes movement, but a spinner that never turns looks frozen — keep those turning, gently. */
@media (prefers-reduced-motion: reduce) {
  .rw .btn-spinner, .rw-state-spin::before, .rw-overlay .orbit-loader span, .rw-stages li.is-active .rw-stage-mark {
    animation-duration: 1.6s !important; animation-iteration-count: infinite !important;
  }
}
