.form-scroll .agreement {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
}

.history {
  margin-top: 12px;
}

.gender-line {
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 52px;
  padding-top: 7px;
  padding-bottom: 7px;
  border: 0;
  border-radius: 26px;
}

.gender-line > span {
  display: block;
  align-self: center;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.gender-options span {
  justify-content: center;
  height: 36px;
  border: 1px solid #e8c992;
  border-radius: 7px;
  color: #9f735d;
  background: linear-gradient(180deg, #fffdf5, #fff5de);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.gender-options i {
  width: 17px;
  height: 17px;
  border: 1px solid #dfc18d;
  border-radius: 4px;
  color: transparent;
  background: #f4e4c2;
}

.gender-options input:checked + span {
  border-color: #bd301b;
  color: #fff9df;
  background: linear-gradient(180deg, #eb532a, #c92f18);
  box-shadow: inset 0 1px rgba(255, 228, 157, .62), 0 4px 9px rgba(171, 48, 23, .24);
}

.gender-options input:checked + span i {
  border-color: #f7d36f;
  color: #9b2917;
  background: #ffe28b;
}

@media (max-width: 360px) {
  .gender-line { grid-template-columns: 80px minmax(0, 1fr); }
  .gender-options { gap: 6px; }
}
