/* Registration form */
body.fp { background: #f4f1ee; }

.f-hero { background: linear-gradient(125deg, #eb1700 0%, #c41400 50%, #8f0e00 100%); color: #fff; position: relative; overflow: hidden; }
.f-hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 88% 10%, rgba(255,255,255,.22), transparent 38%),
  radial-gradient(circle at 5% 110%, rgba(255,255,255,.14), transparent 40%); }
.f-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.f-hero-in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 56px 24px 64px; }
.f-logo { display: block; height: 64px; width: auto; margin: 0 0 22px; }
.f-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 20px; }
.f-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.6vw, 40px); line-height: 1.15; margin: 16px 0 22px; }
.f-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; opacity: .95; }
.f-meta span { display: inline-flex; align-items: center; gap: 7px; }

.f-bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #e7e2de; }
.f-bar-in { max-width: 820px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.f-steps { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.f-stepnav { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border-radius: 20px; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.f-stepnav span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #ece7e3; color: #605e5c; transition: background .2s; }
.f-stepnav:hover { background: #f4efec; }
.f-stepnav.on { color: var(--ink); font-weight: 500; }
.f-stepnav.on span { background: var(--ink); color: #fff; }
.f-stepnav.done span { background: #107c10; color: #fff; font-size: 0; }
.f-stepnav.done span::after { content: '✓'; font-size: 12px; }
.f-progress { flex: 0 0 170px; font-size: 12px; color: var(--muted); text-align: right; }
.f-track { height: 6px; background: #ece7e3; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.f-track i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width .35s ease; }

.f-main { max-width: 820px; margin: 0 auto; padding: 28px 24px 16px; }
.f-req { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

.f-sec { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(60,40,20,.05); margin-bottom: 22px; overflow: hidden; scroll-margin-top: 70px; }
.f-sec-head { display: flex; gap: 16px; padding: 26px 30px 22px; border-bottom: 1px solid #f1ece8; background: #fff; }
.f-step { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #fbe9e7; color: var(--red); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.f-sec-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 4px 0 4px; }
.f-sec-desc { color: var(--muted); margin: 0; font-size: 14px; }
.f-prog { display: grid; gap: 8px; margin: 12px 0 0; }
.f-prog div { background: #faf8f6; border: 1px solid #f1ede9; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.f-prog b { display: block; color: var(--red); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.f-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.f-note b { color: var(--ink); }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 6px 30px 10px; }
.f-q { grid-column: 1 / -1; padding: 22px 0; border-bottom: 1px solid #f3efec; scroll-margin-top: 90px; }
.f-q:last-child { border-bottom: 0; }
.f-q.half { grid-column: span 1; }
.f-q[hidden] { display: none; }
.f-q:not([hidden]) { animation: fIn .25s ease; }
@keyframes fIn { from { opacity: 0; transform: translateY(-4px); } }

/* Question text: the only strong element */
.f-q-top { display: flex; align-items: baseline; gap: 8px; }
.f-num { flex: 0 0 auto; min-width: 22px; font-size: 13px; color: #a19a95; font-variant-numeric: tabular-nums; }
.f-num::after { content: '.'; }
.f-q[data-q="name"] .f-num { display: none; }
.f-label { font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.f-opt-tag { font-size: 11.5px; font-weight: 400; color: #a19a95; margin-left: 4px; }
.f-hint { font-size: 13px; color: #8a8380; margin: 4px 0 0 30px; }
.f-ctl, .f-name, .f-q > .f-chart { margin-left: 30px; }
.f-q[data-q="name"] .f-name { margin-left: 0; }
.f-ctl { margin-top: 12px; }

/* Text inputs: quiet filled fields */
.f-input { width: 100%; background: #f7f5f3; border: 1px solid #efebe8; border-radius: 8px; padding: 10px 14px; min-height: 44px; font-size: 15px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.f-input::placeholder { color: #b3aca7; }
.f-input:hover { border-color: #e2dcd8; }
.f-input:focus { background: #fff; border-color: #d9cfca; box-shadow: 0 0 0 3px rgba(235,23,0,.08); }
.f-name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.f-q.half .f-input { max-width: 100%; }

/* Choices: plain radio lists, no boxes */
.f-opts { display: grid; gap: 2px 24px; }
.f-opts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-opts-grid.f-opts-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-opts-pills, .f-opts-seg { display: flex; flex-wrap: wrap; gap: 2px 26px; }

.f-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14.5px; line-height: 1.35; color: #4a4643; user-select: none; }
.f-opt::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c4bcb6; background: #fff; transition: border-color .12s, background .12s; }
.f-opt input { position: absolute; opacity: 0; pointer-events: none; }
.f-opt:hover { color: var(--ink); }
.f-opt:hover::before { border-color: #9c938d; }
.f-opt:has(input:checked) { color: var(--ink); font-weight: 500; }
.f-opt:has(input:checked)::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 4.5px, #fff 5.5px); }
.f-opt:has(input:focus-visible)::before { box-shadow: 0 0 0 3px rgba(235,23,0,.18); }
.f-opts-pills .f-opt { min-width: 52px; }

.f-group { display: flex; align-items: center; gap: 14px; }
.f-group + .f-group { margin-top: 2px; }
.f-group-lbl { flex: 0 0 56px; font-size: 13px; color: #8a8380; }
.f-other { margin-top: 8px; max-width: 420px; }

.f-chart { margin-top: 6px; font-size: 13px; }
.f-chart summary { cursor: pointer; color: #8a8380; text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline-block; }
.f-chart summary:hover { color: var(--ink); }
.f-chart summary::-webkit-details-marker { display: none; }
.f-chart table { border-collapse: collapse; margin-top: 10px; min-width: 260px; }
.f-chart th { text-align: left; padding: 6px 14px 6px 0; font-weight: 500; color: #8a8380; border-bottom: 1px solid #ece7e3; }
.f-chart td { padding: 5px 14px 5px 0; border-bottom: 1px solid #f4f0ed; }

.f-err { color: var(--red); font-size: 13px; margin: 8px 0 0 30px; display: none; }
.f-q[data-q="name"] .f-err { margin-left: 0; }
.f-q.invalid .f-err { display: block; }
.f-q.invalid .f-input { border-color: #f0b4ab; background: #fff8f7; }
.f-q.invalid .f-opt::before { border-color: #e69a8f; }

.f-submit { background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(60,40,20,.05); }
.f-submit p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.f-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 14px 34px; font-size: 16px; font-weight: 500; cursor: pointer; box-shadow: 0 6px 16px rgba(235,23,0,.28); transition: transform .12s, background .12s, box-shadow .12s; }
.f-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(235,23,0,.32); }
.f-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.f-form-err { color: var(--red) !important; margin: 14px 0 0 !important; font-weight: 500; }
body.fp .footer { border-top: 0; }

@media (max-width: 640px) {
  .f-hero-in { padding: 36px 18px 44px; }
  .f-logo { height: 48px; margin-bottom: 18px; }
  .f-bar-in { padding: 8px 12px; gap: 10px; }
  .f-stepnav { font-size: 0; padding: 4px; gap: 0; }
  .f-stepnav span { font-size: 12px; }
  .f-progress { flex: 1; }
  .f-main { padding: 18px 10px 10px; }
  .f-sec { border-radius: 14px; }
  .f-sec-head { padding: 20px 18px 16px; gap: 12px; }
  .f-grid { grid-template-columns: 1fr; padding: 4px 18px 10px; }
  .f-q.half { grid-column: 1 / -1; }
  .f-ctl, .f-name, .f-hint, .f-err, .f-q > .f-chart { margin-left: 0; }
  .f-name { grid-template-columns: 1fr; }
  .f-opts-grid { grid-template-columns: 1fr 1fr; }
  .f-opts-grid.f-opts-wide { grid-template-columns: 1fr; }
  .f-opt { padding: 9px 0; }
  .f-group { align-items: flex-start; }
  .f-group-lbl { padding-top: 9px; flex-basis: 52px; }
  .f-submit { padding: 22px 18px; }
  .f-btn { width: 100%; justify-content: center; }
}

/* Already-registered popup */
.f-modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(30,20,15,.45); display: grid; place-items: center; padding: 16px; animation: fFade .15s ease; }
@keyframes fFade { from { opacity: 0; } }
.f-modal { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 30px 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: fIn .2s ease; }
.f-modal-icon { width: 54px; height: 54px; border-radius: 50%; background: #fbe9e7; color: var(--red); display: grid; place-items: center; margin: 0 auto 14px; }
.f-modal h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 10px; }
.f-modal p { font-size: 14.5px; color: #4a4643; margin: 0 0 8px; line-height: 1.5; word-break: break-word; }
.f-modal p b { color: var(--ink); }
.f-modal-msg { min-height: 0; font-weight: 500; }
.f-modal-msg.ok { color: #107c10 !important; background: #eef7ee; border-radius: 8px; padding: 10px 12px; margin-top: 12px !important; }
.f-modal-msg.bad { color: var(--red) !important; background: #fff4f2; border-radius: 8px; padding: 10px 12px; margin-top: 12px !important; }
.f-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.f-modal .f-btn { justify-content: center; width: 100%; padding: 13px 20px; font-size: 15px; }
.f-btn-ghost { background: none; border: 0; color: #605e5c; padding: 10px; font-size: 14.5px; cursor: pointer; border-radius: 10px; }
.f-btn-ghost:hover { background: #f4f0ed; color: var(--ink); }
