/* =============================================================================
   cnt.form.css - 公開予約フォーム
   設計準拠: ハイヤー予約フォーム(1).html
   特徴: 白基調 + 黒ロゴ + Noto Sans JP（com.css の影響を上書き）
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

body {
  background: #f5f5f5;
  color: #222;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ===== Public header ===== */
.form-head {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 10;
}
@media (min-width: 768px) { .form-head { padding: 16px 32px; } }
.form-logo-mark {
  width: 32px; height: 32px; background: #1a1a1a; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.form-logo-text  { font-size: 15px; font-weight: 500; color: #1a1a1a; }
@media (min-width: 768px) { .form-logo-text { font-size: 16px; } }
.form-logo-sub   { font-size: 11px; color: #888; margin-left: 4px; }
.client-pill {
  margin-left: auto;
  font-size: 10px; padding: 3px 9px; border-radius: 99px;
  background: #eef2ff; color: #3730a3; font-weight: 600;
  border: 1px solid #c7d2fe;
}

/* ===== Wrapper ===== */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
@media (min-width: 768px) { .form-wrap { padding: 40px 24px 80px; } }
.page-heading { font-size: 20px; font-weight: 500; color: #1a1a1a; margin-bottom: 24px; }
@media (min-width: 768px) { .page-heading { font-size: 22px; margin-bottom: 32px; } }

/* ===== Section card ===== */
.f-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .f-card { padding: 28px; margin-bottom: 20px; } }
.f-card-title {
  font-size: 15px; font-weight: 500; color: #1a1a1a;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; gap: 10px;
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #1a1a1a; color: #fff;
  font-size: 12px; font-weight: 500; flex-shrink: 0;
}

/* ===== Form elements ===== */
.f-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .f-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.f-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .f-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.span-2 { grid-column: 1 / -1; }

.f-field label {
  font-size: 13px; color: #444; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.badge-req { font-size: 10px; background: #fee2e2; color: #dc2626; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.badge-opt { font-size: 10px; background: #f3f4f6; color: #888; padding: 1px 6px; border-radius: 3px; }

.f-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-family: inherit; font-size: 14px; color: #222; background: #fff;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.f-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.f-input::placeholder { color: #bbb; }
textarea.f-input { resize: vertical; min-height: 90px; line-height: 1.6; }
select.f-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}
.f-hint { font-size: 12px; color: #999; }

/* Route group with colored dots */
.route-group { display: flex; flex-direction: column; gap: 14px; }
.route-row { display: flex; gap: 12px; align-items: flex-start; }
.route-icon { font-size: 14px; margin-top: 30px; flex-shrink: 0; width: 16px; text-align: center; }
.route-icon.from { color: #2563eb; }
.route-icon.to   { color: #dc2626; }
.route-row .field { flex: 1; }

.divider-thin { height: 1px; background: #eee; margin: 18px 0; }

/* Notices */
.f-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 6px; font-size: 12px; line-height: 1.7; margin-bottom: 16px; }
.f-alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.f-alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.f-alert-danger  { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* Checkbox */
.f-chk { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; padding: 8px 0; }
.f-chk input { width: 16px; height: 16px; accent-color: #2563eb; }

/* Submit row */
.f-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 6px; border: 1px solid #d1d5db;
  font-family: inherit; font-size: 14px; font-weight: 500;
  background: #fff; color: #444; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.f-btn:hover { border-color: #9ca3af; }
.f-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.f-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.f-btn-lg { padding: 13px 28px; font-size: 15px; min-width: 220px; }

.form-foot { text-align: center; color: #999; font-size: 11px; margin-top: 32px; padding-bottom: 16px; }

/* 取引先選択用（トークン無しアクセス時） */
.lp-client-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .lp-client-grid { grid-template-columns: 1fr 1fr; } }
.lp-client-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.lp-client-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.lp-client-code { font-family: 'Courier New', monospace; font-size: 11px; color: #9ca3af; margin-bottom: 6px; letter-spacing: 0.04em; }
.lp-client-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 10px; }
.lp-client-cta  { font-size: 12px; color: #2563eb; font-weight: 500; }
