/* HEYAGOTO: recruitment application (Contact Form 7)
 * Uses the existing recruit.css palette (#89a845, #f0f2eb).
 * Load only on recruit_job singles and recruit-confirm/recruit-complete pages.
 */
.wpcf7 {
  width: min(100%, 820px);
  margin: 36px auto 48px;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}

.wpcf7 .wp-block-table {
  margin: 0 0 24px;
  overflow: visible;
}

.wpcf7 .table-form {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}

.wpcf7 .table-form tr {
  border: 1px solid #d7ddd0;
}

.wpcf7 .table-form td {
  border: 1px solid #d7ddd0;
  padding: 18px 20px;
  vertical-align: top;
  box-sizing: border-box;
}

.wpcf7 .table-form td:first-child {
  width: 30%;
  background: #f0f2eb;
  font-weight: 600;
}

.wpcf7 .table-form td:nth-child(2) {
  background: #fff;
}

.wpcf7 .table-form input[type="text"],
.wpcf7 .table-form input[type="email"],
.wpcf7 .table-form input[type="tel"],
.wpcf7 .table-form textarea,
.wpcf7 .table-form select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfc7b6;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.wpcf7 .table-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 .table-form input:focus,
.wpcf7 .table-form textarea:focus,
.wpcf7 .table-form select:focus {
  outline: 2px solid #89a845;
  outline-offset: 1px;
}

.wpcf7 .table-form input[readonly] {
  background: #f4f5f1;
  color: #4a4a4a;
  cursor: default;
}

.wpcf7 .table-form p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #626262;
}

.wpcf7 .table-form .form-flex-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wpcf7 .table-form .form-flex-items .item {
  flex: 1 1 160px;
  min-width: 0;
}

.wpcf7 .privacy-check {
  margin: 24px 0;
  text-align: center;
  line-height: 2;
}

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

.wpcf7 .privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  accent-color: #89a845;
}

.wpcf7 .privacy-check a {
  color: #557a23;
  text-decoration: underline;
}

.wpcf7 .btn-submit,
.wpcf7 .btn-back {
  display: inline-block;
  min-width: 180px;
  max-width: 100%;
  margin: 8px;
  padding: 12px 24px;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: opacity .2s ease;
}

.wpcf7 .btn-submit {
  border: 1px solid #89a845;
  background: #89a845;
  color: #fff;
}

.wpcf7 .btn-back {
  border: 1px solid #a9a9a9;
  background: #fff;
  color: #555;
}

.wpcf7 .btn-submit:hover,
.wpcf7 .btn-back:hover {
  opacity: .8;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 5px;
  color: #b32d2e;
  font-size: 13px;
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .wpcf7 {
    margin: 24px auto 36px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .wpcf7 .table-form,
  .wpcf7 .table-form tbody,
  .wpcf7 .table-form tr,
  .wpcf7 .table-form td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .wpcf7 .table-form td:first-child {
    width: 100%;
    padding: 12px 14px;
    border-bottom: none;
  }

  .wpcf7 .table-form td:nth-child(2) {
    padding: 16px 14px;
  }

  .wpcf7 .btn-submit,
  .wpcf7 .btn-back {
    width: 100%;
    margin: 6px 0;
  }
}
