/* ============================================
   ASLEAD - Contact Form 7 Styles
   カラーパレット
   - 背景: #ffffff
   - アクセント（ゴールド）: #c9a84c
   - テキスト（メイン）: #1a1e2e
   - テキスト（サブ）: #6b7280
   - ボーダー: #e5e7eb
============================================ */

/* ── フォーム全体ラッパー ── */
.wpcf7 {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 20px auto 0;
  padding: 64px 72px;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #c9a84c;
}

/* 上部ゴールドライン装飾 */
.wpcf7::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #c9a84c;
  margin-bottom: 48px;
}

/* ── 各フィールドグループ ── */
.form-group {
  margin-bottom: 32px;
  position: relative;
}

/* ── ラベル ── */
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

/* 必須マーク */
.required {
  color: #c9a84c;
  margin-left: 4px;
}

/* ── テキスト・メール・電話フィールド ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 12px 0;
  font-size: 15px;
  color: #1a1e2e;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus {
  border-bottom-color: #c9a84c;
}

/* プレースホルダー */
.wpcf7 input::placeholder {
  color: #b0b7c3;
  font-size: 14px;
}

/* ── セレクトボックス ── */
.wpcf7 select {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #d1d5db;
  padding: 12px 0;
  font-size: 15px;
  color: #1a1e2e;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.wpcf7 select:focus {
  border-bottom-color: #c9a84c;
}

/* セレクト内のoption */
.wpcf7 select option {
  background-color: #ffffff;
  color: #1a1e2e;
}

/* ── テキストエリア ── */
.wpcf7 textarea {
  width: 100%;
  background-color: #fafafa;
  border: 1px solid #e5e7eb;
  border-left: 2px solid #c9a84c;
  padding: 16px;
  font-size: 15px;
  color: #1a1e2e;
  outline: none;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  font-family: inherit;
  line-height: 1.7;
  margin-top: 4px;
}

.wpcf7 textarea:focus {
  border-color: #c9a84c;
  background-color: #fffdf7;
}

.wpcf7 textarea::placeholder {
  color: #b0b7c3;
  font-size: 14px;
}

/* ── プライバシーポリシー同意チェックボックス ── */
.form-privacy {
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

.form-privacy label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.05em;
  text-transform: none;
  cursor: pointer;
}

.form-privacy input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-privacy input[type="checkbox"]:checked {
  border-color: #c9a84c;
  background-color: #c9a84c;
}

.form-privacy input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(2px, 0px);
}

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

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #c9a84c;
  color: #ffffff;
  border: none;
  padding: 16px 56px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #b8942e;
  transform: translateX(4px);
  box-shadow: 4px 4px 20px rgba(201, 168, 76, 0.3);
}

.wpcf7 input[type="submit"]:active {
  transform: translateX(2px);
}

/* ── バリデーションエラー ── */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 11px;
  color: #dc2626;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.wpcf7-not-valid {
  border-bottom-color: #dc2626 !important;
}

/* ── 送信結果メッセージ ── */
.wpcf7-response-output {
  margin-top: 24px;
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border: none !important;
}

/* 送信成功 */
.wpcf7-mail-sent-ok {
  background-color: rgba(201, 168, 76, 0.08);
  color: #a07d2a;
  border-left: 3px solid #c9a84c !important;
}

/* 送信失敗 */
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked {
  background-color: rgba(220, 38, 38, 0.06);
  color: #dc2626;
  border-left: 3px solid #dc2626 !important;
}

/* ── スピナー（送信中） ── */
.wpcf7 .wpcf7-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: cf7spin 0.8s linear infinite;
  margin: 0 auto;
}

.wpcf7.submitting .wpcf7-spinner {
  display: block;
}

@keyframes cf7spin {
  to { transform: rotate(360deg); }
}

/* ── レスポンシブ（タブレット・スマホ） ── */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 40px 24px;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}
