.join-intro { margin-bottom: 40px; }
.join-intro .intro-copy { font-size: clamp(16px, 1.6vw, 19px); }
.join-form { max-width: 780px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.join-legend-note { margin: 0 0 8px; color: var(--ink-3); font-size: 13px; }
.join-req { color: #b42318; font-weight: 700; }
[data-theme="dark"] .join-req { color: #ff9b8f; }
.join-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.join-step { padding: 20px 0 8px; }
.join-step h2 { margin: 0 0 20px; font-size: clamp(24px, 2.2vw, 28px); }
.join-step h2:focus { outline: none; }
.join-sub { margin: 32px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font: 650 17px/1.3 var(--sans); color: var(--ink); }
.join-section-note { margin: -6px 0 16px; color: var(--ink-3); font-size: 14px; }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.join-step > .join-field, .join-step > .join-fieldset, .join-step > .join-grid { margin-top: 20px; }
.join-step > h2 + .join-field, .join-step > h2 + .join-grid { margin-top: 0; }
.join-step > .join-sub + .join-field, .join-step > .join-sub + .join-grid, .join-step > .join-section-note + .join-grid { margin-top: 0; }
.join-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.join-field label, .join-label, .join-fieldset legend { color: var(--ink); font-size: 14px; font-weight: 650; }
.join-field input, .join-field select, .join-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
.join-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.join-field input::placeholder, .join-field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.join-field input:focus-visible, .join-field select:focus-visible, .join-field textarea:focus-visible { outline: none; border-color: var(--pega); box-shadow: 0 0 0 3px var(--soft-blue); }
.join-field [aria-invalid="true"] { border-color: #b42318; }
[data-theme="dark"] .join-field [aria-invalid="true"] { border-color: #ff9b8f; }
.join-hint { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.join-counter { margin: 0; color: var(--ink-3); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.join-counter.is-near { color: var(--ink); font-weight: 650; }
.join-field-error { margin: 2px 0 0; color: #b42318; font-size: 13px; font-weight: 600; }
[data-theme="dark"] .join-field-error { color: #ff9b8f; }
.join-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.join-fieldset legend { padding: 0; margin-bottom: 8px; }
.join-fieldset .join-hint { margin: -2px 0 10px; }
.join-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.join-chip { position: relative; display: inline-flex; cursor: pointer; }
.join-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.join-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.join-chip:hover span { border-color: var(--pega); }
.join-chip input:checked + span { border-color: var(--pega); background: var(--soft-blue); color: var(--ink); }
.join-chip input[type="checkbox"]:checked + span::before { content: ""; width: 12px; height: 7px; margin-top: -3px; border-left: 2px solid var(--pega); border-bottom: 2px solid var(--pega); transform: rotate(-45deg); }
.join-chip input[type="radio"] + span::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink-3); border-radius: 50%; box-sizing: border-box; }
.join-chip input[type="radio"]:checked + span::before { border-color: var(--pega); background: var(--pega); box-shadow: inset 0 0 0 2px var(--soft-blue); }
.join-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.join-fieldset[aria-invalid="true"] .join-chip span { border-color: #b42318; }
[data-theme="dark"] .join-fieldset[aria-invalid="true"] .join-chip span { border-color: #ff9b8f; }
.join-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-consent { padding: 26px 0 6px; }
.join-consent-label { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; cursor: pointer; }
.join-consent-label input { flex-shrink: 0; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pega); }
.join-consent-label input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.join-consent .join-field-error { margin-left: 34px; }
.join-form-error { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #f1b5ad; border-radius: 14px; background: #fdecea; color: #7a1a10; font-size: 15px; }
.join-form-error a { color: inherit; font-weight: 700; }
[data-theme="dark"] .join-form-error { border-color: #7a2a22; background: #3a1714; color: #ffd2cc; }
.join-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.join-submit { flex: 1 1 220px; min-height: 52px; font-size: 16px; }
.join-back { min-height: 52px; padding-inline: 26px; }
.join-actions:has(.join-back[hidden]) .join-submit { flex-basis: 100%; }
.join-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.join-check-wrap { display: inline-block; margin-bottom: 18px; line-height: 0; }
.join-check { display: block; }
.join-check-circle { fill: #d9f5e6; stroke: #1a9a55; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 0; animation: join-circle .6s cubic-bezier(.65, 0, .45, 1) both; }
.join-check-mark { stroke: #116837; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; animation: join-mark .4s .5s cubic-bezier(.65, 0, .45, 1) both; }
[data-theme="dark"] .join-check-circle { fill: #123b25; stroke: #52d68a; }
[data-theme="dark"] .join-check-mark { stroke: #8be9b3; }
@keyframes join-circle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes join-mark { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (max-width: 680px) {
  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .join-form { padding: 20px 18px; border-radius: 20px; }
  .join-stage-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .join-step-count { display: block; }
  .join-info { grid-template-columns: minmax(0, 1fr); }
  .join-drop { flex-direction: column; text-align: center; }
  .join-drop-actions { justify-content: center; }
  .join-review-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .join-back { flex: 1 1 100px; }
}
@media (max-width: 390px) {
  .join-photo-preview { width: 104px; height: 104px; }
  .join-chip span { padding: 9px 13px; font-size: 13px; }
  .join-form { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .join-check-circle, .join-check-mark, .join-stage.is-success .join-stage-dot { animation: none !important; stroke-dashoffset: 0; }
}

.join-lead { max-width: 650px; margin: 0 auto 12px; color: var(--ink); font: 400 clamp(20px, 2.2vw, 26px)/1.3 var(--serif); }
.join-wrap { max-width: 780px; margin: 0 auto; }
.join-wrap > .join-form { max-width: none; }
.join-stages { display: flex; margin: 0; padding: 0; list-style: none; }
.join-stage { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.join-stage + .join-stage::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.join-stage.is-done + .join-stage::before, .join-stage.is-done + .join-stage.is-current::before, .join-stage.is-done + .join-stage.is-success::before, .join-stage.is-success::before { background: var(--pega); }
.join-stage.is-success::before { background: #1a9a55; }
.join-stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-3); font-size: 14px; font-weight: 700; }
.join-stage.is-done .join-stage-dot { border-color: var(--pega); background: var(--pega); color: var(--surface); }
.join-stage.is-current .join-stage-dot { border-color: var(--pega); background: var(--soft-blue); color: var(--pega); box-shadow: 0 0 0 4px var(--soft-blue); }
.join-stage.is-success .join-stage-dot { border-color: #1a9a55; background: #1a9a55; color: #fff; animation: join-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.join-stage-label { padding: 0 4px; color: var(--ink-3); font-size: 13px; font-weight: 600; line-height: 1.3; }
.join-stage.is-current .join-stage-label { color: var(--ink); font-weight: 700; }
.join-stage.is-success .join-stage-label { color: #116837; }
[data-theme="dark"] .join-stage.is-success .join-stage-label { color: #8be9b3; }
[data-theme="dark"] .join-stage.is-success .join-stage-dot { border-color: #52d68a; background: #52d68a; color: #0f2a1b; }
.join-step-count { display: none; margin: 12px 0 0; color: var(--ink); font-size: 14px; font-weight: 650; text-align: center; }
@keyframes join-pop { from { transform: scale(.4); } to { transform: scale(1); } }
.join-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.join-info-card { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.join-info-card h2 { margin: 0 0 12px; font-size: 24px; }
.join-info-card .check-list { margin: 0; }
.join-how { display: grid; gap: 11px; margin: 0; padding-left: 22px; color: var(--ink-2); font-size: 14px; }
.join-how li::marker { color: var(--pega); font-weight: 700; }
.join-drop { display: flex; align-items: center; gap: 22px; padding: 20px; border: 2px dashed var(--line); border-radius: 18px; background: var(--paper); transition: border-color .18s ease, background .18s ease; }
.join-drop.is-dragover { border-color: var(--pega); background: var(--soft-blue); }
.join-drop.is-busy { opacity: .7; }
.join-drop.has-photo { border-style: solid; }
.join-photo-preview { flex-shrink: 0; display: grid; place-items: center; width: 120px; height: 120px; overflow: hidden; border: 3px solid var(--line); border-radius: 50%; background: var(--tint); color: var(--ink-3); }
.join-drop.has-photo .join-photo-preview { border-color: var(--pega); }
.join-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.join-drop-body { min-width: 0; }
.join-drop-text { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.join-drop.has-photo .join-drop-text { display: none; }
.join-drop-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.join-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.join-file-input:focus-visible + .join-file-button { outline: 3px solid var(--focus); outline-offset: 3px; }
.join-file-button { cursor: pointer; font-size: 15px; }
.join-remove { font-size: 15px; }
.join-drop-body .join-hint { margin-top: 10px; }
.join-photo [aria-invalid="true"] ~ .join-file-button { border-color: #b42318; }
.join-photo .join-drop:has([aria-invalid="true"]) { border-color: #b42318; }
[data-theme="dark"] .join-photo .join-drop:has([aria-invalid="true"]) { border-color: #ff9b8f; }
.join-review { display: grid; gap: 14px; }
.join-review-section { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.join-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.join-review-head h4 { margin: 0; font-size: 16px; }
.join-edit { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--pega); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.join-edit:hover { color: var(--pega-hover); }
.join-review dl { margin: 0; }
.join-review-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.join-review-row:first-child { border-top: 0; }
.join-review-row dt { color: var(--ink-3); font-weight: 600; }
.join-review-row dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.join-review-long { display: block; white-space: pre-wrap; }
.join-review-empty { color: var(--ink-3); font-style: italic; }
.join-review-photo { display: block; width: 96px; height: 96px; object-fit: cover; border: 3px solid var(--pega); border-radius: 50%; }
.join-confirmation { margin-top: 28px; }
