/* ── MRT Booking Form Styles ─────────────────────────────── */
#mrt-booking-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 680px; margin: 0 auto; color: #1a1a1a; }
.mrt-hidden { display: none !important; }

/* ステップインジケーター */
.mrt-steps { display: flex; margin-bottom: 24px; border-bottom: 2px solid #e5e5e5; }
.mrt-step { flex: 1; text-align: center; font-size: 11px; padding: 8px 4px; border-bottom: 3px solid transparent; margin-bottom: -2px; color: #999; }
.mrt-step.active { border-color: #1D9E75; color: #085041; font-weight: 600; }
.mrt-step.done { border-color: #9FE1CB; color: #0F6E56; }

/* ラベル・フォーム */
.mrt-label { font-size: 12px; font-weight: 600; color: #555; margin: 0 0 8px; }
.mrt-form-label { font-size: 12px; color: #555; margin: 0 0 4px; }
.mrt-required { color: #c00; font-size: 11px; margin-left: 2px; }
.mrt-form-group { margin-bottom: 14px; }
.mrt-input, .mrt-select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; background: #fff; }
.mrt-input:focus, .mrt-select:focus { outline: none; border-color: #1D9E75; box-shadow: 0 0 0 3px rgba(29,158,117,.1); }
.mrt-note { font-size: 11px; color: #888; line-height: 1.6; margin: 4px 0; }

/* 拠点カード */
.mrt-station-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.mrt-station-card { border: 1px solid #e0e0e0; border-radius: 10px; padding: 12px 8px; cursor: pointer; text-align: center; transition: border-color .15s; }
.mrt-station-card:hover { border-color: #5DCAA5; }
.mrt-station-card.selected { border: 2px solid #1D9E75; background: #F2FAF7; }
.mrt-station-name { font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.mrt-station-sub { font-size: 10px; color: #888; margin: 0; }

/* CCフィルター・タブ */
.mrt-cc-filter { margin-bottom: 14px; }
.mrt-cc-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mrt-cc-btn { font-size: 12px; padding: 5px 14px; border-radius: 99px; border: 1px solid #ddd; background: transparent; cursor: pointer; color: #555; }
.mrt-cc-btn.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }
.mrt-search-tabs { display: flex; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.mrt-tab { flex: 1; padding: 9px; font-size: 13px; font-weight: 500; border: none; background: transparent; cursor: pointer; color: #666; }
.mrt-tab.active { background: #E1F5EE; color: #085041; }

/* カレンダー */
.mrt-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mrt-cal-header span { font-size: 14px; font-weight: 600; }
.mrt-cal-nav { padding: 4px 12px; border: 1px solid #e0e0e0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; }
.mrt-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.mrt-cal-dow { font-size: 10px; color: #aaa; text-align: center; padding: 4px 0; }
.mrt-cal-day { font-size: 12px; text-align: center; padding: 7px 2px; border-radius: 6px; }
.mrt-cal-day.clickable { cursor: pointer; }
.mrt-cal-day.available { background: #E1F5EE; color: #085041; }
.mrt-cal-day.available:hover { background: #9FE1CB; }
.mrt-cal-day.partial { background: #FAEEDA; color: #633806; }
.mrt-cal-day.partial:hover { background: #FAC775; }
.mrt-cal-day.full, .mrt-cal-day.holiday { background: #FCEBEB; color: #A32D2D; cursor: default; }
.mrt-cal-day.past { color: #ccc; cursor: default; }
.mrt-cal-day.selected { background: #1D9E75 !important; color: #fff !important; }
.mrt-cal-legend { display: flex; gap: 12px; margin-top: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.mrt-legend-item { font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.mrt-legend-item.avail { background: #E1F5EE; color: #085041; }
.mrt-legend-item.partial { background: #FAEEDA; color: #633806; }
.mrt-legend-item.full { background: #FCEBEB; color: #A32D2D; }

/* 車両一覧 */
.mrt-vehicle-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #e0e0e0; border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.mrt-vehicle-row:hover:not(.unavail) { border-color: #5DCAA5; }
.mrt-vehicle-row.selected { border: 2px solid #1D9E75; background: #F2FAF7; }
.mrt-vehicle-row.unavail { opacity: .45; cursor: not-allowed; background: #f8f8f8; }
.mrt-v-info { flex: 1; }
.mrt-v-name { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.mrt-v-spec { font-size: 11px; color: #888; margin: 0; }
.mrt-v-right { text-align: right; }
.mrt-v-price { font-size: 13px; font-weight: 600; color: #085041; margin: 0 0 3px; }
.mrt-cc-badge { font-size: 10px; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.mrt-cc-badge.cc-50 { background: #EEEDFE; color: #3C3489; }
.mrt-cc-badge.cc-125 { background: #E6F1FB; color: #0C447C; }
.mrt-vs { font-size: 10px; padding: 1px 7px; border-radius: 99px; }
.mrt-vs.avail { background: #E1F5EE; color: #085041; }
.mrt-vs.unavail { background: #FCEBEB; color: #A32D2D; }
.mrt-empty { font-size: 13px; color: #aaa; text-align: center; padding: 20px 0; }

/* 時間・料金 */
.mrt-duration-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.mrt-dur-btn { padding: 9px 4px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 11px; text-align: center; cursor: pointer; background: #fff; }
.mrt-dur-btn:hover { border-color: #5DCAA5; }
.mrt-dur-btn.pack { border-color: #AFA9EC; }
.mrt-dur-btn.selected { border: 2px solid #1D9E75; background: #F2FAF7; }
.mrt-dur-btn.pack.selected { border-color: #7F77DD; background: #EEEDFE; }
.mrt-dur-hours { font-size: 12px; font-weight: 600; }
.mrt-dur-price { font-size: 11px; color: #555; margin-top: 2px; }
.mrt-dur-save { font-size: 10px; color: #0F6E56; }
.mrt-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mrt-price-summary { background: #f5f5f5; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.mrt-price-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.mrt-price-row.mrt-total { font-size: 15px; font-weight: 600; border-top: 1px solid #ddd; margin-top: 6px; padding-top: 8px; }
.mrt-suggest-pack { font-size: 12px; color: #0F6E56; background: #E1F5EE; padding: 6px 10px; border-radius: 6px; margin-top: 6px; }

/* 保険 */
.mrt-ins-option { border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px; margin-bottom: 8px; cursor: pointer; }
.mrt-ins-option.selected { border: 2px solid #1D9E75; background: #F2FAF7; }
.mrt-ins-header { display: flex; align-items: flex-start; gap: 10px; }
.mrt-ins-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ddd; flex-shrink: 0; margin-top: 2px; }
.mrt-ins-radio.checked { border-color: #1D9E75; background: #1D9E75; }
.mrt-ins-title-row { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.mrt-ins-title { font-size: 13px; font-weight: 600; margin: 0; }
.mrt-ins-price { font-size: 13px; font-weight: 600; color: #085041; }
.mrt-ins-desc { font-size: 12px; color: #555; margin: 8px 0 6px 28px; line-height: 1.6; }
.mrt-ins-tags { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 28px; }
.mrt-ins-tag { font-size: 10px; padding: 2px 8px; border-radius: 99px; background: #E1F5EE; color: #085041; }
.mrt-ins-warn { font-size: 12px; color: #993C1D; margin: 6px 0 0 28px; }

/* アップロード */
.mrt-upload-area { border: 2px dashed #ddd; border-radius: 10px; padding: 30px; text-align: center; margin-bottom: 16px; cursor: pointer; position: relative; }
.mrt-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mrt-upload-placeholder { display: flex; flex-direction: column; gap: 6px; }
.mrt-upload-placeholder span { font-size: 13px; color: #666; }
.mrt-upload-note { font-size: 11px; color: #aaa; }
#mrt-license-preview { max-width: 100%; max-height: 200px; border-radius: 6px; }

/* 確認・約款・同意 */
.mrt-confirm-box { background: #f5f5f5; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.mrt-cr { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid #e5e5e5; }
.mrt-cr:last-child { border-bottom: none; }
.mrt-cr span:first-child { color: #777; }
.mrt-cr-total { font-size: 15px; font-weight: 600; margin-top: 4px; padding-top: 8px !important; }
.mrt-terms-box { border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 14px; max-height: 160px; overflow-y: auto; font-size: 12px; color: #555; line-height: 1.8; background: #fafafa; margin-bottom: 14px; }
.mrt-agreements { margin-bottom: 16px; }
.mrt-agreement-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.mrt-agreement-row:last-child { border-bottom: none; }
.mrt-agreement-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: #1D9E75; cursor: pointer; }
.mrt-agreement-row label { font-size: 13px; color: #444; line-height: 1.6; cursor: pointer; }

/* Stripe */
.mrt-card-element { border: 1px solid #ddd; border-radius: 8px; padding: 12px; background: #fff; margin-bottom: 14px; }
.mrt-error { font-size: 12px; color: #c00; margin-bottom: 10px; }

/* ボタン */
.mrt-nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.mrt-btn-next, .mrt-btn-submit { padding: 12px 24px; background: #1D9E75; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mrt-btn-next:disabled, .mrt-btn-submit:disabled { background: #e0e0e0; color: #aaa; cursor: not-allowed; }
.mrt-btn-back { padding: 12px 20px; background: transparent; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; cursor: pointer; color: #555; }

/* 完了 */
.mrt-complete { text-align: center; padding: 40px 20px; }
.mrt-complete-icon { width: 60px; height: 60px; border-radius: 50%; background: #1D9E75; color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.mrt-complete h3 { font-size: 20px; margin: 0 0 10px; }
.mrt-complete p { font-size: 14px; color: #555; line-height: 1.8; }

@media (max-width: 480px) {
  .mrt-station-grid { grid-template-columns: repeat(2, 1fr); }
  .mrt-duration-grid { grid-template-columns: repeat(3, 1fr); }
}
