/* Join, Contact (dark split layout) and Apply (light long form) */

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); min-height: calc(100vh - 64px); }
.split__side { padding: clamp(36px, 6vw, 80px) clamp(16px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; border-right: 3px solid var(--ink); }
.split__side--red { background: var(--red); color: var(--ink); --rule: var(--ink); }
.split__side--blue { background: var(--blue); color: var(--white); --rule: var(--white); }
.split__title { margin: 0; font-weight: 900; font-stretch: 70%; font-size: clamp(44px, 6vw, 112px); line-height: .86; text-transform: uppercase; text-wrap: balance; }
.split__sub { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; max-width: 480px; text-wrap: pretty; }
.split__main { padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px); background: var(--ink); color: var(--paper); }

.numbered { list-style: none; margin: auto 0 0; padding: 0; border-top: 3px solid var(--rule); max-width: 520px; }
.numbered li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 2px solid var(--rule); font-size: 16px; line-height: 1.4; font-weight: 600; }
.numbered__n { font-weight: 900; font-stretch: 62%; font-size: 36px; line-height: .8; flex: none; width: 40px; }

.routes { display: flex; flex-direction: column; margin-top: auto; border-top: 3px solid var(--rule); max-width: 520px; }
.routes__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--rule); text-decoration: none; color: inherit; }
.routes__item:hover { color: var(--ink); }
.routes__item > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.routes__title { font-weight: 900; font-stretch: 80%; font-size: 20px; text-transform: uppercase; line-height: 1; }
.routes__body { font-size: 15px; line-height: 1.4; font-weight: 500; }
.routes__arrow { font-weight: 900; font-size: 20px; flex: none; }

/* ---------- Dark form ---------- */
.dark-form { display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.dark-form__group { display: flex; flex-direction: column; gap: 8px; }
.dark-form__group > legend { margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.dark-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dark-field--wide { grid-column: 1 / -1; }
.dark-field__row { display: flex; justify-content: space-between; gap: 10px; }
.input {
  width: 100%; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); padding: 13px 14px;
  font-family: var(--sans); font-size: 17px; font-weight: 400; text-transform: none; outline-color: var(--red);
}
textarea.input { font-size: 16px; line-height: 1.4; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { font-family: var(--sans); text-transform: none; font-weight: 600; color: var(--err-light); font-size: 13px; }
.field-error--inline { font-weight: 500; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-row--tight { gap: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; border: 2px solid var(--paper); padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--paper); }
.choice input:checked + span { background: var(--paper); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.choice--block { flex: 1 1 180px; }
.choice--block span { padding: 14px 16px; font-weight: 900; font-size: 16px; text-transform: uppercase; }
.choice--block input:checked + span { background: var(--red); border-color: var(--red); color: var(--ink); }
.choice--pill span { border-radius: 999px; }

.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.act { position: relative; cursor: pointer; }
.act input { position: absolute; opacity: 0; pointer-events: none; }
.act > span { height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border: 2px solid var(--line); color: var(--paper); }
.act strong { font-weight: 800; font-size: 15px; }
.act small { font-size: 12.5px; line-height: 1.35; opacity: .85; }
.act input:checked + span { border-color: var(--red); background: var(--red); color: var(--ink); }
.act input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.vol-only { display: flex; flex-direction: column; gap: 22px; border-top: 2px solid var(--line); padding-top: 22px; }
.label-news { display: none; }
.join-form:has(input[name="intent"][value="news"]:checked) .vol-only,
.join-form:has(input[name="intent"][value="news"]:checked) .vol-only-inline,
.join-form:has(input[name="intent"][value="news"]:checked) .label-vol { display: none; }
.join-form:has(input[name="intent"][value="news"]:checked) .label-news { display: inline; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--red); }
.dark-form .btn--xl { padding: 18px; font-size: 19px; }
.fine-print { font-size: 13px; color: var(--muted); }
.fine-print--light { margin: 0; line-height: 1.45; }

.thanks { display: flex; flex-direction: column; gap: 16px; max-width: 560px; padding-top: clamp(0px, 6vh, 80px); }
.thanks__title { margin: 0; font-weight: 900; font-stretch: 70%; font-size: clamp(56px, 8vw, 110px); line-height: .86; text-transform: uppercase; color: var(--red); }
.thanks__body { margin: 0; font-size: 19px; line-height: 1.45; }
.thanks__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Apply ---------- */
.apply-progress { display: flex; align-items: center; gap: 14px; }
.apply-progress__label { font-family: var(--mono); font-size: 12px; font-weight: 700; }
.apply-progress__track { width: clamp(60px, 14vw, 160px); height: 8px; background: var(--charcoal); position: relative; }
.apply-progress__bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); transition: width .2s; }

