.mainvisual-title.is-page-contact::before {
  content: "\f0e0";
}

label {
  display: block;
}

.contact-breadcrumb {
  padding-top: 12px;
  padding-bottom: 12px;
}

.contact-breadcrumb .inner {
  width: 880px;
  padding-top: 0;
  padding-bottom: 0;
}

.contact-breadcrumb .breadcrumb {
  margin-bottom: 0;
}

.entry-content-contact {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.entry-content-contact.inner {
  width: 880px;
  padding-top: 60px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 42px;
  align-items: center;
  justify-content: center;
  padding: 80px 64px;
  background: #fff;
  border: 1px solid #e2e2e2;
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.form__privacy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.form__privacy-text {
  font-size: 16px;
  line-height: 1.6;
  color: #3a4247;
}

.form__privacy-text a {
  font-weight: 600;
  text-decoration-line: underline;
  outline: initial;
  transition: opacity 0.3s;
}

.form__privacy-text a:hover {
  opacity: 0.6;
}

.form__privacy-text a:focus-visible {
  outline: solid 1px #989898;
}

.form-field {
  display: flex;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.form-field--flex-start {
  align-items: flex-start;
}

.form-field__head {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  width: 210px;
  padding-left: 10px;
  font-size: 18px;
  font-weight: 600;
}

.form-field--flex-start .form-field__head {
  margin-top: 0.4em;
}

.form-field__label {
  font-weight: 600;
}

.form-field__tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 13px;
  color: #fff;
  text-align: center;
  background: #d81f32;
  border-radius: 2px;
}

.form-field__item {
  flex-grow: 1;
}

.form-text {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: 300;
  color: #333;
  border: 1px solid #e2e2e2;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-size: 16px;
  color: #bababa;
}

input:focus-visible,
textarea:focus-visible {
  outline: solid 1px #989898;
}

.from-radio {
  display: flex;
  gap: 20px;
  padding-left: 8px;
}

input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input[type="radio"]:checked + span::after {
  opacity: 1;
}

input[type="radio"] + span {
  position: relative;
  padding: 10px 10px 10px 28px;
  cursor: pointer;
}

input[type="radio"]:focus-visible + span {
  outline: solid 1px #989898;
}

input[type="radio"] + span::before,
input[type="radio"] + span::after {
  position: absolute;
  top: 50%;
  content: "";
  border-radius: 50%;
  transform: translateY(-50%);
}

input[type="radio"] + span::before {
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #e2e2e2;
  transition: border-color 0.3s;
}

input[type="radio"] + span::after {
  left: 7px;
  width: 10px;
  height: 10px;
  background: #868686;
  opacity: 0;
}

.form-select {
  width: 100%;
  padding: 12px 30px 12px 10px;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  background: #fff;
  background: url(../img/select-arrow.svg) no-repeat center right 10px/25px auto;
  border: 1px solid #e2e2e2;
  transition: border-color 0.3s;
}

.form-select:focus-visible {
  outline: solid 1px #989898;
}

.form-textarea {
  width: 100%;
  height: 180px;
  padding: 10px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e2e2e2;
  transition: border-color 0.3s;
}

.form-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-checkbox:checked + span::after {
  opacity: 1;
}

.form-checkbox + span {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #3a4247;
  cursor: pointer;
  user-select: none;
}

.form-checkbox:focus-visible + span::before {
  border-width: 2px;
}

.form-checkbox + span::before {
  width: 20px;
  height: 20px;
  border: 1px solid #989898;
  border-radius: 1px;
  transition: border-color 0.3s;
}

.form-checkbox + span::after {
  width: 20px;
  height: 20px;
  background: url(../img/check-icon.png) no-repeat center center/contain;
  opacity: 0;
}

.form-checkbox + span::before,
.form-checkbox + span::after {
  position: absolute;
  top: 50%;
  left: 0;
  content: "";
  transform: translateY(-50%);
}

.form-btn {
  display: inline-block;
  min-width: 175px;
  padding: 16px 27px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.9px;
  cursor: pointer;
  background-color: #d81f32;
  border: none;
  transition: opacity 0.3s;
}

.form-btn:focus-visible {
  outline: solid 1px #989898;
}

.form-btn:hover {
  opacity: 0.6;
}

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

@media screen and (max-width: 767px) {
  .entry-content-contact.inner {
    padding-block: 33px;
  }

  .wp-block-spacer {
    height: 44px !important;
  }

  .form {
    padding: 40px 13px 30px;
  }

  .form__fields {
    gap: 33px;
  }

  .form__privacy {
    gap: 14px;
  }

  .form__privacy-text {
    line-height: 1.8;
    text-align: left;
  }

  .form-field {
    flex-direction: column;
    gap: 10px;
    align-items: start;
  }

  .form-field--radio {
    gap: 15px;
  }

  .form-field__item {
    width: 100%;
  }

  .from-radio {
    gap: 10px;
  }
}
