.bs-contact-section {
  display: none;
  box-sizing: border-box;
  clear: both;
  width: 100%;
  padding: 72px 20px;
  background: #fafafa;
  color: #777;
}

.bs-contact-section.is-positioned {
  display: block;
}

.bs-contact-section *,
.bs-contact-section *::before,
.bs-contact-section *::after {
  box-sizing: border-box;
}

.bs-contact-section__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.bs-contact-section__header {
  max-width: 760px;
  margin: 0 0 38px;
}

.bs-contact-section__header h2 {
  margin: 0 0 12px;
  color: #4f2f5b;
  font: inherit;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.bs-contact-section__header p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.bs-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
}

.bs-contact-section .bs-contact-form__field {
  min-width: 0;
  margin: 0 0 24px;
}

.bs-contact-form__grid .bs-contact-form__field {
  margin-bottom: 0;
}

.bs-contact-section label {
  display: block;
  color: #4f2f5b;
  font-weight: 600;
  line-height: 1.45;
}

.bs-contact-section .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.bs-contact-section input[type="text"],
.bs-contact-section input[type="email"],
.bs-contact-section input[type="tel"],
.bs-contact-section select,
.bs-contact-section textarea {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid #d8d4da;
  border-radius: 5px;
  background: #fff;
  color: #555;
  box-shadow: none;
  font: inherit;
}

.bs-contact-section input[type="text"],
.bs-contact-section input[type="email"],
.bs-contact-section input[type="tel"],
.bs-contact-section select {
  min-height: 48px;
  padding: 10px 13px;
}

.bs-contact-section textarea {
  min-height: 150px;
  padding: 12px 13px;
  resize: vertical;
}

.bs-contact-section input:focus,
.bs-contact-section select:focus,
.bs-contact-section textarea:focus {
  border-color: #774e90;
  outline: 2px solid rgba(119, 78, 144, 0.18);
  outline-offset: 1px;
  box-shadow: none;
}

.bs-contact-form__field--full {
  margin-top: 24px !important;
}

.bs-contact-form__callback {
  min-width: 0;
  margin: 4px 0 28px;
  padding: 0;
  border: 0;
}

.bs-contact-form__callback .wpcf7-form-control-wrap,
.bs-contact-form__callback .wpcf7-list-item {
  margin: 0;
}

.bs-contact-form__callback label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.bs-contact-form__callback input[type="radio"] {
  flex: 0 0 auto;
  margin: 0.2em 0 0;
  accent-color: #774e90;
}

.bs-contact-form__submit {
  margin: 0;
}

.bs-contact-section input[type="submit"] {
  min-height: 46px;
  margin: 0;
  padding: 0 28px;
  border: 1px solid #774e90;
  border-radius: 99px;
  background: #774e90;
  color: #fff;
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bs-contact-section input[type="submit"]:hover,
.bs-contact-section input[type="submit"]:focus-visible {
  border-color: #4f2f5b;
  background: #4f2f5b;
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

.bs-contact-section .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #8a2f3c;
  font-size: 0.9rem;
  font-weight: 400;
}

.bs-contact-section .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .bs-contact-section {
    padding: 52px 20px;
  }

  .bs-contact-section__header {
    margin-bottom: 30px;
  }

  .bs-contact-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .bs-contact-form__field--full {
    margin-top: 20px !important;
  }

  .bs-contact-section input[type="submit"] {
    width: 100%;
  }
}
