:is(#sell-contact, #buy-contact, #inspection-contact, #consultation) .page-form > label:not(.page-consent) > .wpcf7-form-control-wrap {
  grid-column: 4;
  grid-row: 1;
  min-width: 0;
}

:is(#sell-contact, #buy-contact, #inspection-contact, #consultation) .page-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7 form.wpcf7-form .page-form .page-consent > .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  display: inline;
}

.page-form .common-form-type01-fields-container-text-select {
  border: 0;
}

.page-form .common-form-type01-fields-container-text-select::before {
  display: none;
}

.realestate-contact .wpcf7 form.wpcf7-form .common-form-type01-agree--mail .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 1em;
  opacity: 0;
}

.realestate-contact .common-form-type01-agree--mail .common-form-type01-fields-container-text-choice:focus-within::before {
  outline: auto;
}

@media (max-width: 767px) {
  :is(#sell-contact, #buy-contact, #inspection-contact, #consultation) .page-form > label:not(.page-consent) > .wpcf7-form-control-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
