.contact-form {
  background: #faf8f3;
}
.contact-form form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  min-width: 0;
  max-width: 820px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e1dcd2;
}
.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.contact-form label,
.contact-form fieldset {
  min-width: 0;
}
.contact-form label,
.contact-form legend {
  color: #160a67;
  font-size: 14px;
  font-weight: 800;
}
.contact-form label span,
.contact-form label small,
.contact-form legend small {
  color: #756e7c;
  font-size: 12px;
  font-weight: 500;
}
.contact-form input:not([type=checkbox]):not([type=file]),
.contact-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #bbb5c4;
  border-radius: 4px;
  background: #fff;
  color: #252238;
  font: inherit;
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form button:focus-visible {
  outline: 3px solid #d5a900;
  outline-offset: 2px;
}
.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-form__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
}
.contact-form__choices label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #d7d2db;
  border-radius: 4px;
  color: #252238;
  font-weight: 600;
  cursor: pointer;
}
.contact-form__file input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 7px;
  font: inherit;
}
.contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
.contact-form__consent input {
  margin-top: 4px;
}
.contact-form__consent span {
  color: #252238;
  font-size: 13px;
  font-weight: 600;
}
.contact-form__consent a {
  color: #160a67;
  text-decoration: underline;
}
.contact-form button[type=submit] {
  width: min(100%, 320px);
  min-height: 50px;
  margin: 0;
  cursor: pointer;
}
.contact-form__note {
  margin: -12px 0 0;
  color: #655f6a;
  font-size: 12px;
}
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .contact-form form {
    padding: 18px;
    gap: 18px;
  }
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-form__choices {
    gap: 7px;
  }
  .contact-form__choices label {
    font-size: 12px;
  }
  .contact-form button[type=submit] {
    width: 100%;
  }
}
