/* WalletPro お問い合わせページ */

.contact-page {
  background: var(--color-bg);
  min-height: calc(100vh - 200px);
  padding: 48px 0 80px;
}

.contact-header-simple .header-nav {
  display: none;
}

.contact-intro {
  margin: 0 0 32px;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 40px 32px;
}

.contact-title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-primary-dark);
  text-align: center;
}

/* MailformPro フェーズ */
.contact-flow {
  margin-bottom: 32px;
}

#mfp_phase_stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#mfp_phase_stat li {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

#mfp_phase_stat .mfp_active_phase {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-color: transparent;
}

#mfp_phase_stat .mfp_phase_arrow {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* フォームテーブル */
.contact-form table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form th,
.contact-form td {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.contact-form th {
  width: 28%;
  min-width: 160px;
  padding-right: 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.6;
}

.contact-form td {
  font-size: 0.95rem;
}

.contact-form tr:last-child th,
.contact-form tr:last-child td {
  border-bottom: none;
}

.req,
.any {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.req {
  background: #ffe8e8;
  color: #c62828;
}

.any {
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="mail"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.contact-form textarea {
  max-width: 100%;
  min-height: 120px;
  resize: vertical;
}

.contact-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form .checkbox-group label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.mfp_err {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #c62828;
}

.contact-notes-title {
  margin: 32px 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.contact-notes-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.contact-consent {
  margin: 24px 0 32px;
  text-align: center;
}

.contact-consent label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.contact-submit {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.contact-submit-inline {
  max-width: none;
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirm-lead {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: center;
}

.confirm-body {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.confirm-row {
  display: grid;
  grid-template-columns: minmax(140px, 28%) 1fr;
  gap: 8px 24px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.confirm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.confirm-row:first-child {
  padding-top: 0;
}

.confirm-row dt {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.confirm-row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 32px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.contact-btn-secondary:hover {
  border-color: var(--color-primary-light);
  background: var(--color-bg);
}

/* サンクスページ */
.thanks-page .contact-card {
  text-align: center;
}

.thanks-message {
  margin: 24px 0 32px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.thanks-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.thanks-back:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 28px 20px;
  }

  .contact-form th,
  .contact-form td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .contact-form th {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="mail"],
  .contact-form select {
    max-width: 100%;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn-secondary,
  .contact-submit-inline {
    width: 100%;
  }
}
