/*
  フォーム（React。団体旅客申込・お問い合わせ・貸切列車・有料撮影）で使う、form.min.css に無い部品だけを足す。
  色・線・動きは form.min.css の変数（--fm-*）を使い、デザインに合わせている。
*/

/* 乗車人数（－ 数字 ＋） */
.grf-stepper { display: inline-flex; align-items: center; }
.grf-stepper__btn {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; padding: 0;
  border: 1px solid var(--fm-control); border-radius: 0;
  background: var(--fm-white); color: var(--fm-deep);
  font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background-color .2s var(--fm-ease), color .2s var(--fm-ease);
}
.grf-stepper__btn:hover:not(:disabled),
.grf-stepper__btn:focus-visible { background: var(--fm-deep); color: var(--fm-white); }
.grf-stepper__btn:disabled { color: var(--fm-line-strong); cursor: not-allowed; }
.grf-stepper .grf-stepper__in { width: 88px; text-align: center; border-left: 0; border-right: 0; }
.fm-row.is-error .grf-stepper__btn { border-color: var(--fm-danger); }

/* 注意事項・個人情報の取扱いの文 */
.grf-notice { margin-top: 20px; }
.grf-notice .fm-dot { margin-top: 8px; }

/* 注意事項の番号付きの一覧 (1)〜 */
.grf-notes { margin: 0; padding-left: 0; list-style: none; counter-reset: grf-note; }
.grf-notes li { counter-increment: grf-note; position: relative; padding-left: 2.4em; margin: 0 0 8px; }
.grf-notes li::before { content: "(" counter(grf-note) ")"; position: absolute; left: 0; }

/* 「その他」を選んだときの自由入力 */
.grf-other { margin-top: 12px; }

/* 撮影希望日時（日付・開始・終了） */
.grf-slot { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.grf-slot__item { display: block; }
.grf-slot__item .fm-in { width: 180px; }
.grf-slot__item input[type="time"].fm-in { width: 140px; }

/* 撮影人数（スタッフ・出演者・エキストラ・その他） */
.grf-people { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 32px; }

/* 添付ファイルの一覧 */
.grf-files { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fm-line); }
.grf-files li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fm-line); }
.grf-files__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.grf-files__size { color: #5b5d58; font-size: 14px; white-space: nowrap; }
.grf-files__del {
  padding: 4px 12px; border: 1px solid var(--fm-deep); border-radius: 0; background: var(--fm-white);
  color: var(--fm-deep); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.grf-files__del:hover, .grf-files__del:focus-visible { background: var(--fm-deep); color: var(--fm-white); }

@media (max-width: 767px) {
  .grf-slot__item, .grf-slot__item .fm-in, .grf-slot__item input[type="time"].fm-in { width: 100%; }
  .grf-people { grid-template-columns: minmax(0, 1fr); }
}
