.user-form-page {
  width: min(100%, 920px);
}

.form-heading {
  margin-bottom: 28px;
}

.user-form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-section {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.form-section__heading h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

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

.form-field {
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.form-field fieldset,
.form-field {
  padding: 0;
  border: 0;
}

.form-field input:not([type='checkbox']) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c7cdd8;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}

.form-field input:not([type='checkbox']):focus {
  outline: 3px solid #dbe2ff;
  border-color: var(--at-blue);
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.team-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-option {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfe;
  cursor: pointer;
}

.team-option:has(input:checked) {
  border-color: var(--at-blue);
  background: #edf0ff;
  color: var(--at-blue);
}

.team-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--at-blue);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: #fbfcfe;
}

@media (max-width: 600px) {
  .form-section,
  .form-actions {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-field--full {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button-style {
    width: 100%;
  }
}