/* Shared styles for multi-step signup forms (apply.html, join.html). */

/* Scroll anchoring would otherwise "correct" our explicit scrollTo(0,0) on step change,
   since hiding the previous step's tall content shifts layout right after we set it. */
html, body { overflow-anchor: none; }
.apply-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 100px; }
.apply-head { text-align: center; margin-bottom: 36px; }
.apply-head h1 { font-size: 32px; margin: 14px 0 10px; }
.apply-head p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; }

.progress-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }
.progress-dots span { width: 40px; height: 6px; border-radius: 999px; background: var(--border); transition: background .2s; }
.progress-dots span.done, .progress-dots span.active { background: var(--primary); }

.draft-note {
  display: flex; align-items: center; gap: 10px; background: var(--surface-soft); color: var(--primary);
  font-size: 13.5px; font-weight: 600; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 24px;
}
.draft-note button { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; font-weight: 600; }

.fcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow-card);
}
.fcard h3 { font-size: 15.5px; display: flex; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--primary); }
.fcard h3 svg { width: 19px; height: 19px; flex-shrink: 0; }
.fcard .fhint { font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; }

label.flabel { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
label.flabel:first-child { margin-top: 0; }
.finput, textarea.finput, select.finput {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
}
textarea.finput { border-radius: 16px; resize: vertical; min-height: 84px; line-height: 1.5; }
.finput:focus, textarea.finput:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.fcount { text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ferr { color: #b3261e; font-size: 12.5px; font-weight: 600; margin-top: 5px; display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text); user-select: none;
}
.chip-opt.sel { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }

.style-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; margin-bottom: 8px;
}
.style-opt.sel { background: var(--primary-container); border-color: transparent; }
.style-opt svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.style-opt .so-name { font-weight: 700; font-size: 14px; }
.style-opt .so-desc { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.toggle-row { display: flex; gap: 10px; }
.toggle-opt {
  flex: 1; text-align: center; padding: 12px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text);
}
.toggle-opt.sel { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }

.photo-picker { text-align: center; margin-bottom: 6px; }
.photo-circle {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 10px; cursor: pointer;
  background: var(--surface-soft); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--primary-container); overflow: hidden; position: relative; color: var(--muted);
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-circle svg { width: 26px; height: 26px; }
.photo-picker p { font-size: 12.5px; color: var(--muted); margin: 0; }

.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 4px; font-size: 13px; color: var(--muted); }
.check-row input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.check-row a { color: var(--primary); }

.nav-buttons { display: flex; gap: 12px; margin-top: 8px; }
.nav-buttons .btn { flex: 1; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.banner-error {
  background: #FBE9E7; color: #93000a; font-size: 13.5px; font-weight: 600; padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 18px; display: none;
}

.spinner {
  display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-wrap { text-align: center; padding: 20px 0; }
.success-icon {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(140deg, var(--primary-container), var(--secondary-container), var(--tertiary-container));
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.success-icon svg { width: 40px; height: 40px; }
.success-wrap h2 { font-size: 26px; margin-bottom: 12px; }
.success-wrap p { color: var(--muted); font-size: 15.5px; max-width: 460px; margin: 0 auto 14px; }
.claim-note {
  background: var(--surface-soft); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0;
  font-size: 13.5px; color: var(--text); text-align: left;
}
.claim-note strong { color: var(--primary); }

/* display:none (not off-screen positioning) — password managers and browser autofill
   still find and fill absolutely-positioned-offscreen inputs since they're technically
   focusable, which was silently poisoning real submissions into looking like spam. A
   display:none field is never rendered/focusable, so autofill can't touch it. */
.hp-field { display: none; }

fieldset { border: none; padding: 0; margin: 0; }
