/**
 * 参加申込フォーム（Stripe決済）用CSS
 * サンプル summit-form-standalone.html のデザインを再現
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f5f0e8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.te-header {
  background: linear-gradient(135deg, #4a3728 0%, #7a5c3e 100%);
  padding: 36px 24px 32px;
  text-align: center;
}
.te-header .te-eyebrow {
  color: #c9a96e;
  letter-spacing: .3em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'Noto Serif JP', serif;
}
.te-header h1 {
  font-family: 'Noto Serif JP', serif;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.te-header .te-header-sub {
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.te-header-divider {
  width: 40px;
  height: 2px;
  background: #c9a96e;
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== Main ===== */
.te-main {
  flex: 1;
  padding: 16px 16px 48px;
}

/* ===== Form Wrapper ===== */
.ts-wrap {
  max-width: 580px;
  margin: 0 auto;
}

/* ===== Progress Bar ===== */
.ts-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
}
.ts-progress-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all .3s;
  background: #e8e0d5;
  color: #999;
}
.ts-dot.ts-done {
  background: #8b7355;
  color: #fff;
}
.ts-dot.ts-active {
  background: #c9a96e;
  color: #fff;
}
.ts-plabel {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}
.ts-plabel.ts-active {
  color: #4a3728;
  font-weight: 600;
}
.ts-pline {
  width: 36px;
  height: 1px;
  background: #d4c9b8;
  margin: 0 8px;
}

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

/* ===== Section Title ===== */
.ts-section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #4a3728;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e8d8;
}

/* ===== Plan Cards ===== */
.ts-plan {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #ddd5c8;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  background: #fff;
  transition: all .2s;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}
.ts-plan.ts-selected {
  border-color: #c9a96e;
  background: #fdf8f0;
  box-shadow: 0 0 0 1px #c9a96e;
}
.ts-plan-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 14px;
  color: #4a3728;
  margin-bottom: 3px;
}
.ts-plan-desc {
  font-size: 12px;
  color: #888;
}
.ts-plan-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.ts-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ts-price-tag {
  font-size: 11px;
  background: #f0e8d8;
  color: #8b7355;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.ts-price-num {
  font-size: 14px;
  font-weight: 700;
  color: #c9a96e;
}

/* ===== Radio Buttons ===== */
.ts-radio-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.ts-radio-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #4a3728;
  background: #fff;
  transition: all .2s;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.ts-radio-btn.ts-selected {
  border-color: #c9a96e;
  background: #fdf8f0;
}
.ts-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  background: #fff;
}
.ts-radio-circle.ts-on {
  background: #c9a96e;
  border-color: #c9a96e;
}
.ts-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ===== Form Fields ===== */
.ts-field {
  margin-bottom: 14px;
}
.ts-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4a3728;
  margin-bottom: 5px;
}
.ts-req {
  font-size: 11px;
  background: #c9a96e;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.ts-opt {
  font-size: 11px;
  background: #ccc;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.ts-input {
  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;
}
.ts-input:focus {
  border-color: #c9a96e;
}
.ts-input.ts-error {
  border-color: #e53e3e;
}
.ts-errmsg {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: block;
}

/* ===== Divider ===== */
.ts-divider {
  border-top: 1px dashed #e8e0d5;
  margin: 16px 0;
}

/* ===== Confirmation Box ===== */
.ts-confirm-box {
  border: 1.5px solid #e8e0d5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ts-confirm-row {
  display: flex;
  padding: 11px 14px;
  border-bottom: 1px solid #f0e8d8;
  font-size: 14px;
}
.ts-confirm-row:last-child {
  border-bottom: none;
}
.ts-confirm-row:nth-child(odd) {
  background: #fdf8f0;
}
.ts-clabel {
  width: 110px;
  color: #888;
  flex-shrink: 0;
}
.ts-cval {
  color: #333;
  font-weight: 500;
}

/* ===== Total Amount ===== */
.ts-total {
  background: linear-gradient(135deg, #fdf8f0, #f5edde);
  border: 2px solid #c9a96e;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ts-total-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 600;
  color: #4a3728;
}
.ts-total-amount {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 700;
  color: #c9a96e;
}

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

/* ===== Notes ===== */
.ts-note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin: 6px 0 0;
}

/* ===== Buttons ===== */
.ts-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0e8d8;
}
.ts-btn-back {
  padding: 10px 18px;
  border: 1.5px solid #d4c9b8;
  border-radius: 8px;
  background: transparent;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}
.ts-btn-next {
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9a96e, #8b7355);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Serif JP', serif;
}
.ts-btn-next:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.ts-btn-submit {
  padding: 14px 30px;
  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;
}
.ts-btn-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ===== Group Notice ===== */
.ts-group-notice {
  max-width: 580px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px dashed #d4c9b8;
  border-radius: 12px;
  text-align: center;
}
.ts-group-notice-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}
.ts-group-notice-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #c9a96e;
  text-decoration: none;
  transition: color .2s;
}
.ts-group-notice-link:hover {
  color: #8b7355;
  text-decoration: underline;
}

/* ===== Footer ===== */
.te-footer {
  background: #4a3728;
  padding: 28px 24px;
  text-align: center;
}
.te-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-bottom: 16px;
}
.te-footer-links a {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}
.te-footer-links a:hover {
  color: #c9a96e;
}
.te-footer-sep {
  color: rgba(255,255,255,.2);
  font-size: 12px;
}
.te-footer-copy {
  color: rgba(255,255,255,.4);
  font-size: 11px;
  letter-spacing: .05em;
}

/* ===== Complete Page ===== */
.te-complete-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 28px 36px;
  box-shadow: 0 4px 24px rgba(74,55,40,.1);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.te-complete-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f5edde;
  color: #c9a96e;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}
.te-complete-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #4a3728;
  margin-bottom: 16px;
  line-height: 1.5;
}
.te-complete-body {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}
.te-complete-notice {
  background: #fdf8f0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: left;
}
.te-complete-notice a {
  color: #c9a96e;
  font-weight: 600;
  text-decoration: none;
}
.te-complete-notice a:hover {
  text-decoration: underline;
}
.te-complete-back-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #4a3728;
  border: 2px solid #c9a96e;
  border-radius: 30px;
  text-decoration: none;
  transition: all .2s;
  font-family: 'Noto Serif JP', serif;
}
.te-complete-back-btn:hover {
  background: #c9a96e;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .ts-card { padding: 20px 16px; }
  .ts-plan { flex-wrap: wrap; }
  .ts-plan-prices { flex-direction: row; gap: 12px; width: 100%; margin-left: 0; }
  .te-header h1 { font-size: 20px; }
  .te-footer-sep { display: none; }
  .te-footer-links { flex-direction: column; gap: 10px; }
  .te-complete-card { padding: 36px 16px 28px; }
}
