/* 確認ページの無い問い合わせフォーム（form.php・detail_contact.php）と完了ページ（form_comp.php） */

/* フォームの上の「お急ぎの方は LINE・電話でも」 */
.inq-line-note {
  margin: 12px 0;
  padding: 10px 14px;
  background: #eef7ee;
  border: 1px solid #cfe6cf;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}
.inq-line-note p { margin: 0; }
.inq-line-note a { color: #06a541; font-weight: bold; text-decoration: underline; }

/* ご要望（共通フォーム）：押しやすいボタン型のラジオ */
.inq-yobo { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-yobo label { margin: 0; font-weight: normal; cursor: pointer; }
.inq-yobo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inq-yobo span {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #bbb;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}
.inq-yobo input:checked + span { border-color: #01469a; background: #e8f0fb; color: #01469a; font-weight: bold; }
.inq-yobo input:focus-visible + span { outline: 2px solid #01469a; outline-offset: 2px; }

/* その場の入力チェック */
.inq-invalid { border-color: #d0021b !important; background: #fff6f6 !important; }
.inq-err { margin-top: 4px; font-size: 13px; }

/* 送信ボタン */
.inq-submit { text-align: center; padding: 8px 0 4px; }
.inq-submit-btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 16px 12px;
  border: 0;
  border-radius: 6px;
  background: #e0302a;
  box-shadow: 0 3px 0 #a71d18;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
}
.inq-submit-btn:hover, .inq-submit-btn:focus { background: #c92621; }
.inq-submit-btn[disabled] { opacity: .7; box-shadow: none; }
.inq-submit-note { margin: 10px 0 0; font-size: 12px; color: #555; }
.inq-submit-refuse { margin: 4px 0 0; font-size: 11px; color: #888; }

/* 完了ページの入力内容 */
.inq-done-lead { font-size: 15px; line-height: 1.8; margin: 16px 0; }
.inq-done { border: 1px solid #ddd; border-radius: 4px; padding: 12px 16px; margin: 0 0 12px; background: #fafafa; }
.inq-done-title { margin: 0 0 8px; font-size: 15px; font-weight: bold; }
.inq-done-list { margin: 0; }
.inq-done-list dt { font-weight: bold; font-size: 13px; color: #555; margin-top: 8px; }
.inq-done-list dd { margin: 2px 0 0; word-break: break-all; }
.inq-done-note { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 16px; }
@media (min-width: 768px) {
  .inq-done-list { display: grid; grid-template-columns: 11em 1fr; column-gap: 12px; }
  .inq-done-list dt, .inq-done-list dd { margin-top: 8px; }
}

/* 車両の問い合わせ（detail_contact.php）の「必須」「任意」バッジ。form.php と同じ大きさで、左の欄の右端にそろえる
   （「必須」は style.css の .steerlink_form_new .label が padding を小さくしている。「ご質問・ご要望」の label は幅 100% でない） */
.detail_form_new th > label { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; width: 100%; }
.detail_form_new th > label br { display: none; } /* ご連絡先の <br>。label がブロックなので「(どちらか必須)」は次の行になる */
.detail_form_new th .inq-th-text { margin-left: 0; word-break: keep-all; } /* 「会社名・ご担当者名」は「・」の後でだけ折り返す（<wbr>） */
.steerlink_form_new .label-required-new,
.steerlink_form_new .label-option {
  float: none;
  flex: none;
  padding: 0.5em 0.5em;
  margin-top: -5px;
}
.steerlink_form_new .label-option { background-color: #0c6dff; }
.steerlink_form_new .label-option:before { content: "任意"; }

/* 共通フォーム（form.php）の各行：上は style.css の padding-top 15px、下は top_form.css が margin を 0 にしているので同じだけ空ける */
.steerlink_form > form.js-inquiry-form > .form-group { padding-bottom: 15px; }

/* 車両の問い合わせ（SP）：一番下の「詳細へ戻る」が固定フッター（電話・LINE、高さ約 76px）に隠れないように */
@media (max-width: 767px) {
  .form-back-footer { margin-bottom: 100px; }
}
