/* ============ 共通レイアウト ============ */

/* 必須バッジ / 任意バッジ */
.cf7__required,
.cf7__optional {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 14px;
  color: #fff;
  border-radius: 4px;
  margin-right: 10px;
}
.cf7__required {
  background: #be1d1d;
}
.cf7__optional {
  background: #878d8e;
}

/* フォーム項目全体を dl で揃える */
.cf7__list {
  display: flex;
  flex-wrap: wrap;
}
.cf7__list dt,
.cf7__list dd {
  box-sizing: border-box;
}
.cf7__list dt {
  width: 35%;
  padding-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}
.cf7__list dd {
  width: 65%;
}

@media (max-width: 767px) {
  .cf7__list dt,
  .cf7__list dd {
    width: 100%;
  }
}

.cf7__button {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

/* ============ 入力フィールド ============ */

.input-text {
  width: 100%;
  background: #f4f4f4;
  padding: 15px 20px;
  font-size: 15px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  transition:
    border 0.3s,
    box-shadow 0.3s;
}

.input-text:focus {
  border-color: #00a0ff;
  box-shadow: 0 0 0 3px rgba(0, 160, 255, 0.15);
  outline: none;
}

/* placeholder カラー */
.input-text::placeholder {
  color: #a5a5a5;
}

/* ============ 送信ボタン ============ */

.btn-primary {
  display: inline-block;
  width: 80%;
  max-width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  line-height: 24px;
  background: #00a0ff;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.8;
}
.btn-primary:active {
  transform: translateY(2px);
}

/* ============ チェックボックス / ラジオ ============ */

.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}
.cf7__list dd .wpcf7-list-item + .wpcf7-list-item {
  margin-top: 18px;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  vertical-align: -3px;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background: #000;
  border-color: #000;
}
input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

input[type="radio"] {
  border-radius: 50%;
}
input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ============ エラーメッセージ調整(任意) ============ */
span.wpcf7-not-valid-tip {
  color: #be1d1d;
  font-size: 13px;
}

/* 文字が無い枠なら完全に非表示 (推奨) */
.wpcf7-response-output:empty {
  display: none !important;
}
