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

.wpcf7-response-output {
  background: #fff;
}

@media screen and (max-width: 767px) {
  .wpcf7-not-valid-tip {
    font-size: 3.4666666667vw;
    margin-top: 0.8vw;
  }
}

@layer page {
  .contact {
    padding-bottom: 8.125rem;
  }
  @media screen and (min-width: 768px) {
    .contact {
      width: 48.75rem;
      margin: 0 auto;
    }
  }
  @media screen and (max-width: 767px) {
    .contact {
      padding-bottom: 13.3333333333vw;
      padding-right: 9.8666666667%;
      padding-left: 9.8666666667%;
    }
  }
  .contact fieldset,
  .contact legend {
    display: contents;
    border: 0;
    padding: 0;
  }
  .contact__turnstile {
    margin: 1.25rem auto;
  }
  @media screen and (min-width: 768px) {
    .contact__turnstile {
      max-width: 120px;
    }
  }
  @media screen and (min-width: 768px) {
    .contact__row {
      display: grid;
      grid-template-columns: 20.5128205128% 1fr;
      gap: 1.25rem;
      margin-bottom: 1.875rem;
      font-size: 1.25rem;
    }
  }
  @media screen and (max-width: 767px) {
    .contact__row {
      margin-bottom: 5.3333333333vw;
    }
  }
  @media screen and (min-width: 768px) {
    .contact__label {
      padding-top: 1.875rem;
      text-align: right;
    }
  }
  @media screen and (max-width: 767px) {
    .contact__label {
      font-size: 3.4666666667vw;
    }
  }
  .contact__input {
    position: relative;
  }
  @media screen and (max-width: 767px) {
    .contact__input {
      margin-top: 4.8vw;
    }
  }
  .contact__input textarea,
  .contact__input input[type=text],
  .contact__input input[type=email],
  .contact__input input[type=tel],
  .contact__input select {
    width: 100%;
    height: 6.25rem;
    border-radius: 3.125rem;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border: 0;
    padding: 0 2.125rem;
    font-size: 1.25rem;
  }
  @media screen and (max-width: 767px) {
    .contact__input textarea,
    .contact__input input[type=text],
    .contact__input input[type=email],
    .contact__input input[type=tel],
    .contact__input select {
      padding: 0 5.0666666667vw;
      height: 12vw;
      font-size: 3.4666666667vw;
      border-radius: 6vw;
    }
  }
  .contact__input textarea::placeholder,
  .contact__input input[type=text]::placeholder,
  .contact__input input[type=email]::placeholder,
  .contact__input input[type=tel]::placeholder,
  .contact__input select::placeholder {
    color: #BBBBBB;
  }
  .contact__input textarea {
    height: 16.875rem;
    padding: 2.125rem;
  }
  @media screen and (max-width: 767px) {
    .contact__input textarea {
      padding: 4.5333333333vw;
    }
  }
  .contact__input select {
    appearance: none;
    background: #fff url("../../../img/icon/arrow_btm.svg") calc(100% - 1.875rem) 50% no-repeat;
  }
  @media screen and (max-width: 767px) {
    .contact__input select {
      background-position: calc(100% - 4.8vw) 50%;
      background-size: calc(0.1333333333 * 24 * 1vw) auto;
    }
  }
  .contact__input textarea + label,
  .contact__input input[type=checkbox] + label,
  .contact__input input[type=radio] + label {
    cursor: pointer;
  }
  .contact__input textarea:disabled + label,
  .contact__input input[type=checkbox]:disabled + label,
  .contact__input input[type=radio]:disabled + label {
    cursor: not-allowed;
    color: #ccc;
  }
  .contact__box {
    width: 100%;
    border-radius: 3.125rem;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 2.125rem;
    font-size: 1.25rem;
  }
  @media screen and (max-width: 767px) {
    .contact__box {
      padding: 4.5333333333vw;
      border-radius: 6vw;
    }
  }
  .contact__box label {
    display: block;
  }
  .contact__box .wpcf7-radio,
  .contact__box .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }
  .contact__box .wpcf7-radio input[type=radio],
  .contact__box .wpcf7-radio input[type=checkbox],
  .contact__box .wpcf7-checkbox input[type=radio],
  .contact__box .wpcf7-checkbox input[type=checkbox] {
    opacity: 0;
    appearance: none;
    position: absolute;
  }
  .contact__box .wpcf7-list-item-label {
    position: relative;
    display: block;
    border-radius: 1.875rem;
    background: #f2f2f2;
    padding: 1.25rem;
    padding-left: 3.75rem;
    min-height: 4.5rem;
  }
  @media screen and (max-width: 767px) {
    .contact__box .wpcf7-list-item-label {
      min-height: 9.6vw;
      font-size: 3.4666666667vw;
      padding: 2.4vw 2.6666666667vw;
      padding-left: 8vw;
      min-height: 6.6666666667vw;
    }
  }
  .contact__box .wpcf7-list-item-label::before, .contact__box .wpcf7-list-item-label::after {
    width: 1.875rem;
    height: 1.875rem;
    background: #fff;
    border-radius: 6.25rem;
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
  }
  @media screen and (max-width: 767px) {
    .contact__box .wpcf7-list-item-label::before, .contact__box .wpcf7-list-item-label::after {
      left: 2.1333333333vw;
      width: 4vw;
      height: 4vw;
    }
  }
  .contact__box input:checked + .wpcf7-list-item-label {
    background: #E53917;
    color: #fff;
  }
  .contact__box input:focus-visible + .wpcf7-list-item-label {
    outline: 2px solid #000;
  }
  .contact__box .wpcf7-radio .wpcf7-list-item-label::after {
    width: 1rem;
    height: 1rem;
    left: 1.3125rem;
  }
  @media screen and (max-width: 767px) {
    .contact__box .wpcf7-radio .wpcf7-list-item-label::after {
      width: 2.1333333333vw;
      height: 2.1333333333vw;
      left: 3.0666666667vw;
    }
  }
  .contact__box .wpcf7-radio input:checked + .wpcf7-list-item-label {
    background: var(--accent);
    color: #fff;
  }
  .contact__box .wpcf7-radio input:checked + .wpcf7-list-item-label::after {
    background: #000;
  }
  .contact__box .wpcf7-checkbox input:checked + .wpcf7-list-item-label::after {
    width: 1.875rem;
    height: 1.875rem;
    background: url("../../../img/icon/check.svg") 50% 30%/70% auto no-repeat;
  }
  @media screen and (max-width: 767px) {
    .contact__box .wpcf7-checkbox input:checked + .wpcf7-list-item-label::after {
      width: 4vw;
      height: 4vw;
    }
  }
  .contact__required {
    pointer-events: none;
    transform: translate(-10%, -20%);
    position: absolute;
    display: inline-block;
    z-index: 4;
    font-size: 0.875rem;
    border-radius: 3.125rem;
    background: #E53917;
    color: #fff;
    padding: 0.5rem 0.875rem;
    line-height: 1.1;
  }
  @media screen and (max-width: 767px) {
    .contact__required {
      transform: translate(-10%, -70%);
      padding: 1.6vw 2.1333333333vw;
      font-size: 2.4vw;
    }
  }
  .contact__wbtn {
    margin-top: 3.125rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  @media screen and (min-width: 768px) {
    .contact__wbtn {
      margin-left: 20.5128205128%;
    }
  }
  @media screen and (max-width: 767px) {
    .contact__wbtn {
      margin-top: 6.6666666667vw;
    }
  }
  .contact__submit-btn {
    width: 16.25rem;
    height: 4.125rem;
    border-radius: 6.25rem;
    font-size: 1.5rem;
    border: 0;
    background: #000 url("../../../img/icon/arrow_white.svg") calc(100% - 1.75rem) 50%/1.9375rem auto no-repeat;
    color: #fff;
    transition: 0.25s background;
  }
  @media screen and (max-width: 767px) {
    .contact__submit-btn {
      width: 44vw;
      height: 12vw;
      border-radius: 13.3333333333vw;
      font-size: 3.4666666667vw;
      background-position: calc(100% - 3.7333333333vw) 50%;
      background-size: 4.1333333333vw auto;
    }
  }
  @media (hover: hover) {
    .contact__submit-btn:hover {
      background-position: calc(100% - 1.25rem) 50%;
    }
  }
  .thankyou-page .p-breadcrumbs {
    display: none;
  }
  .grecaptcha-badge {
    display: block;
  }
  .thankyou-link {
    margin-top: 2em;
    text-align: center;
  }
  .thankyou-text {
    text-align: center;
    line-height: 2;
  }
}