.signup-page {
  min-height: 100vh;
  background: var(--navy-deep);
  color: #252b35;
}

.signup-shell {
  width: min(100% - 32px, 980px);
  margin: 30px auto;
}

.signup-brand {
  display: block;
  width: min(180px, 42vw);
  margin: 0 auto 16px;
  text-decoration: none;
}

.signup-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.signup-panel {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(9, 41, 74, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(9, 41, 74, .1);
}

.signup-intro {
  padding: 0 0 28px;
  border-bottom: 1px solid #e8e4da;
  margin-bottom: 30px;
}

.signup-kicker {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.signup-intro h1 {
  margin-bottom: 10px;
  color: #ad8942;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
}

.signup-intro > p:last-child {
  margin: 0;
  color: #505967;
  font-size: 16px;
  line-height: 1.55;
}

.member-form {
  display: grid;
  gap: 22px;
}

.form-field[hidden], .form-note[hidden] { display: none; }
.form-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-field > label,
.form-field legend {
  color: #252b35;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.form-field legend { margin-bottom: 14px; }
.form-field > label span { color: #a56a13; }

.form-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c9cbd0;
  border-radius: 7px;
  background: #fff;
  color: #252b35;
  font: 400 15px/1.5 var(--sans);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(217, 151, 39, .2);
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-size: 15px;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}

.check-list .choice {
  align-items: flex-start;
  line-height: 1.4;
}

.check-list .choice input { flex: 0 0 auto; margin-top: 2px; }
.term-years { color: #626b77; white-space: nowrap; }
.form-select-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-select-row > div { display: grid; gap: 8px; }
.form-select-row label { font-size: 14px; font-weight: 600; }

.form-submit { padding-top: 6px; }
.signup-submit { min-width: 190px; cursor: pointer; }
.form-note { margin: 11px 0 0; color: #586170; font-size: 13px; line-height: 1.5; }
.form-status { min-height: 1.4em; margin: -12px 0 0; color: #8a351f; font-size: 14px; font-weight: 600; }
.form-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 22px;
  border-top: 1px solid #e8e4da;
  margin-top: 24px;
}
.form-export .form-note { flex: 1 1 260px; margin: 0; }
.form-export button { cursor: pointer; }
.signup-back { display: inline-block; margin-top: 28px; color: var(--ink); font-size: 14px; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 600px) {
  .signup-shell { width: min(100% - 20px, 980px); margin: 12px auto; }
  .signup-brand { width: min(150px, 40vw); margin: 4px auto 12px; }
  .signup-panel { padding: 24px 18px; border-radius: 8px; }
  .signup-intro { padding: 0 0 22px; }
  .member-form { gap: 19px; }
  .form-field > label, .form-field legend { font-size: 14px; }
  .check-list, .form-select-row { grid-template-columns: 1fr; }
  .form-export { align-items: stretch; }
  .form-export button { width: 100%; }
  .signup-submit { width: 100%; }
}

.involvement-dialog { max-width: 460px; width: calc(100% - 40px); padding: 28px; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.involvement-dialog::backdrop { background: rgba(10, 20, 40, .55); }
.involvement-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.involvement-dialog p { margin: 0 0 20px; color: #3b4556; font-size: 16px; line-height: 1.6; }

.field-hint { margin: 0 0 8px; color: #586170; font-size: 14px; line-height: 1.5; }
.reference-intro { margin-bottom: 18px; }
.reference-intro strong { color: #1a2233; }
fieldset.application, fieldset.reference-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
fieldset.application[hidden] { display: none; }
.reference-group .form-field { margin-bottom: 20px; }
.apply-toggle .choice { font-weight: 600; }
