/* Membership registration page (loaded only there), on top of site.css and pioneer.css. */
.join-hero { padding: 5.5rem 0 10.5rem; }
.join-main { background: linear-gradient(#fbf8fd, #fff 40%); }

.jn-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.2rem; align-items: start; margin-top: -8rem; position: relative; z-index: 2; }
.jn-card { background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: 0 24px 60px rgba(40, 20, 70, .14); border: 1px solid #eee7f5; }
.jn-step { border: 0; padding: 0 0 1.6rem; margin: 0 0 1.6rem; border-bottom: 1px dashed #e4dcef; }
.jn-step legend { display: flex; align-items: center; gap: .7rem; font: 700 1.22rem var(--display); color: var(--ink); margin-bottom: 1rem; padding: 0; }
.jn-step legend em { font: 400 .9rem var(--body); color: var(--ink-soft); }
.jn-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 .95rem var(--display); }

.jn-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.jn-f.full { grid-column: 1 / -1; }
.jn-f label, .jn-label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.jn-f small { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: .3rem; }
.jn-f input, .jn-f select, .jn-f textarea { width: 100%; padding: .8rem .95rem; border: 1px solid #d5cce2; border-radius: 12px; font: inherit; color: var(--ink); background: #fdfcfe; transition: border-color .2s, box-shadow .2s; }
.jn-f input:focus, .jn-f select:focus, .jn-f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); background: #fff; }
.jn-card .err { color: #b3261e; font-size: .88rem; margin-top: .35rem; }

.jn-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.jn-pills label { position: relative; cursor: pointer; margin: 0; }
.jn-pills input { position: absolute; opacity: 0; }
.jn-pills span { display: inline-block; padding: .55rem 1.1rem; border: 1px solid #d5cce2; border-radius: 99px; font-weight: 600; font-size: .95rem; background: #fff; transition: all .2s; }
.jn-pills input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.jn-pills input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 40%, #fff); outline-offset: 2px; }

.jn-ministries { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem; }
.jn-min { position: relative; display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border: 1px solid #e2d9ee; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; line-height: 1.25; transition: border-color .2s, background .2s; }
.jn-min input { position: absolute; opacity: 0; }
.jn-min-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.jn-min-icon .icon { width: 18px; height: 18px; }
.jn-min:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); box-shadow: 0 0 0 1px var(--brand); }
.jn-min:has(input:checked) .jn-min-icon { background: var(--brand); color: #fff; }
.jn-min:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 40%, #fff); outline-offset: 2px; }

.jn-consent { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: #faf7fd; border: 1px solid #eee7f5; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.jn-consent input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); }
.jn-send { width: 100%; justify-content: center; padding: 1rem; font-size: 1.08rem; border-radius: 14px; margin-top: 1.2rem; }

.jn-side { position: sticky; top: 1.5rem; display: grid; gap: 1.2rem; }
.jn-journey { border-radius: 22px; padding: 1.9rem 1.7rem; color: #fff; background: radial-gradient(22rem 14rem at 100% 0, rgba(255, 214, 160, .3), transparent 70%), linear-gradient(155deg, var(--brand), var(--deep)); box-shadow: 0 24px 60px rgba(40, 20, 70, .18); }
.jn-kicker { font: 700 .74rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: #ffd2cd; }
.jn-journey ol { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1.1rem; position: relative; }
.jn-journey ol::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: rgba(255,255,255,.18); }
.jn-journey li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: .9rem; font-size: .93rem; color: #e9e2f5; }
.jn-j-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); position: relative; }
.jn-j-icon .icon { width: 19px; height: 19px; }
.jn-journey strong { display: block; color: #fff; font-family: var(--display); }
.jn-verse { margin: 0; padding: 1.3rem 1.4rem; border-radius: 18px; background: #fff; border: 1px solid #eee7f5; border-left: 4px solid var(--accent); font-family: var(--display); font-size: 1.1rem; line-height: 1.45; }
.jn-verse cite { display: block; font: 600 .88rem var(--body); font-style: normal; color: var(--accent); margin-top: .4rem; }
.jn-privacy { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--ink-soft); font-size: .9rem; }
.jn-privacy .icon { flex: none; margin-top: .2rem; color: var(--brand); }

/* After registering */
.jn-done { max-width: 46rem; margin: -8rem auto 0; position: relative; z-index: 2; background: #fff; border-radius: 24px; padding: 2.6rem 2.4rem; text-align: center; box-shadow: 0 24px 60px rgba(40, 20, 70, .14); }
.jn-mark { width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: #e7f6ee; color: #1f7a4d; box-shadow: 0 0 0 10px #f2faf6; animation: jn-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.jn-mark .icon { width: 40px; height: 40px; stroke-width: 2.4; }
@keyframes jn-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.jn-done .lead { margin: 0 auto 1.6rem; }
.jn-next { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; text-align: left; }
.jn-next li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px; background: #faf7fd; border: 1px solid #eee7f5; color: var(--ink-soft); font-size: .95rem; }
.jn-next li > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand); color: #fff; }
.jn-next strong { display: block; color: var(--ink); font-family: var(--display); }
.jn-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; margin: 1.6rem 0 0; font-weight: 600; }


@media (max-width: 1000px) {
  .jn-grid { grid-template-columns: 1fr; }
  .jn-side { position: static; }
}
@media (max-width: 640px) {
  .join-hero { padding: 3.5rem 0 9rem; }
  .jn-card { padding: 1.4rem; border-radius: 18px; }
  .jn-fields { grid-template-columns: 1fr; }
  .jn-done { padding: 2rem 1.3rem; }
}

/* Already a member / new member */
.jn-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.join-hero .btn.light { color: var(--brand); }
.join-hero .lead strong { color: #fff; }
.jn-types { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.jn-type { position: relative; display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.15rem; border: 1px solid #e2d9ee; border-radius: 16px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.jn-type input { position: absolute; opacity: 0; }
.jn-type-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: background .2s, color .2s; }
.jn-type-icon .icon { width: 24px; height: 24px; }
.jn-type strong { display: block; font-family: var(--display); line-height: 1.25; }
.jn-type span span { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: .15rem; }
.jn-type:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); box-shadow: 0 0 0 1px var(--brand); }
.jn-type:has(input:checked) .jn-type-icon { background: var(--brand); color: #fff; }
.jn-type:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 40%, #fff); outline-offset: 2px; }
.jn-existing { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: #faf7fd; border: 1px solid #eee7f5; }
.jn-f .opt { font-weight: 400; color: var(--ink-soft); }
.jn-hint { margin: -.5rem 0 .8rem; color: var(--ink-soft); font-size: .93rem; }
[data-for][hidden] { display: none !important; }
@media (max-width: 640px) { .jn-types { grid-template-columns: 1fr; } }
#register, #joined { scroll-margin-top: 100px; }

.jn-signin { margin: 1rem 0 0; color: #efe9f8; }
.jn-signin a { color: #fff; font-weight: 700; }
