/* ============================================================
   Contact Form 7 → LPデザイン マッピング
   CF7が出力するマークアップ（.wpcf7-list-item など）を、
   オリジナルLPの .entry-form__* デザインに合わせて表示する。
   ※ 数値は assets/css/style.css の .entry-form__* と同一（remスケール一致）。
   ============================================================ */

/* CF7が各コントロールを囲む span をブロック化 */
.entry-form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7デフォルトのリスト項目マージンをリセット */
.entry-form .wpcf7-list-item {
  margin: 0;
}

/* ---------- 申し込む回を選択（チェックボックスのカード） ---------- */
.entry-form__rounds .wpcf7-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14rem;
}
@media (min-width: 768px) {
  .entry-form__rounds .wpcf7-checkbox {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 18rem;
  }
}
.entry-form__rounds .wpcf7-list-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
@media (min-width: 768px) {
  .entry-form__rounds .wpcf7-list-item {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
}
.entry-form__rounds .wpcf7-list-item > label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 12rem;
  width: 100%;
  margin: 0;
  padding: 19rem 17rem;
  border-radius: 6rem;
  background: #fff;
  -webkit-box-shadow: inset 0 0 0 1rem #c8deef;
          box-shadow: inset 0 0 0 1rem #c8deef;
  font-weight: 700;
  font-size: 16rem;
  line-height: 1.63;
  color: #004b86;
  cursor: pointer;
}
.entry-form__rounds .wpcf7-list-item-label {
  font-size: 16rem;
  line-height: 1.63;
  color: #004b86;
}

/* ---------- 受験希望場所 / 申込者（ラジオ） ---------- */
.entry-form__choices .wpcf7-radio,
.entry-form__choices .wpcf7-checkbox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16rem 32rem;
}
.entry-form__choices .wpcf7-list-item > label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10rem;
  margin: 0;
  font-size: 14rem;
  line-height: 1.64;
  color: #17375d;
  cursor: pointer;
}

/* ---------- 保護者確認欄（チェックボックス） ---------- */
.entry-form__confirm .wpcf7-list-item > label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10rem;
  margin: 0;
  font-size: 14rem;
  line-height: 1.64;
  color: #17375d;
  cursor: pointer;
}

/* ---------- カスタムチェックボックス/ラジオ（共通・四角） ---------- */
.entry-form__rounds input[type="checkbox"],
.entry-form__choices input[type="checkbox"],
.entry-form__choices input[type="radio"],
.entry-form__confirm input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  width: 20rem;
  height: 20rem;
  margin: 0;
  border: none;
  border-radius: 2rem;
  background: #fff;
  -webkit-box-shadow: inset 0 0 0 2rem #0074c7;
          box-shadow: inset 0 0 0 2rem #0074c7;
  cursor: pointer;
}
/* カード内チェックは本文2行に合わせて上寄せ */
.entry-form__rounds input[type="checkbox"] {
  margin-top: 2rem;
}
.entry-form__rounds input[type="checkbox"]:checked,
.entry-form__choices input[type="checkbox"]:checked,
.entry-form__choices input[type="radio"]:checked,
.entry-form__confirm input[type="checkbox"]:checked {
  background: #0074c7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7' stroke='%23fff' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16rem 16rem no-repeat;
}

/* ---------- 検証メッセージ・レスポンス ---------- */
.entry-form .wpcf7-not-valid-tip {
  margin-top: 6rem;
  font-size: 13rem;
  line-height: 1.5;
  color: #d33;
}
.entry-form .wpcf7-response-output {
  margin: 24rem 0 0;
  padding: 12rem 16rem;
  font-size: 14rem;
  line-height: 1.6;
}
.entry-form .wpcf7-spinner {
  margin: 0 0 0 12rem;
}
