/* 申し込みフォームの見やすさ改善用（form.css の後に読み込む上書きCSS）
   元に戻す場合は index.html の form_add.css の <link> を削除してください */

/* 見出し（面談のご希望日時／ご宿泊希望地／お食事の人数 など）をカード風に */
.form-reservation .popup-form__entity-group .highlightButtom {
  box-sizing: border-box;
  margin: 2.2em 0 1.1em;
  padding: .7em 1em;
  background: #fff;
  border-left: 4px solid #c3191f;
  border-radius: 2px;
  line-height: 1.7;
  font-weight: 600;
  color: #49180c;
}

/* 見出し内の注意書き */
.form-reservation .popup-form__entity-group .highlightButtom .form-note {
  display: block;
  margin-top: .25em;
  font-size: .85em;
  font-weight: 400;
  color: #555;
}

/* 項目どうしの間隔を詰めて、ラベルを読みやすく */
.form-reservation .popup-form__entity-group dl {
  margin-bottom: 1.3em;
}
.form-reservation .popup-form__entity-group dt {
  font-weight: 600;
  color: #49180c;
}

/* 入力欄：枠を見やすく、選択中の欄をはっきり */
.form-reservation .popup-form__entity-group input:not([type="checkbox"]):not([type="hidden"]),
.form-reservation .popup-form__entity-group select {
  border: 1px solid #b9b2a8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
.form-reservation .popup-form__entity-group input:not([type="checkbox"]):not([type="hidden"]):focus,
.form-reservation .popup-form__entity-group select:focus {
  outline: none;
  border-color: #c3191f;
  box-shadow: 0 0 0 3px rgba(195, 25, 31, .15);
}
/* ブラウザの自動入力で付く青色を、白に統一（エラー表示と紛らわしいため） */
.form-reservation .popup-form__entity-group input:-webkit-autofill,
.form-reservation .popup-form__entity-group input:-webkit-autofill:hover,
.form-reservation .popup-form__entity-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #333;
}

/* 入力内容に誤りがある欄 */
.form-reservation .popup-form__entity-group input:user-invalid,
.form-reservation .popup-form__entity-group select:user-invalid {
  border-color: #c3191f;
  background-color: #fff6f6;
}

/* 未入力エラー時の自動スクロールで、画面下の固定ボタンに入力欄とエラー文が隠れないようにする */
.form-reservation .popup-form__entity-group input,
.form-reservation .popup-form__entity-group select {
  scroll-margin-top: 120px;
  scroll-margin-bottom: 200px;
}

/* 入力欄の下に出すエラー理由 */
.form-reservation .popup-form__entity-group .form-error {
  display: none;
  margin: .5em 0 0;
  font-size: .8em;
  line-height: 1.6;
  font-weight: 600;
  color: #c3191f;
  white-space: normal;
}
.form-reservation .popup-form__entity-group .form-error::before {
  content: "⚠ ";
}

/* 人数の欄：幅を小さくして「人」を横に並べる */
.form-reservation .popup-form__entity-group dd:has(.input-number-inline) {
  white-space: nowrap;
}
.form-reservation .popup-form__entity-group .input-number-inline {
  display: inline-block !important;
  width: 6em !important;
  margin-right: .4em;
}
