/**
 * 団体参加申込フォーム（銀行振込）用CSS
 * tatami-entry.css のヘッダー/フッター/ベースを流用し、
 * フォーム固有のスタイルを追加。
 */

/* ===== Wrapper ===== */
.tg-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Back Link ===== */
.tg-back-link {
  display: inline-block;
  margin: 20px 0 12px;
  font-size: 13px;
  color: #8b7355;
  text-decoration: none;
  transition: color .2s;
}
.tg-back-link:hover {
  color: #c9a96e;
}

/* ===== Card ===== */
.tg-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 4px 24px rgba(74,55,40,.1);
  margin-bottom: 32px;
}

/* ===== Info Section ===== */
.tg-info {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0e8d8;
}
.tg-info-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: #4a3728;
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid #c9a96e;
}
.tg-info-heading + .tg-info-heading {
  margin-top: 20px;
}
.tg-info-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}
.tg-info-list {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.tg-info-list li {
  margin-bottom: 2px;
}

/* ===== CF7 Form Overrides (tg- context) ===== */
.tg-form-area .wpcf7-form {
  margin: 0;
}

/* セクションタイトル */
.tg-form-area .tg-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: #4a3728;
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e8d8;
}
.tg-form-area .tg-section-title:first-child {
  margin-top: 0;
}

/* フィールド */
.tg-form-area .tg-field {
  margin-bottom: 14px;
}
.tg-form-area .tg-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4a3728;
  margin-bottom: 0;
}
.tg-form-area .tg-label + br {
  display: none;
}
.tg-form-area .tg-req {
  font-size: 11px;
  background: #c9a96e;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.tg-form-area input.wpcf7-text,
.tg-form-area input.wpcf7-email,
.tg-form-area input.wpcf7-tel {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d4c9b8;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.tg-form-area input.wpcf7-text:focus,
.tg-form-area input.wpcf7-email:focus,
.tg-form-area input.wpcf7-tel:focus {
  border-color: #c9a96e;
}

/* 人数入力 */
.tg-count-section {
  margin-top: 8px;
}
.tg-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8d8;
}
.tg-count-row:last-child {
  border-bottom: none;
}
.tg-count-plan {
  flex: 1;
}
.tg-count-plan-name {
  font-size: 14px;
  font-weight: 600;
  color: #4a3728;
}
.tg-count-plan-price {
  font-size: 12px;
  color: #c9a96e;
  font-weight: 600;
}
.tg-count-input-wrap {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.tg-count-input-wrap .wpcf7-form-control-wrap {
  display: inline-block !important;
  width: auto !important;
  flex-shrink: 0;
}
.tg-count-input-wrap br {
  display: none;
}
.tg-form-area input.wpcf7-number {
  width: 70px;
  padding: 8px 10px;
  border: 1.5px solid #d4c9b8;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #4a3728;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.tg-form-area input.wpcf7-number:focus {
  border-color: #c9a96e;
}
.tg-count-unit {
  font-size: 14px;
  color: #888;
}

/* ===== Total Area ===== */
.tg-total-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0e8d8;
}
.tg-total-row {
  background: linear-gradient(135deg, #fdf8f0, #f5edde);
  border: 2px solid #c9a96e;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tg-total-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
  color: #4a3728;
}
.tg-total-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: #c9a96e;
}
.tg-total-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 8px;
}

/* ===== Agree Checkbox ===== */
.tg-agree {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: #fdf8f0;
  border: 1.5px solid #e8e0d5;
  border-radius: 10px;
}
.tg-agree .wpcf7-form-control-wrap {
  display: inline !important;
  width: auto !important;
}
.tg-agree .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  cursor: pointer;
}
.tg-agree .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #c9a96e;
  cursor: pointer;
}
.tg-agree a {
  color: #c9a96e;
  text-decoration: underline;
  font-weight: 600;
}
.tg-agree a:hover {
  color: #8b7355;
}

/* ===== CF7 Submit Override ===== */
.tg-form-area .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 14px 30px;
  margin-top: 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a3728, #7a5c3e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: .05em;
  transition: opacity .2s;
}
.tg-form-area .wpcf7-submit:hover {
  opacity: .9;
}

/* CF7 エラーメッセージ */
.tg-form-area .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
}
.tg-form-area .wpcf7-response-output {
  font-size: 13px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .tg-card { padding: 24px 16px 20px; }
  .tg-count-row { flex-wrap: wrap; gap: 8px; }
  .tg-total-amount { font-size: 24px; }
}
