.contactForm {
  max-width: 920px;
  margin: 3em auto 0;
  color: #2f2013;
}

.contactForm__table {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e2dc;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(47, 32, 19, 0.08);
}

.contactForm__row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8e2dc;
}

.contactForm__row:last-child {
  border-bottom: 0;
}

.contactForm__head {
  display: flex;
  align-items: center;
  gap: .7em;
  margin: 0;
  padding: 1.4em 1.6em;
  color: #55504a;
  font-weight: 700;
  line-height: 1.5;
  background: #f3f1f0;
}

.contactForm__body {
  padding: 1.25em 1.6em;
  background: #fff;
}

.contactForm__head > p,
.contactForm__body > p {
  margin: 0;
}

.contactForm__head > p {
  display: flex;
  align-items: center;
  gap: .7em;
}

.contactForm__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  padding: .25em .65em .3em;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  background: #716a62;
  border-radius: 999px;
}

.contactForm__body--name {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

.contactForm__inline {
  display: flex;
  align-items: center;
  gap: .45em;
}

.contactForm__inline > p {
  display: flex;
  align-items: center;
  gap: .45em;
  width: 100%;
  margin: 0;
}

.contactForm__subLabel {
  flex: 0 0 2.2em;
  color: #716a62;
  font-weight: 700;
  text-align: center;
}

.contactForm__subLabel::before {
  content: attr(data-label);
}

.contactForm__inline .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.contactForm__input,
.contactForm__textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: .9em 1em;
  color: #2f2013;
  font: inherit;
  line-height: 1.6;
  background: #fff;
  border: 1px solid #d8d0c8;
  border-radius: 12px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.contactForm__textarea {
  min-height: 220px;
  resize: vertical;
}

.contactForm__input:focus,
.contactForm__textarea:focus {
  background: #fffdfb;
  border-color: #8b847c;
  box-shadow: 0 0 0 4px rgba(113, 106, 98, 0.12);
}

.contactForm__row--radio .contactForm__body {
  display: flex;
  align-items: center;
}

.contactForm__row--radio .contactForm__body .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: .75em 1.4em;
}

.contactForm__row--radio .wpcf7-list-item {
  margin: 0;
}

.contactForm__row--radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  cursor: pointer;
}

.contactForm__row--radio input[type="radio"] {
  accent-color: #716a62;
}

.contactForm__actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5em;
}

.contactForm__submit,
.wpcf7cp-cfm-edit-btn,
.wpcf7cp-cfm-submit-btn {
  min-width: 220px;
  padding: 1.15em 2.5em;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  background: #716a62;
  border: 1px solid #716a62;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(47, 32, 19, 0.16);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.contactForm__submit:hover,
.wpcf7cp-cfm-submit-btn:hover {
  background: #55504a;
  box-shadow: 0 10px 22px rgba(47, 32, 19, 0.2);
  transform: translateY(-2px);
}

.wpcf7cp-cfm-edit-btn {
  color: #55504a;
  background: #fff;
  border-color: #d8d0c8;
  box-shadow: none;
}

.wpcf7 form .wpcf7-response-output {
  max-width: 920px;
  margin: 2em auto 0;
  padding: 1em 1.2em;
  border-color: #716a62;
  border-radius: 12px;
}

.wpcf7-not-valid-tip {
  margin-top: .45em;
  color: #b04a3f;
  font-size: 13px;
}

.wpcf7-spinner {
  display: none;
}

.wpcf7cp-form-hide {
  display: none !important;
}

div#wpcf7cpcnf {
  position: static !important;
  z-index: auto;
  width: 100%;
  height: auto;
  margin: 3em auto 0;
  color: #2f2013;
  background: transparent;
}

div#wpcf7cpcnf table {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-color: #e8e2dc;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e8e2dc;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(47, 32, 19, 0.08);
}

div#wpcf7cpcnf tbody {
  display: block;
}

div#wpcf7cpcnf tr {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border-bottom: 1px solid #e8e2dc;
}

div#wpcf7cpcnf tr:last-child {
  border-bottom: 0;
}

div#wpcf7cpcnf th {
  display: flex;
  align-items: center;
  width: auto;
  padding: 1.4em 1.6em;
  color: #55504a;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  background: #f3f1f0;
  border: 0;
}

div#wpcf7cpcnf td {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 0;
  padding: 1.25em 1.6em;
  line-height: 1.7;
  background: #fff;
  border: 0;
}

div#wpcf7cpcnf p {
  margin: 0;
}

div#wpcf7cpcnf .wpcf7cp-btns {
  display: flex;
  justify-content: center;
  gap: 1em;
  max-width: 920px;
  margin: 2.5em auto 0;
}

div#wpcf7cpcnf .wpcf7cp-cfm-edit-btn,
div#wpcf7cpcnf .wpcf7cp-cfm-submit-btn {
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .contactForm {
    margin-top: 2em;
  }

  .contactForm__table {
    border-radius: 18px;
  }

  .contactForm__row {
    display: block;
  }

  .contactForm__head {
    padding: 1em 1.2em .7em;
    background: #fff;
  }

  .contactForm__body {
    padding: 0 1.2em 1.2em;
  }

  .contactForm__body--name {
    grid-template-columns: 1fr;
    gap: .8em;
  }

  .contactForm__row--radio .contactForm__body .wpcf7-form-control {
    display: grid;
    gap: .65em;
  }

  .contactForm__actions {
    margin-top: 2em;
  }

  .contactForm__submit,
  .wpcf7cp-cfm-edit-btn,
  .wpcf7cp-cfm-submit-btn {
    width: 100%;
    min-width: 0;
  }

  div#wpcf7cpcnf table {
    border-radius: 18px;
  }

  div#wpcf7cpcnf tr {
    display: block;
  }

  div#wpcf7cpcnf th {
    padding: 1em 1.2em .7em;
    background: #fff;
  }

  div#wpcf7cpcnf td {
    padding: 0 1.2em 1.2em;
  }

  div#wpcf7cpcnf .wpcf7cp-btns {
    display: grid;
    gap: .8em;
    margin-top: 2em;
  }
}
