/* Membership form page — extends style.css (form-card, field, row, check, btn) */

.memform-page { background: var(--black); padding: 140px 0 clamp(70px, 10vw, 120px); min-height: 100vh; }
.memform-intro { margin-bottom: clamp(30px, 5vw, 50px); }
.memform-intro h1 { font-size: clamp(3.6rem, 9vw, 7rem); margin: 10px 0 18px; }
.memform-lede { max-width: 60ch; font-size: 1.05rem; color: var(--white); }
.memform-blank { margin-top: 14px; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.memform-blank a { color: var(--white); font-weight: 700; }

.memform-card { position: relative; }
.memform-section { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.memform-section > legend {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.55rem; line-height: 1.1; padding: 0; margin-bottom: 18px; width: 100%;
  border-bottom: 3px solid var(--black); padding-bottom: 10px; display: flex; align-items: center; gap: 12px;
}
.memform-no {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  background: var(--blue); color: var(--white); font-size: 1.1rem; transform: skewX(-12deg);
}
.memform-no { transform: skewX(-12deg); }
.memform-help { font-size: .92rem; color: var(--grey); margin: 0 0 16px; }
.memform-yes { border-left: 8px solid var(--blue); padding: 4px 0 0 16px; margin-top: 6px; }
.memform-yes .memform-help { color: var(--black); }

.field-narrow { flex: 0 0 150px; }
.field-q { display: block; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; margin-bottom: 6px; }
.field select { min-height: 48px; }

/* yes / no and single-choice radios */
.yn { padding: 14px 0; border-bottom: 1px solid var(--line-on-light); }
.yn:last-child { border-bottom: 0; }
.yn-q { font-size: 1rem; margin-bottom: 10px; }
.yn-opts, .sig-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.yn-opts label, .memform-checks label {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--black); padding: 8px 16px; cursor: pointer; font-weight: 600; user-select: none;
}
.yn-opts label:has(input:checked), .memform-checks label:has(input:checked) { background: var(--black); color: var(--white); }
.yn-opts input, .memform-checks input, .check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.yn-opts input, .memform-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yn-opts label:has(input:focus-visible), .memform-checks label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.memform-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

/* policies scroll box */
.memform-policies {
  max-height: 320px; overflow-y: auto; border: 2px solid var(--black); padding: 18px 20px; margin-bottom: 18px;
  font-size: .92rem; line-height: 1.55; background: #f5f6fa;
}
.memform-policies p { margin-bottom: 10px; }

/* checkbox rows (acknowledgements) */
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; font-size: .98rem; }
.check input { flex: 0 0 auto; margin-top: 3px; }

/* signatures */
.sigpad {
  display: block; width: 100%; height: auto; aspect-ratio: 600 / 130; touch-action: none;
  background: var(--white); border: 2px solid var(--black); cursor: crosshair;
}
.sig-actions { justify-content: space-between; margin-top: 8px; }
.sig-actions .memform-help { margin: 0; }
.link-btn { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }

.memform-card .form-note { margin-bottom: 0; }
.memform-card .btn-wide { width: 100%; margin-inline: 0; }
.memform-card .form-done .btn { margin-left: 0; }

.nav-back { color: var(--white); font-weight: 700; text-decoration: none; letter-spacing: .06em; }
.nav-back:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .field-narrow { flex: 1 1 100%; }
  .memform-section > legend { font-size: 1.3rem; }
  .nav-back { font-size: .9rem; }
}
