/* =============================================
   無料カウンセリング予約 - スタイル
   ============================================= */

/* --- 全体 --- */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* --- カード共通 --- */
.form-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10), 0 4px 8px rgba(0, 0, 0, .06);
}

/* =============================================
   予約カレンダー
   ============================================= */

/* カレンダー全体のラッパー */
.calendar-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

/* ヘッダー（年月 + 矢印） */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #ea580c;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.calendar-nav button:hover {
  background: #fff7ed;
}

/* テーブル */
.calendar-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  table-layout: auto;
}

/* ヘッダーセル（日付行） */
.calendar-table thead th {
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  background: #fff;
}

/* 左端の空セル・時間セル */
.calendar-table thead th:first-child,
.calendar-table tbody td:first-child {
  width: 50px;
  min-width: 50px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: #334155;
}

/* 曜日カラー */
.day-sat {
  color: #2563eb !important;
}

.day-sun {
  color: #dc2626 !important;
}

/* ボディセル */
.calendar-table tbody td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 2px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: default;
  transition: background 0.15s;
}

/* 空き枠（○） */
.slot-available {
  cursor: pointer;
  color: #ea580c;
  font-size: 18px;
  font-weight: 500;
}

.slot-available:hover {
  background: #fff7ed;
}

/* 予約不可（×） */
.slot-unavailable {
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 16px;
  cursor: not-allowed;
}

/* 選択中 */
.slot-selected {
  background: #ea580c !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
}

/* --- 選択表示エリア --- */
.selection-display {
  min-height: 40px;
  padding: 12px 16px;
  background: #fff7ed;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ea580c;
  margin-top: 16px;
  text-align: center;
}

.selection-display.empty {
  color: #94a3b8;
  background: #f8fafc;
}

/* --- 予約ステップ番号 --- */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.step-label {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.required-tag {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.step-heading {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

/* =============================================
   フォーム
   ============================================= */
.form-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}

.form-section label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section select,
.form-section textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #ea580c;
}

.form-group {
  margin-bottom: 20px;
}

/* エラー表示 */
.error-msg {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  text-align: center;
}

/* 送信ボタン */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 24px auto 0;
  padding: 14px 24px;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 成功メッセージ */
.success-msg {
  color: #059669;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 640px) {
  .calendar-wrapper {
    padding: 16px 10px;
  }

  .form-section {
    padding: 16px;
  }

  .calendar-table thead th,
  .calendar-table tbody td {
    font-size: 12px;
    padding: 6px 2px;
  }
}
