/**
 * お問い合わせフォーム用追加スタイル
 * 確認画面、送信中画面、完了画面、エラー画面のスタイルを定義
 */

/* ── プライバシーポリシー同意チェックボックス ────────────── */
.privacy-agree {
  text-align: center;
  margin: 20px 0 10px;
  font-size: 14px;
}
.privacy-agree label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.privacy-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.privacy-agree a {
  color: #2563eb;
  text-decoration: underline;
}

/* ── 確認画面 ─────────────────────────────────────────── */
.contact-confirm .confirm-note {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
  font-size: 14px;
}
.contact-confirm .tbl-r02 th {
  background: #f0f0f0;
  color: #333;
}
.contact-confirm .tbl-r02 td {
  background: #fff;
}
.btn-back {
  background: #888 !important;
  margin-left: 10px;
}
.btn-back:hover {
  background: #666 !important;
}

/* ── 送信中画面 ──────────────────────────────────────── */
.contact-loading {
  text-align: center;
  padding: 60px 20px;
}
.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── 完了画面 ─────────────────────────────────────────── */
.contact-complete {
  text-align: center;
  padding: 60px 20px;
}
.complete-message {
  margin: 30px auto;
  max-width: 500px;
  line-height: 2;
  color: #333;
}
.complete-message p {
  margin-bottom: 10px;
}

/* ── エラー画面 ──────────────────────────────────────── */
.contact-error {
  text-align: center;
  padding: 60px 20px;
}
.error-message {
  margin: 30px auto;
  max-width: 500px;
  line-height: 2;
  color: #333;
}
.error-message p {
  margin-bottom: 10px;
}
.error-message #error-text {
  color: #dc2626;
  font-weight: bold;
}
.fallback-email {
  margin-top: 15px;
}
.fallback-email a {
  color: #2563eb;
  text-decoration: underline;
  font-size: 16px;
  font-weight: bold;
}
