/* ─────────────────────────────────────────────────────────────
   /register — four steps, on the member-card direction (feature 023, rev 2).
   Tokens come from landing.css (:root). Scoped to rp-* so the older auth
   pages keep their own .auth-* / .register-* rules.
   ───────────────────────────────────────────────────────────── */

.rp-page{background:var(--bf-paper);color:var(--bf-ink)}

.rp-wrap{--ekklesia-switch-on:var(--bf-red);--ekklesia-switch-off:rgba(36,20,19,.28);max-width:1120px;margin-inline:auto;padding-inline:clamp(1.1rem,3vw,1.6rem)}

.rp-split{
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(2rem,5vw,4rem);
  padding-top:calc(var(--lp-nav-height, 72px) + clamp(1.6rem, 3vw, 2.4rem));
  padding-bottom:clamp(2rem,4vw,3rem);
  align-items:start;
}
/* width:100% + padding must stay inside the column */
.rp-split,.rp-split *,.rp-split *::before,.rp-split *::after{box-sizing:border-box}

/* ── the rail: the page's voice and the four steps ── */
.rp-voice{position:sticky;top:calc(var(--lp-nav-height, 72px) + 1.8rem);align-self:start}
.rp-h1{
  margin:0;font-family:"Fraunces",Georgia,serif;font-weight:600;
  font-size:clamp(2.4rem,4.6vw,4.2rem);line-height:.98;letter-spacing:-.03em;color:var(--bf-ink);
  max-width:13ch;
}
.rp-lede{margin:1rem 0 0;max-width:36ch;color:var(--bf-ink);font-size:1.04rem}

.rp-steps{list-style:none;margin:1.5rem 0 0;padding:0;display:flex;flex-direction:column;gap:.8rem}
.rp-steps li{display:flex;gap:.7rem;align-items:center;color:var(--bf-muted);font-size:.98rem}
.rp-steps .n{
  width:1.7rem;height:1.7rem;border-radius:50%;display:grid;place-items:center;
  background:var(--bf-sand);font-size:.82rem;flex:0 0 auto;font-variant-numeric:tabular-nums;
}
.rp-steps li.on{color:var(--bf-ink)}
.rp-steps li.on .n{background:var(--bf-red);color:#fff}
.rp-steps li.done .n{background:var(--bf-ink);color:var(--bf-paper)}

.rp-print{margin:1.8rem 0 0;max-width:380px}
.rp-print img{width:100%;height:clamp(200px,24vh,260px);object-fit:cover;border-radius:22px;animation:rp-drift 30s ease-in-out infinite alternate}
.rp-print figcaption{margin-top:.45rem;font-size:.9rem;color:var(--bf-muted)}

/* ── one pane per step ── */
.rp-card{background:var(--bf-white);border-radius:26px;padding:clamp(1.4rem,3vw,2.4rem)}
.rp-step-title{
  margin:0;font-family:"Fraunces",Georgia,serif;font-weight:600;
  font-size:clamp(1.9rem,3.4vw,2.9rem);line-height:1;letter-spacing:-.025em;color:var(--bf-ink);
}
.rp-step-lede{margin:.7rem 0 0;color:var(--bf-muted);font-size:.98rem;max-width:46ch}

.rp-fields{margin-top:1.5rem}
.rp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.1rem}
.rp-field label{display:block;font-size:1rem;font-weight:500;margin-bottom:.45rem;color:var(--bf-ink)}
.rp-field .req{color:var(--bf-red)}
.rp-field .optional{color:var(--bf-muted);font-weight:400}

/* Direct inputs only: never reach inside PhoneInput, whose inner input and country
   button are a composite owned by the component. */
.rp-field > input{
  width:100%;height:48px;padding:0 .9rem;font:inherit;font-size:1rem;color:var(--bf-ink);
  background:transparent;border:1px solid rgba(36,20,19,.22);border-radius:12px;
}
.rp-field > input:focus{outline:2px solid var(--bf-red);outline-offset:1px;border-color:transparent}
.rp-field > input::placeholder{color:#8a7b76}
.rp-field .validation-message{display:block;margin-top:.35rem;font-size:.9rem;color:var(--bf-red)}

/* the phone component: size only, keep its own radii and seam */
.rp-field .phone-input-group{width:100%}
.rp-field .phone-input-group .form-control{
  height:48px;font-size:1rem;border-color:rgba(36,20,19,.22);background:transparent;color:var(--bf-ink);
}
.rp-field .phone-input-group .form-control:focus{outline:2px solid var(--bf-red);outline-offset:1px;border-color:transparent}

.rp-password-head{display:flex;align-items:baseline;gap:.6rem}
.rp-toggle{
  background:none;border:0;padding:0;font:inherit;font-size:.9rem;font-weight:600;
  color:var(--bf-red);cursor:pointer;
}
.rp-toggle:hover{text-decoration:underline}

/* the requirement list: live, and green once met */
.rp-checks{display:grid;grid-template-columns:1fr 1fr;gap:.4rem 1.1rem;margin:1rem 0 0;padding:0;list-style:none;font-size:.94rem;color:var(--bf-muted)}
.rp-checks li{display:flex;gap:.45rem;align-items:center}
.rp-checks .dot{width:.6rem;height:.6rem;border-radius:50%;background:rgba(36,20,19,.22);flex:0 0 auto}
.rp-checks li.is-met{color:#2f6b46}
.rp-checks li.is-met .dot{background:#2f6b46}

/* ── review: blocks, label above value, left aligned ── */
.rp-review{margin:1.5rem 0 0;display:flex;flex-direction:column;gap:1.7rem}
.rp-rv-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.55rem}
.rp-rv-head > span{font-family:"Fraunces",Georgia,serif;font-size:1.15rem;letter-spacing:-.01em;color:var(--bf-ink)}
.rp-rv-list{margin:0;display:flex;flex-direction:column;gap:.65rem}
.rp-rv-list dt{font-size:.85rem;color:var(--bf-muted)}
.rp-rv-list dd{margin:.1rem 0 0;font-size:1rem;color:var(--bf-ink);overflow-wrap:anywhere}

.rp-terms{margin-top:1.9rem}
.rp-terms p{margin:.65rem 0 0;font-size:.92rem;color:var(--bf-muted)}
.rp-terms a{color:var(--bf-red)}
.rp-terms .rp-error{margin:.7rem 0 0}

.rp-error{
  display:flex;gap:.5rem;align-items:flex-start;margin:0 0 1.2rem;padding:.8rem 1rem;
  border:1px solid rgba(125,12,20,.3);border-radius:12px;background:rgba(125,12,20,.05);
  color:var(--bf-red-deep);font-size:.95rem;
}

.rp-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:2rem}
.rp-actions .right{display:flex;gap:.6rem}
.rp-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  height:50px;padding:0 1.5rem;border-radius:999px;border:1px solid transparent;
  font:inherit;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:none;
  background:var(--bf-red);color:#fff;transition:transform .18s ease,background .18s ease;
}
.rp-btn:hover{background:var(--bf-red-deep);transform:translateY(-2px)}
.rp-btn:active{transform:translateY(0) scale(.99)}
.rp-btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.rp-btn.ghost{background:transparent;border-color:rgba(36,20,19,.28);color:var(--bf-ink)}
.rp-btn.ghost:hover{background:rgba(36,20,19,.05)}
.rp-spinner{width:16px;height:16px;border-width:2px}

