/* ============================================================
   Form Wizard — specific styles
   ============================================================ */

/* Layout ---------------------------------------------------- */
.wiz-outer {
  min-height: calc(100vh - 60px);
  margin-top: 60px;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wiz-kicker-row {
  max-width: 520px;
  width: 100%;
  text-align: center;
  margin-bottom: 18px;
}
.wiz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sage-l);
  color: var(--forest);
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 980px;
  letter-spacing: .04em;
}
.wiz-kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--forest);
  display: inline-block;
}

/* Card ------------------------------------------------------ */
.wiz-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 32px rgba(42,92,69,.09);
  width: 100%;
  max-width: 520px;
  padding: 36px;
  overflow: hidden;
}

/* Progress bar ---------------------------------------------- */
.wiz-progress {
  height: 3px;
  background: var(--cream-d);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.wiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--forest-l));
  border-radius: 2px;
  width: 0%;
  transition: width .55s cubic-bezier(.22,1,.36,1);
}

/* Meta row -------------------------------------------------- */
.wiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 26px;
}
.wiz-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: .05em;
}
.wiz-back-btn {
  background: none;
  border: none;
  color: var(--mid);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-family: var(--f-body);
  transition: color .15s;
  opacity: 0;
  pointer-events: none;
}
.wiz-back-btn.visible { opacity: 1; pointer-events: auto; }
.wiz-back-btn:hover { color: var(--forest); }

/* Steps ----------------------------------------------------- */
.wiz-step { display: none; }
.wiz-step.active {
  display: block;
  animation: stepIn .32s cubic-bezier(.22,1,.36,1);
}
.wiz-step.back { animation: stepInBack .28s cubic-bezier(.22,1,.36,1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none; }
}

/* Question -------------------------------------------------- */
.q-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 980px;
  padding: 5px 13px;
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 14px;
}
.q-title {
  font-family: var(--f-disp);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}
.q-body {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 22px;
  padding: 11px 14px;
  background: var(--cream);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--sage);
}

/* Answer buttons -------------------------------------------- */
.ans-stack { display: flex; flex-direction: column; gap: 7px; }
.ans-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.ans-btn:hover {
  border-color: var(--sage);
  background: rgba(255,255,255,.8);
  box-shadow: 0 2px 10px rgba(42,92,69,.08);
}
.ans-btn.selected {
  border-color: var(--forest);
  background: rgba(42,92,69,.05);
  box-shadow: 0 2px 12px rgba(42,92,69,.12);
}
.ans-num {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--white);
  border: 1.5px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  flex-shrink: 0;
  transition: background .12s, border-color .12s, color .12s;
}
.ans-btn.selected .ans-num {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.ans-text {
  font-family: var(--f-disp);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* Result ---------------------------------------------------- */
.result-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.result-score-ring {
  position: relative;
  width: 110px; height: 110px;
}
.result-score-ring svg { width: 110px; height: 110px; }
.ring-track { fill: none; stroke: var(--cream-d); stroke-width: 9; }
.ring-fill {
  fill: none;
  stroke: var(--forest);
  stroke-width: 9;
  stroke-linecap: round;
  /* circumference = 2π×42 ≈ 263.9 */
  stroke-dasharray: 263.9;
  stroke-dashoffset: 263.9;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1);
  transform: rotate(-90deg);
  transform-origin: center;
}
.ring-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  line-height: 1;
  pointer-events: none;
}
.ring-score-num {
  display: block;
  font-family: var(--f-disp);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.ring-score-denom {
  display: block;
  font-size: 11px;
  color: var(--mid);
  margin-top: 2px;
}

.result-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-l);
  color: var(--forest);
  font-family: var(--f-disp);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.result-type-name {
  font-family: var(--f-disp);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}
.result-message {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Q score bars */
.q-bars {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 15px 17px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}
.q-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.q-bar-row:last-child { margin-bottom: 0; }
.q-bar-label {
  font-family: var(--f-disp);
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  width: 52px;
  flex-shrink: 0;
}
.q-bar-track {
  flex: 1;
  height: 6px;
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.q-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--forest);
  width: 0%;
  transition: width .9s cubic-bezier(.22,1,.36,1);
}
.q-bar-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

/* Detail preview box */
.detail-preview {
  background: linear-gradient(135deg, rgba(42,92,69,.04), rgba(42,92,69,.08));
  border: 1.5px solid var(--sage);
  border-radius: var(--r-md);
  padding: 18px 18px;
  margin-bottom: 20px;
}
.detail-preview-title {
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.dp-item:last-child { margin-bottom: 0; }
.dp-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.dp-body strong {
  display: block;
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.dp-body p { font-size: 12px; color: var(--mid); line-height: 1.55; }

.result-cta { text-align: center; }
.btn-get-detail {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--amber);
  color: var(--white);
  font-family: var(--f-disp);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,131,74,.35);
  transition: background .18s, transform .15s, box-shadow .15s;
  margin-bottom: 10px;
}
.btn-get-detail:hover {
  background: #d9703a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,131,74,.42);
}
.result-cta-meta { font-size: 11px; color: var(--mid); margin-bottom: 12px; }
.result-consult-link {
  display: inline-block;
  font-size: 13px;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
}
.result-consult-link:hover { text-decoration: underline; }

