/*
 * お問い合わせ：入力・確認・サンクスページの追加スタイル
 * 共通の書体・背景色は styles.css の設定を継承します。
 */

/* 01. JavaScriptによる画面切り替え */
.contact-page [hidden] {
  display: none !important;
}

.contact-page .send-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.contact-flow-note {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--muted);
}

.contact-flow-error {
  margin-top: 24px;
  color: #b32b29;
  overflow-wrap: anywhere;
}

/* 02. 確認画面の本文幅と進行状況 */
.contact-confirm {
  width: calc(100% - 64px);
  max-width: 820px;
  margin: 0 auto 150px;
}

.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 48px;
  list-style: none;
}

.contact-steps li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #b6bdc2;
  color: var(--muted);
}

.contact-steps .is-current {
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.contact-step-number {
  font-family: var(--display);
  font-size: 1.5rem;
}

.contact-confirm-lead {
  margin-bottom: 36px;
  text-align: center;
}

/* 03. 確認内容：長いメールアドレスと相談文にも対応 */
.contact-confirm-list {
  border-top: 1px solid var(--line);
}

.contact-confirm-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #b6bdc2;
}

.contact-confirm-row dt {
  font-size: .9375rem;
  font-weight: 500;
}

.contact-confirm-row dd {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 04. 修正・送信ボタン */
.contact-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.contact-confirm-actions .send-button,
.contact-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 58px;
  padding: 14px 24px;
  margin: 0;
  text-align: center;
}

.contact-back-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.contact-flow-button {
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.contact-empty {
  text-align: center;
}

.contact-confirm-page .breadcrumb {
  flex-wrap: wrap;
}

/* 05. スマートフォン：項目名と本文を縦に配置 */
@media (max-width: 600px) {
  .contact-confirm {
    width: calc(100% - 40px);
    margin-bottom: 90px;
  }

  .contact-steps {
    gap: 10px;
    margin-bottom: 36px;
  }

  .contact-steps li {
    gap: 8px;
    font-size: .875rem;
  }

  .contact-confirm-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .contact-confirm-actions {
    gap: 16px;
    margin-top: 36px;
  }

  .contact-confirm-actions .send-button,
  .contact-back-button {
    width: 100%;
    min-width: 0;
  }
}


/* 06. 第2段階のプレビュー案内。実際の送信開始時にHTMLと合わせて除去 */
.contact-preview-notice {
  padding: 16px 20px;
  margin: 28px 0;
  border: 1px solid var(--line);
  font-size: .875rem;
  line-height: 1.9;
  text-align: center;
}

/* 07. サンクスページ：本文の読み幅と受付完了メッセージ */
.contact-thanks {
  width: calc(100% - 64px);
  max-width: 820px;
  margin: 0 auto 150px;
}

.contact-thanks-page .breadcrumb {
  flex-wrap: wrap;
}

.thanks-intro {
  padding: 32px 0 64px;
  text-align: center;
}

.thanks-intro h2 {
  margin-bottom: 32px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.9;
}

.thanks-intro p + p {
  margin-top: 20px;
}

/* 08. ご連絡の目安・ご相談時の案内 */
.thanks-section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.thanks-section h2 {
  margin-bottom: 28px;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.9;
}

.thanks-section p {
  line-height: 2.1;
}

.thanks-reassurance {
  padding: 30px 32px;
  margin: 32px 0;
  background: var(--contact-background);
}

.thanks-reassurance h3 {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.9;
}

.thanks-concerns {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.thanks-followup-note {
  font-size: .875rem;
  color: var(--muted);
}

/* 09. 電話窓口と関連ページへのリンク */
.thanks-phone-contact {
  margin-top: 32px;
  text-align: center;
}

.thanks-phone-button {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 24px;
  font-family: var(--heading);
  font-size: 2rem;
}

.thanks-phone-contact p + p {
  margin-top: 10px;
}

.thanks-navigation {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.thanks-navigation .send-button {
  margin-top: 0;
}

.thanks-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  margin-top: 32px;
}

.thanks-secondary-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}

.thanks-mobile-break {
  display: none;
}

/* 10. サンクスページのスマートフォン表示 */
@media (max-width: 600px) {
  .contact-thanks {
    width: calc(100% - 40px);
    margin-bottom: 90px;
  }

  .thanks-intro {
    padding: 24px 0 40px;
  }

  .thanks-intro h2 {
    font-size: 1.375rem;
  }

  .thanks-section {
    padding: 36px 0;
  }

  .thanks-section h2 {
    font-size: 1.1875rem;
  }

  .thanks-reassurance {
    padding: 24px 20px;
  }

  .thanks-phone-button {
    font-size: 1.75rem;
    padding-inline: 28px;
  }

  .thanks-secondary-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .thanks-mobile-break {
    display: initial;
  }
}