.apply-head {
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px); border-bottom: 3px solid var(--ink);
  display: flex; flex-direction: column; gap: 18px; max-width: 1280px; margin: 0 auto;
}
.apply-head .display { font-stretch: 70%; text-wrap: balance; }
.apply-head p { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; text-wrap: pretty; }

.apply-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; }
.apply-alert { margin-top: 28px; background: var(--red); color: var(--ink); border: 3px solid var(--ink); padding: 16px 20px; font-weight: 700; font-size: 16px; }
.apply-step {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 3px solid var(--ink);
}
.apply-step--last { border-bottom: 0; }
.apply-step__intro { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.apply-step__num { font-weight: 900; font-stretch: 62%; font-size: 64px; line-height: .8; color: var(--red); }
.apply-step__intro h2 { margin: 0; font-weight: 900; font-stretch: 75%; font-size: 30px; line-height: 1; text-transform: uppercase; }
.apply-step__intro p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--line); }
.apply-step__fields { grid-column: span 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 20px; align-content: start; }
.apply-step__fields--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.apply-step__fields--stack { display: flex; flex-direction: column; gap: 18px; }
.apply-step__fields--photo { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 600px) { .apply-step__fields { grid-column: auto; } }

.lf { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; }
.lf--wide { grid-column: 1 / -1; gap: 10px; }
.lf > legend { margin-bottom: 10px; }
.lf__row { display: flex; justify-content: space-between; gap: 10px; }
.lf__hint { font-weight: 500; color: var(--line); }
.lf__input {
  width: 100%; background: var(--white); border: 2px solid var(--ink); padding: 12px 14px; font-size: 16px; color: var(--ink); outline: none;
}
input[type="date"].lf__input { padding: 11px 14px; }
textarea.lf__input { line-height: 1.45; resize: vertical; }
.lf__input:focus { border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }
.lf__input[aria-invalid="true"] { border-color: var(--red); }
.lf__error { color: var(--err-dark); font-size: 13px; font-weight: 500; }
.lf__error--strong { font-weight: 700; }
.counter--light { color: var(--gray); }
.counter--light.is-short { color: var(--err-dark); }

.choice--light span { border-color: var(--ink); color: var(--ink); background: var(--white); }
.choice--light input:checked + span { background: var(--ink); color: var(--paper); }
.choice--caps span { padding: 11px 18px; font-weight: 800; font-size: 15px; text-transform: uppercase; }
.choice--blue input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.choice input:disabled + span { opacity: .4; cursor: not-allowed; }

.dropzone {
  aspect-ratio: 4 / 5; width: 100%; border: 3px dashed var(--ink); background: var(--white); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; padding: 12px;
}
.dropzone:hover { border-color: var(--blue); }
.dropzone--error { border-color: var(--red); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dropzone__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone__plus { font-weight: 900; font-size: 28px; line-height: 1; }
.dropzone__label { font-weight: 700; font-size: 14px; }
.dropzone__hint { font-size: 12px; color: var(--line); }
.apply-step__photo-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.file-name { font-family: var(--mono); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:empty, .lf__error:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; font-weight: 400; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--blue); }
.check--dark input { accent-color: var(--red); }

.prefixed { display: flex; border: 2px solid var(--ink); background: var(--white); }
.prefixed__pre { flex: none; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 700; display: flex; align-items: center; padding: 0 10px; }
.prefixed input { flex: 1; min-width: 0; border: 0; padding: 12px; font-size: 16px; color: var(--ink); outline: none; background: transparent; }
.prefixed:focus-within { border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }

.attest { grid-column: 1 / -1; background: var(--ink); color: var(--paper); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.attest .check { line-height: 1.45; }
.attest__sig { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; max-width: 420px; }
.attest__sig input { width: 100%; background: var(--paper); border: 2px solid var(--paper); padding: 12px 14px; font-size: 18px; font-style: italic; color: var(--ink); outline: none; }
.attest__sig input:focus, .attest__sig input[aria-invalid="true"] { border-color: var(--red); }

.apply-submit { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.apply-submit > span { font-size: 14px; color: var(--line); max-width: 420px; line-height: 1.4; }
.btn-shadow {
  background: var(--red); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 30px; font-weight: 900; font-size: 18px; text-transform: uppercase; cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.btn-shadow:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(4px, 4px); }

.apply-done {
  background: var(--blue); color: var(--white); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin-top: clamp(40px, 6vw, 80px);
}
.apply-done h2 { margin: 0; font-weight: 900; font-stretch: 70%; font-size: clamp(40px, 6vw, 80px); line-height: .88; text-transform: uppercase; }
.apply-done p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 560px; }
.apply-done__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.apply-done .btn--outline-light { color: var(--white); }
