/* ============================================================
   contact.css — お問い合わせ（入力・確認・完了）専用
   共通のフォーム部品（.form / .form-row / .choice / .form-errors /
   .confirm-table / .btn など）は style.css にある。ここは追加分だけ。
   色はすべて CSS 変数（ダークモード対応）。
   ============================================================ */

.contact {
  max-width: calc(720px + var(--pad-x) * 2);
}

/* ---------- 進み具合（入力 → 確認 → 完了） ---------- */
.contact-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.contact-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
}
.contact-steps__item + .contact-steps__item::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-right: 4px;
  background: var(--border);
}
.contact-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.contact-steps__item.is-done .contact-steps__num {
  border-color: var(--teal);
  color: var(--teal);
}
.contact-steps__item.is-current {
  color: var(--text);
  font-weight: 600;
}
.contact-steps__item.is-current .contact-steps__num {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-teal);
}

/* ---------- 前書き・案内 ---------- */
.contact-lead {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.9;
  margin: 0 0 32px;
}
.contact-lead .required { margin-left: 0; margin-right: 2px; }
.contact-notice { margin-bottom: 24px; line-height: 1.8; }
.contact-errors { margin-bottom: 32px; }
.contact-errors:focus { outline: none; }
.contact-errors:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.contact-errors a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 入力欄まわり ---------- */
.contact-counter { text-align: right; }
.contact-counter.is-over { color: var(--required); font-weight: 600; }

.contact-agree {
  padding: 20px;
  border-radius: 14px;
  background: var(--teal-tint);
}
.contact-agree .form-help a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.contact-agree__label {
  align-self: flex-start;
  font-weight: 600;
}
.contact-agree__label .required { margin-left: 2px; }
.contact-types.has-error .choice,
.contact-agree.has-error .choice { border-color: var(--required); }

.contact-turnstile { min-height: 65px; }

/* ---------- 確認画面 ---------- */
.confirm-table { margin-bottom: 8px; }
.contact-confirm-actions { margin-top: 32px; }
.contact-confirm-actions form { display: flex; flex: 1 1 200px; }
.contact-confirm-actions form .btn { flex: 1 1 auto; }

/* ---------- 完了画面 ---------- */
.contact-done {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--border);
  line-height: 1.9;
}
.contact-done.alert { border-color: var(--required); background: var(--pink-tint); }
.contact-done__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
}
.contact-done p + p { margin-top: 8px; }
.contact-done__actions { justify-content: center; margin-top: 32px; }
.contact-done__actions .btn { flex: 0 1 280px; }

/* ---------- お電話でのお問い合わせ ---------- */
.contact-tel {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--bg-alt);
  text-align: center;
}
.contact-tel__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.contact-tel__number { margin: 0; }
.contact-tel__number a {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-decoration: none;
}
.contact-tel__hours {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: var(--fs-small);
}
