.contactForm {
  width: min(100%, 900px);
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.ch-common-form,
.ch-common-form * {
  box-sizing: border-box;
}

.ch-common-form {
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #e1e6ec;
  border-radius: 16px;
  background: #fff;
  color: #222;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 12px 34px rgba(22, 39, 54, 0.08);
}

.ch-common-form__lead {
  margin: 0 0 30px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
}

.ch-common-form__field {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.ch-common-form__field > label,
.ch-common-form__label,
.ch-common-form__field legend {
  display: block;
  margin: 0 0 8px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.ch-common-form input[type="text"],
.ch-common-form input[type="email"],
.ch-common-form input[type="tel"],
.ch-common-form input[type="url"],
.ch-common-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #bfcbd8;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
  line-height: 1.5;
  appearance: none;
}

.ch-common-form textarea {
  min-height: 150px;
  resize: vertical;
}

.ch-common-form input:focus,
.ch-common-form textarea:focus {
  border-color: #1673c8;
  outline: 3px solid rgba(22, 115, 200, 0.16);
}

.ch-common-form__required,
.ch-common-form__optional {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 1px;
}

.ch-common-form__required { background: #d93b46; }
.ch-common-form__optional { background: #778494; }

.ch-common-form__name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ch-common-form__name-grid label > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.ch-common-form__choices label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 22px 4px 0;
  font-weight: 400;
  cursor: pointer;
}

.ch-common-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #1673c8;
}

.ch-common-form__privacy {
  margin: 28px 0;
  text-align: center;
}

.ch-common-form__privacy label {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  line-height: 1.7;
  cursor: pointer;
}

.ch-common-form__privacy a {
  color: #1673c8;
  text-decoration: underline;
}

.ch-common-form__submit { text-align: center; }

.ch-common-form__submit button {
  min-width: min(100%, 280px);
  min-height: 54px;
  padding: 13px 34px;
  border: 0;
  border-radius: 999px;
  background: #1673c8;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(22, 115, 200, 0.22);
}

.ch-common-form__submit button:hover { opacity: 0.88; }
.ch-common-form__submit button:disabled { cursor: wait; opacity: 0.55; }

.ch-common-form__message {
  display: none;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}

.ch-common-form__message.is-info,
.ch-common-form__message.is-error,
.ch-common-form__message.is-success { display: block; }
.ch-common-form__message.is-info { background: #eef6ff; color: #185b95; }
.ch-common-form__message.is-error { background: #fff0f1; color: #b32834; }
.ch-common-form__message.is-success { background: #edf9f1; color: #1c7438; }

.ch-common-form__hp,
.ch-common-form-response-frame {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .contactForm { padding-inline: 12px; }
  .ch-common-form { padding: 24px 16px; border-radius: 12px; }
  .ch-common-form__lead { margin-bottom: 24px; font-size: 14px; text-align: left; }
  .ch-common-form__field { margin-bottom: 20px; }
  .ch-common-form__name-grid { grid-template-columns: 1fr; gap: 12px; }
  .ch-common-form__choices label { display: flex; margin-right: 0; }
  .ch-common-form__privacy { text-align: left; }
  .ch-common-form__privacy label { justify-content: flex-start; }
  .ch-common-form__submit button { width: 100%; }
}