/* Email form ----------------------------------------------- */
.email-header { margin-bottom: 20px; }
.email-title {
  font-family: var(--f-disp);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.email-sub { font-size: 13px; color: var(--mid); line-height: 1.7; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.form-req { color: var(--amber); margin-left: 3px; font-size: 11px; }
.form-field {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .15s, background .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-field:focus { border-color: var(--forest); background: var(--white); }
select.form-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6E65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
textarea.form-field { resize: vertical; min-height: 68px; }

/* Theme chips */
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 980px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.theme-chip:hover { border-color: var(--sage); color: var(--forest); }
.theme-chip.checked {
  border-color: var(--forest);
  background: rgba(42,92,69,.06);
  color: var(--forest);
  font-weight: 700;
}
.theme-chip input { display: none; }
.theme-chip-check {
  color: transparent; /* スペースは常に確保し、色で表示を切り替える */
  transition: color .12s;
}
.theme-chip.checked .theme-chip-check { color: var(--forest); }

/* Consent */
.consent-wrap {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin-bottom: 14px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--forest);
  cursor: pointer;
}
.consent-label a { color: var(--forest); }

.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--amber);
  color: var(--white);
  font-family: var(--f-disp);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,131,74,.35);
  transition: background .18s, transform .15s, box-shadow .15s;
}
.btn-submit:hover:not(:disabled) {
  background: #d9703a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,131,74,.42);
}
.btn-submit:disabled { background: var(--sage); box-shadow: none; cursor: not-allowed; }
.form-note { text-align: center; font-size: 11px; color: var(--mid); margin-top: 9px; line-height: 1.6; }

/* Error message */
.field-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}
.form-field.invalid { border-color: #c0392b; }

/* Success ----------------------------------------------------- */
.success-wrap { text-align: center; padding: 8px 0; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(42,92,69,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--f-disp);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.success-body { font-size: 14px; color: var(--mid); line-height: 1.8; margin-bottom: 22px; }
.success-consult {
  background: var(--forest);
  border-radius: var(--r-md);
  padding: 20px 18px;
  text-align: left;
  margin-bottom: 16px;
}
.success-consult strong {
  display: block;
  font-family: var(--f-disp);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.success-consult p { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 13px; }
.btn-consult-sm {
  display: inline-block;
  background: var(--white);
  color: var(--forest);
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 980px;
  text-decoration: none;
  transition: background .18s, transform .15s;
}
.btn-consult-sm:hover { background: var(--sage-l); transform: scale(1.03); }
.success-back { font-size: 13px; color: var(--mid); text-decoration: none; display: inline-block; }
.success-back:hover { color: var(--forest); }

/* Roadmap ------------------------------------------------- */
.roadmap {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 18px;
  margin-bottom: 20px;
}
.roadmap-title {
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  text-align: center;
  margin-bottom: 18px;
}
.roadmap-track {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 0 8px;
}
.roadmap-line {
  position: absolute;
  top: 11px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--cream-d);
  border-radius: 2px;
  z-index: 0;
}
.roadmap-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--forest-l));
  border-radius: 2px;
  width: 0%;
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.roadmap-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.roadmap-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--cream-d);
  margin: 0 auto 8px;
  transition: border-color .4s, background .4s, transform .4s;
}
.roadmap-step.reached .roadmap-dot {
  border-color: var(--forest);
  background: var(--sage-l);
}
.roadmap-step.current .roadmap-dot {
  border-color: var(--forest);
  background: var(--forest);
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(42,92,69,0.15);
}
.roadmap-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.roadmap-step.current .roadmap-label,
.roadmap-step.current .roadmap-name { color: var(--forest); }
.roadmap-name {
  font-family: var(--f-disp);
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  line-height: 1.3;
}
.roadmap-here {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
  margin-top: 12px;
}

/* Trap teaser --------------------------------------------- */
.trap-teaser {
  background: linear-gradient(135deg, rgba(232,131,74,0.04), rgba(232,131,74,0.08));
  border: 1.5px solid rgba(232,131,74,0.25);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 20px;
}
.trap-teaser-title {
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}
.trap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--white);
  border-radius: var(--r-sm);
}
.trap-item:last-child { margin-bottom: 0; }
.trap-num {
  font-family: var(--f-disp);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}
.trap-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.blurred-text {
  filter: blur(4px);
  user-select: none;
}
.trap-unlock {
  font-size: 12px;
  color: var(--mid);
  margin-top: 12px;
  text-align: center;
  line-height: 1.6;
}
.trap-unlock strong { color: var(--amber); }

/* Urgency box --------------------------------------------- */
.urgency-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.urgency-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.urgency-body strong {
  display: block;
  font-family: var(--f-disp);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.urgency-body p {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
}

/* Responsive ----------------------------------------------- */
@media (max-width: 560px) {
  .wiz-card { padding: 22px 18px; }
  .q-title { font-size: 16px; }
}
