/* ====================================================
   Contact Form 7 用スタイル
   （MW WP Formのデザインに寄せたCSS）
   ==================================================== */

.cf7-contact-form {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.cf7-contact-form * {
  box-sizing: border-box;
}

/* ステップバー（1.入力画面 / 2.確認画面 / 3.完了画面） */
.cf7-step-bar {
  display: flex;
  width: 100%;
  margin-bottom: 40px;
}

.cf7-step-bar .step {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-weight: bold;
  font-size: 14px;
  background: #e6e6e6;
  color: #9a9a9a;
  position: relative;
}

.cf7-step-bar .step.active {
  background: #1565c0;
  color: #ffffff;
}

.cf7-step-bar .step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 14px solid #e6e6e6;
  z-index: 2;
}

.cf7-step-bar .step.active:not(:last-child)::after {
  border-left-color: #1565c0;
}

/* 各項目 */
.cf7-field {
  margin: 0 0 34px;
}

.cf7-field label {
  display: block;
  font-weight: bold;
  font-size: 15px;
  color: #222222;
  margin-bottom: 10px;
}

/* 任意・必須バッジ */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 6px;
  line-height: 1.6;
  vertical-align: middle;
}

.badge-optional {
  color: #9a9a9a;
  border: 1px solid #cccccc;
  background: #ffffff;
}

.badge-required {
  color: #e6392f;
  border: 1px solid #e6392f;
  background: #ffffff;
}

/* テキスト入力・メール・URL・テキストエリア共通 */
.cf7-contact-form input[type="text"],
.cf7-contact-form input[type="email"],
.cf7-contact-form input[type="url"],
.cf7-contact-form input[type="tel"],
.cf7-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #eef3f7;
  border: 1px solid #eef3f7;
  border-radius: 4px;
  padding: 16px;
  font-size: 15px;
  color: #333333;
}

.cf7-contact-form input::placeholder,
.cf7-contact-form textarea::placeholder {
  color: #9a9a9a;
}

.cf7-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.cf7-contact-form input:focus,
.cf7-contact-form textarea:focus {
  outline: none;
  border-color: #1565c0;
  background: #ffffff;
}

/* 電話番号（ハイフン区切り3分割） */
.cf7-tel-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cf7-tel-group input.tel-part {
  width: 100px;
  min-width: 60px;
  flex: 1 1 100px;
  max-width: 160px;
  text-align: center;
}

/* 個人情報保護方針同意 */
.cf7-agreement a {
  color: #1565c0;
  text-decoration: underline;
}

.cf7-agreement .wpcf7-acceptance {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333333;
}

.cf7-agreement .wpcf7-list-item {
  margin: 0;
}

/* 送信ボタン */
.cf7-submit-wrap {
  text-align: center;
  margin-top: 40px;
}

.cf7-contact-form input[type="submit"] {
  background: #1565c0;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  padding: 18px 60px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.cf7-contact-form input[type="submit"]:hover {
  background: #0d47a1;
}

/* 送信ボタン右側の丸アイコン風の装飾（矢印っぽい見た目にする場合） */
.cf7-submit-wrap {
  position: relative;
}

.cf7-submit-wrap::after {
  content: "";
  display: none; /* 必要であれば矢印アイコンをここに実装 */
}

/* 確認中・送信中インジケーター位置調整 */
.cf7-contact-form .wpcf7-spinner {
  margin-left: 12px;
}

/* ====================================================
   確認画面（Contact Form 7 Multi-Step Forms用）
   ==================================================== */

.cf7-confirm-row {
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6e6e6;
}

.cf7-confirm-row dt {
  font-weight: bold;
  font-size: 14px;
  color: #9a9a9a;
  margin-bottom: 8px;
}

.cf7-confirm-row dd {
  margin: 0;
  font-size: 16px;
  color: #222222;
}

.cf7-confirm-row .cf7-confirm-pre {
  white-space: pre-wrap;
  line-height: 1.8;
}

/* doiなど確認画面に表示させたくない値を引き継ぐだけの項目 */
.cf7-hidden-multiform {
  display: none;
}

/* 戻る・送信するボタン */
.cf7-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.cf7-confirm-buttons input[type="submit"] {
  background: #1565c0;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  padding: 18px 60px;
  cursor: pointer;
}

/* previousタグ（戻るボタン）は input[type=button] で出力されます */
.cf7-confirm-buttons input[type="button"] {
  background: #ffffff;
  color: #1565c0;
  border: 1px solid #1565c0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  padding: 18px 60px;
  cursor: pointer;
}

/* エラーメッセージ */
.cf7-contact-form .wpcf7-not-valid-tip {
  color: #e6392f;
  font-size: 13px;
  margin-top: 6px;
}

.cf7-contact-form .wpcf7-response-output {
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 14px;
}