.contact-content {
  padding: var(--page-content-padding-top) 0 140px;
}
.contact-content__lead {
  margin: 0 auto 45px;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  text-align: center;
}
.contact-trial {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 720px);
  height: 110px;
  margin: 0 auto 65px;
  padding: 20px 40px 20px 376px;
  overflow: hidden;
  color: #fff;
  background: #111;
  text-decoration: none;
}
.contact-trial::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 366px;
  height: 110px;
  content: "";
  background: url("../img/contact/trial_form.webp") center / 366px no-repeat;
  transition: opacity 0.3s ease;
}
.contact-trial__text {
  position: relative;
  z-index: 1;
  display: block;
  height: 1.5em;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.contact-trial__label {
  display: block;
  line-height: 1.5;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.contact-trial__label--hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}
.contact-trial:hover .contact-trial__label--normal,
.contact-trial:hover .contact-trial__label--hover {
  transform: translateY(-100%);
}
.contact-trial strong {
  position: absolute;
  right: 1px;
  bottom: -30px;
  color: rgba(57, 57, 57, 1);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.contact-trial:hover::before {
  opacity: 0.75;
}
.contact-form {
  width: min(100%, 840px);
  margin: 0 auto;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  align-items: start;
  margin-bottom: 20px;
}
.contact-form__row > label {
  padding-top: 18px;
  font-weight: 600;
}
.contact-form__row > label span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  color: #fff;
  background: #111;
  font-size: 11px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 0 25px;
  color: #111;
  background: #f1f1f1;
  font: inherit;
}
.contact-form input,
.contact-form select {
  height: 58px;
}
.contact-form textarea {
  min-height: 175px;
  padding-top: 18px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}
.contact-form__privacy {
  margin: 40px 0 55px;
  font-size: 13px;
  text-align: center;
}
.contact-form__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-form__actions .btn-block {
  border: 1px solid #111;
  cursor: pointer;
}
.contact-form__error {
  margin: 5px 0 0;
  color: #c00;
  font-size: 13px;
}
.contact-form__errors {
  width: min(100%, 840px);
  margin: 0 auto 25px;
  padding: 12px 18px;
  color: #a00;
  background: #fff1f1;
}
.contact-form__errors p {
  margin: 0;
}
.contact-form__errors p + p {
  margin-top: 5px;
}
.contact-form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}
.contact-form__confirm-title,
.contact-complete h2 {
  margin: 0 0 15px;
  font-size: 26px;
  text-align: center;
}
.contact-form__confirm-lead,
.contact-complete p {
  margin-bottom: 40px;
  text-align: center;
}
.contact-confirm {
  margin: 0 0 45px;
  border-top: 1px solid #ddd;
}
.contact-confirm > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid #ddd;
}
.contact-confirm dt,
.contact-confirm dd {
  margin: 0;
  padding: 20px;
}
.contact-confirm dt {
  font-weight: 600;
}
.contact-form__actions .btn-block--white {
  padding: 14px 20px 16px;
  color: var(--color-dark);
  background: #fff;
}
.contact-complete {
  padding: 80px 0;
  text-align: center;
}
.contact-complete .btn-block {
  margin: 50px auto 0;
}
@media (max-width: 767px) {
  .contact-content {
    min-height: 0;
    padding: 45px 0 90px;
  }
  .contact-content__lead {
    margin-bottom: 30px;
    font-size: 16px;
    text-align: left;
  }
  .contact-content__lead br {
    display: none;
  }
  .contact-trial {
    align-items: center;
    width: min(100%, 342px);
    height: 162px;
    margin-bottom: 45px;
    padding: 115px 0 13px;
  }
  .contact-trial::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 103px;
    background-image: url("../img/contact/trial_form_sp.webp");
    background-size: cover;
  }
  .contact-trial__text {
    width: 100%;
    font-size: 15px;
    text-align: center;
  }
  .contact-trial strong {
    right: 2px;
    bottom: -22px;
    font-size: 44px;
  }
  .contact-form__row {
    display: block;
    margin-bottom: 22px;
  }
  .contact-form__row > label {
    display: block;
    padding: 0 0 8px;
  }
  .contact-form input,
  .contact-form select {
    height: 54px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding-right: 16px;
    padding-left: 16px;
  }
  .contact-form__privacy {
    margin: 30px 0 40px;
    text-align: left;
  }
  .contact-form__actions {
    flex-direction: column-reverse;
    align-items: center;
  }
  .contact-confirm > div {
    display: block;
  }
  .contact-confirm dt {
    padding: 14px 14px 0;
  }
  .contact-confirm dd {
    padding: 14px;
  }
}

/* Keep the select arrow inset from the right edge on all screen sizes. */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 8px;
}
