/* 申込フォームの追加欄（5案共通）。各案の style.css の後に読む。
   入力欄の見た目は各案のクラス（.field__input など）に任せ、ここでは
   生年月日の並び・選択肢のラジオ・事前質問の高さ・お支払いボタンだけを決める。 */
[data-lp-form] textarea {
  height: auto;
  min-height: 7.5em;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.6;
  resize: vertical;
}
[data-lp-form] .fx-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.fx-hint { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.6; opacity: .85; }
.fx-opt { font-weight: 400; }

/* 申込の後のお支払いボタン（形は各案の送信ボタンを借りる） */
.fx-pay { margin-top: 20px; }
.fx-pay .fx-pay-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; text-decoration: none; }
.fx-pay .fx-hint { margin-top: 8px; }

/* 個人情報のリンクは地の色に合わせる（暗い地の案で読めなくならないように） */
form[data-lp-form] a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 生年月日: 年・月・日の数字入力を1行に */
.fx-birth { display: flex; align-items: center; gap: 6px; }
form[data-lp-form] .fx-birth input { flex: 0 1 auto; min-width: 0; text-align: center; padding-left: 8px; padding-right: 8px; }
form[data-lp-form] .fx-birth input[name=birth_y] { width: 6.2em; }
form[data-lp-form] .fx-birth input[name=birth_m],
form[data-lp-form] .fx-birth input[name=birth_d] { width: 4em; }
.fx-unit { flex: 0 0 auto; margin-right: 6px; font-weight: 700; }

/* 選択肢: 端末のプルダウンを使わず、ラジオを並べる。印は各案の文字色（currentColor）で描く */
.fx-choices { display: flex; flex-wrap: wrap; gap: 0 24px; }
.fx-choices--grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 600px) { .fx-choices--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-lp-form] .fx-choice { align-items: flex-start; padding: 8px 0; line-height: 1.5; }
[data-lp-form] .fx-choice { min-width: 0; }
[data-lp-form] .fx-choice span { min-width: 0; padding-top: 1px; word-break: normal; overflow-wrap: break-word; white-space: normal; }
.fx-choices--grid .fx-choice--wide { grid-column: 1 / -1; }
[data-lp-form] .fx-choice input[type=radio] {
  all: revert;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
[data-lp-form] .fx-choice input[type=radio]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform 120ms ease;
}
[data-lp-form] .fx-choice input[type=radio]:checked::before { transform: scale(1); }
[data-lp-form] .fx-choice input[type=radio]:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[data-lp-form] .fx-choice:has(input:checked) { font-weight: 700; }
[data-lp-form] .field.is-invalid .fx-choice input[type=radio] { border-color: #D2402F; }
@media (prefers-reduced-motion: reduce) { [data-lp-form] .fx-choice input[type=radio]::before { transition: none; } }
