.account-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 26px;
}

.account-type-switch a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d8d8dc;
  border-radius: 12px;
  color: #34343a;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.account-type-switch a:hover,
.account-type-switch a:focus-visible {
  border-color: #a90f2f;
  outline: none;
}

.account-type-switch a[aria-current="page"] {
  border-color: #8f0d29;
  background: #8f0d29;
  color: #fff;
}

.department-field {
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.department-title {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  font-weight: 800;
}

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

.department-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.department-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.department-option-card {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 38px 14px 14px;
  border: 1px solid #d8d8dc;
  border-radius: 14px;
  background: #fff;
  color: #24242a;
  box-shadow: 0 2px 8px rgba(18, 18, 22, .04);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

[dir="rtl"] .department-option-card {
  padding: 14px 14px 14px 38px;
}

.department-option:hover .department-option-card {
  transform: translateY(-1px);
  border-color: #a90f2f;
  box-shadow: 0 5px 14px rgba(143, 13, 41, .09);
}

.department-option input:focus-visible + .department-option-card {
  outline: 3px solid rgba(143, 13, 41, .2);
  outline-offset: 2px;
}

.department-option input:checked + .department-option-card {
  border-color: #8f0d29;
  background: #fff4f6;
  color: #710a21;
  box-shadow: 0 0 0 2px rgba(143, 13, 41, .1);
}

.department-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f3;
  color: #8f0d29;
  line-height: 1;
}

.department-option input:checked + .department-option-card .department-option-icon {
  background: #ffe2e8;
  color: #8f0d29;
}

.department-option-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.department-option-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.department-option-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #8f0d29;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

[dir="rtl"] .department-option-check {
  right: auto;
  left: 10px;
}

.department-option input:checked + .department-option-card .department-option-check {
  display: grid;
}

.department-help {
  display: block;
  margin-top: -4px;
  color: #66666d;
  line-height: 1.55;
}

.staff-invite-ready {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 13, 41, .24);
  border-radius: 14px;
  background: #fff4f6;
  color: #710a21;
}

.staff-invite-ready strong {
  font-size: 14px;
}

.staff-invite-ready span {
  font-size: 13px;
  color: #52525a;
}

@media (max-width: 520px) {
  .account-type-switch {
    grid-template-columns: 1fr;
  }

  .department-grid {
    grid-template-columns: 1fr;
  }
}
