.withdrawal-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid #dfe4ea;
  border-radius: 7px;
  background: #f5f7fa;
}

.withdrawal-form p { margin: 0; }
.withdrawal-field { display: grid; gap: 6px; min-width: 0; font-size: .9rem; font-weight: 700; }
.withdrawal-field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #8997a5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.withdrawal-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.withdrawal-form fieldset { min-width: 0; margin: 0; }
.withdrawal-scopes { border: 0; padding: 4px 0 0; }
.withdrawal-form legend { padding: 0; color: var(--navy); font-weight: 700; }
.withdrawal-scopes > p { margin: 10px 0; }
.withdrawal-groups fieldset { padding: 8px 12px; border: 1px solid #c6d0dc; border-radius: 4px; background: #fff; }
.withdrawal-groups legend { padding: 0 4px; }
.withdrawal-choice {
  display: grid;
  grid-template-columns: 16px minmax(50px, auto) minmax(120px, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 0;
  font-size: .9rem;
  line-height: 1.4;
}

.withdrawal-choice > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }
.withdrawal-choice > label, label.withdrawal-choice { cursor: pointer; }
label.withdrawal-choice { display: flex; align-items: flex-start; min-height: 32px; }
.withdrawal-choice > input[data-withdrawal-contact] {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #8997a5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.withdrawal-choice > input[data-withdrawal-contact]:disabled { background: #edf1f5; color: #697685; cursor: not-allowed; }
.withdrawal-submit { justify-self: start; min-height: 44px; color: #fff; background: #505a66; }
.withdrawal-submit[data-state="success"] { background: #167349; }
.withdrawal-submit[data-state="error"] { background: #a5262b; }
.withdrawal-submit:disabled { cursor: default; }
.withdrawal-submit:focus-visible, .withdrawal-form input:focus-visible { outline: 2px solid #0753a5; outline-offset: 3px; }
.withdrawal-status:empty { position: absolute; }

@media (max-width: 540px) {
  .withdrawal-groups { grid-template-columns: minmax(0, 1fr); }
  .withdrawal-choice { grid-template-columns: 16px minmax(0, 1fr); }
  .withdrawal-choice > input[data-withdrawal-contact] { grid-column: 2 / -1; }
  .withdrawal-submit { width: 100%; }
}