/* outside the card: these must not move as the steps change */
.rp-signin{margin:1rem 0 0;font-size:.95rem;color:var(--bf-muted)}
.rp-signin + .rp-signin{margin-top:.45rem}
.rp-signin a{color:var(--bf-red);text-decoration:none;font-weight:600}

.rp-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:clamp(2.2rem,4vw,3.2rem)}
.rp-strip figure{margin:0}
.rp-strip img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;animation:rp-drift 32s ease-in-out infinite alternate}
.rp-strip figcaption{margin-top:.45rem;font-size:.9rem;color:var(--bf-muted)}

@keyframes rp-drift{from{transform:scale(1)}to{transform:scale(1.045)}}
@keyframes rp-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.rp-voice,.rp-card{animation:rp-rise .6s cubic-bezier(.2,.7,.2,1) both}
.rp-card{animation-delay:.07s}

@media (max-width:900px){
  .rp-split{grid-template-columns:1fr}
  .rp-voice{position:static}
  .rp-print{display:none}
  .rp-steps{flex-direction:row;flex-wrap:wrap;gap:.6rem 1rem}
  .rp-steps li span:last-child{display:none}
  .rp-h1{max-width:none;font-size:clamp(2.2rem,8vw,3rem)}
}
@media (max-width:560px){
  .rp-grid2,.rp-checks,.rp-strip{grid-template-columns:1fr}
  .rp-actions{flex-direction:column-reverse;align-items:stretch}
  .rp-actions .rp-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .rp-btn{transition:none}
  .rp-btn:hover{transform:none}
  .rp-print img,.rp-strip img,.rp-voice,.rp-card{animation:none}
}

/* ── the success state (/register-success) ── */
.rp-ok{width:64px;height:64px;border-radius:50%;background:#e6efe8;display:grid;place-items:center;margin:0 0 1.1rem}
.rp-ok svg{width:28px;height:28px;stroke:#2f6b46;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.rp-success > p{margin:.8rem 0 0;max-width:44ch;color:var(--bf-ink)}
.rp-success-note{display:flex;gap:.6rem;align-items:flex-start;margin:1.3rem 0 0;padding:.85rem 1rem;background:rgba(233,225,212,.55);border-radius:12px;font-size:.95rem;color:var(--bf-ink)}
.rp-success-note i{color:var(--bf-muted)}
.rp-dl{margin-top:1.6rem}
.rp-dl > p{margin:0 0 .6rem;font-size:.95rem;color:var(--bf-muted)}
.rp-dl-row{display:flex;gap:.7rem;flex-wrap:wrap}
.rp-dl-btn{
  display:inline-flex;align-items:center;gap:.6rem;min-width:190px;height:56px;padding:0 1.1rem;
  border-radius:12px;background:var(--bf-ink);color:#fff;text-decoration:none;border:1px solid var(--bf-ink);
}
.rp-dl-copy{display:flex;flex-direction:column;gap:.15rem}
.rp-dl-kicker{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#d8cec6}
.rp-dl-name{font-size:.98rem;font-weight:600;line-height:1.1}
.rp-dl-btn[aria-disabled=true]{background:transparent;color:var(--bf-ink);border-color:rgba(36,20,19,.22);cursor:default}
.rp-dl-btn[aria-disabled=true] .rp-dl-kicker{color:var(--bf-muted)}
/* completed steps read as done, in green, only on the success page's rail */
.rp-steps--done .n{background:#2f6b46;color:#fff}
.rp-back{margin:1rem 0 0;font-size:.95rem;color:var(--bf-muted)}
.rp-back a{color:var(--bf-red);text-decoration:none;font-weight:600}
@media (max-width:560px){.rp-dl-row{flex-direction:column}.rp-dl-btn{width:100%}}
