/* =============================================
   Elfu — inquiry2 page styles  v3
   ============================================= */

body { padding-bottom: 0; background: #f4f7fb; }

.form-page { padding: 100px 0 80px; min-height: 100vh; }

.form-hero { text-align: center; padding: 40px 20px 32px; }

.form-badge {
  display: inline-block;
  background: #e6f4f1;
  color: #2a8a78;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.form-hero-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
  color: #1a3a5c;
  margin-bottom: 12px;
  line-height: 1.4;
}

.form-hero-desc { color: #5a7a9c; font-size: 0.9rem; line-height: 1.8; }

.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(26,58,92,0.08);
  padding: 36px 32px;
  margin-bottom: 20px;
}

.form-section-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2c5f8a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #dce8f5;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== ① 日付グリッド ========== */
.cal-loading {
  text-align: center;
  padding: 32px;
  color: #8fa8c0;
  font-size: 0.88rem;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  background: #fff;
  border: 0.5px solid #c8d8e8;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.date-card:hover {
  transform: translateY(-1px);
  border-color: #2c5f8a;
  background: #f0f6ff;
}
.date-card.selected {
  background: #dce8f5;
  border: 2px solid #2c5f8a;
}

.dc-wd {
  font-size: 11px;
  font-weight: 600;
  color: #8fa8c0;
  letter-spacing: 0.04em;
}
.date-card.selected .dc-wd { color: #1a3a5c; }

.dc-num {
  font-size: 22px;
  font-weight: 900;
  color: #1a3a5c;
  line-height: 1;
}

.dc-mo {
  font-size: 10px;
  font-weight: 500;
  color: #a0b8cc;
}
.date-card.selected .dc-mo { color: #2c5f8a; }

/* ========== ② 時間グリッド ========== */
.time-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eef3f8;
}

.time-heading {
  font-size: 13px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 14px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-btn {
  padding: 11px 4px;
  background: #fff;
  border: 0.5px solid #c8d8e8;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a3a5c;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  text-align: center;
}
.time-btn:hover {
  transform: translateY(-1px);
  border-color: #2c5f8a;
  background: #f0f6ff;
}
.time-btn.selected {
  background: #dce8f5;
  border: 2px solid #2c5f8a;
  color: #1a3a5c;
  font-weight: 700;
}

/* ========== ③ 確認カード ========== */
.confirm-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eef3f8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.28s ease forwards; }

.confirm-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.confirm-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #f4f7fb;
  border-radius: 20px;
}

.confirm-icon {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(26,58,92,0.09);
}

.confirm-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confirm-label {
  font-size: 10px;
  font-weight: 700;
  color: #8fa8c0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a3a5c;
}

.btn-reserve {
  width: 100%;
  padding: 16px;
  background: #2c5f8a;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}
.btn-reserve:hover {
  transform: translateY(-1px);
  background: #1a3a5c;
  box-shadow: 0 6px 20px rgba(26,58,92,0.25);
}
.btn-reserve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.reserve-note {
  text-align: center;
  font-size: 11px;
  color: #8fa8c0;
  margin-top: 10px;
}

/* ========== フォールバック ========== */
.fallback-note { font-size: 0.8rem; color: #8fa8c0; margin-top: 8px; }

/* ========== 成功画面 ========== */
.success-box { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 3rem; margin-bottom: 20px; }
.success-title { font-size: 1.5rem; font-weight: 900; color: #1a3a5c; margin-bottom: 12px; }
.success-desc { color: #5a7a9c; margin-bottom: 32px; line-height: 1.8; font-size: 0.95rem; }

/* ========== スピナー ========== */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== フォーム共通 ========== */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  font-size: 0.72rem;
  background: #e05252;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid #d0dde8;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a3a5c;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: #2c5f8a; }

.form-select { appearance: none; cursor: pointer; }

.field-error {
  font-size: 0.78rem;
  color: #e05252;
  font-weight: 600;
  margin-top: 2px;
}

/* ========== ヘッダー/フッター ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; width: 100%; }
.header-logo { text-decoration: none; display: flex; align-items: center; }
.header-logo-img { height: 44px; width: auto; display: block; }

.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.8rem;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.logo-text { font-size: 1.1rem; font-weight: 900; color: #fff; }
.logo-sub  { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 4px; }

@media (max-width: 600px) {
  .form-card { padding: 24px 16px; }
  .form-page { padding: 80px 0 60px; }
  .date-grid { grid-template-columns: repeat(4, 1fr); }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .dc-num { font-size: 18px; }
}
