/* Pathfinder wizard */
.pf-main { padding-block: clamp(20px, 5vw, 56px) 40px; position: relative; }
.pf-wrap { max-width: 760px; }
.pf-header { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 24px; }
.pf-title { margin: 0; }
.pf-subtitle { margin: 0; max-width: 46ch; }

.pf-progress-wrap { width: 100%; max-width: 520px; margin-top: 8px; }
.pf-progress-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pf-progress-bar-bg { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pf-progress-bar-fill { height: 100%; width: 0; border-radius: inherit; background: var(--grad-brand); transition: width .45s var(--ease, ease); }

.pf-card { padding: clamp(18px, 4vw, 36px); }
.pf-error-box { display: none; margin-bottom: 16px; }
.pf-error-box.is-visible { display: block; }

.pf-step { display: none; }
.pf-step.active { display: block; animation: pf-in .35s var(--ease, ease) both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(12px); } }
.pf-step-heading { margin: 0 0 6px; }
.pf-step-desc { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.pf-options-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pf-options-grid.grid-2 { grid-template-columns: 1fr 1fr; } }

.pf-option-label {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-lg, 18px); background: var(--surface);
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.pf-option-label:hover { border-color: var(--c-4); transform: translateY(-2px); }
.pf-option-label:focus-within { outline: 3px solid rgba(192,90,214,.35); outline-offset: 2px; }
.pf-option-label input { position: absolute; opacity: 0; pointer-events: none; }
.pf-option-marker {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong);
  display: grid; place-items: center; transition: all .2s;
}
.pf-option-label:has(input[type=checkbox]) .pf-option-marker { border-radius: 8px; }
.pf-option-label.is-selected, .pf-option-label:has(input:checked) {
  border-color: var(--c-3); background: color-mix(in srgb, var(--c-3) 10%, var(--surface));
  box-shadow: 0 6px 20px -8px rgba(123,44,191,.5);
}
.pf-option-label.is-selected .pf-option-marker, .pf-option-label:has(input:checked) .pf-option-marker {
  background: var(--grad-primary); border-color: transparent;
}
.pf-option-label.is-selected .pf-option-marker::after, .pf-option-label:has(input:checked) .pf-option-marker::after {
  content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px);
}
.pf-option-content { display: grid; gap: 2px; min-width: 0; }
.pf-option-title { font-weight: 800; color: var(--ink); line-height: 1.6; }
.pf-option-sub { font-size: 13px; color: var(--muted); }

.pf-form-group { margin-bottom: 16px; }
.pf-input { min-height: 48px; }
.pf-checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.pf-checkbox-label input { margin-top: 5px; flex: none; }
.pf-checkbox-label a { color: var(--accent); text-decoration: underline; }

.pf-nav-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pf-btn { min-height: 48px; }
.pf-nav-bar .pf-btn-next { margin-inline-start: auto; flex: 1; max-width: 320px; }
.pf-nav-bar .pf-btn-next .svg-icon, .pf-nav-bar .pf-btn-prev .svg-icon { flex: none; }

/* result */
.pf-result-header { display: grid; gap: 10px; justify-items: start; margin-bottom: 20px; }
.pf-result-title { margin: 0; }
.pf-analysis-card { border-radius: var(--r-lg, 18px); padding: 18px; background: color-mix(in srgb, var(--c-8) 22%, var(--surface)); border: 1px solid var(--line); margin-bottom: 24px; }
.pf-analysis-title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.pf-analysis-title .svg-icon { color: var(--c-6); }
.pf-analysis-text { margin: 0; line-height: 2; color: var(--ink-2); }
.pf-recs-title { margin: 0 0 12px; }
.pf-course-list { display: grid; gap: 12px; margin-bottom: 24px; }
.pf-course-card {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 16px; border-radius: var(--r-lg, 18px); border: 1px solid var(--line-strong); background: var(--surface);
  transition: transform .2s, border-color .2s, box-shadow .2s; color: var(--ink);
}
.pf-course-card:hover { transform: translateY(-3px); border-color: var(--c-4); box-shadow: var(--shadow-2); }
.pf-course-info { display: grid; gap: 4px; min-width: 0; }
.pf-course-tag { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pf-course-name { font-weight: 800; }
.pf-course-teacher { font-size: 13px; color: var(--muted); }
.pf-course-cta { display: grid; gap: 4px; justify-items: end; }
.pf-course-price { font-weight: 800; }
.pf-course-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent); min-height: 24px; }
.pf-result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-result-actions .btn { flex: 1 1 220px; }

@media (prefers-reduced-motion: reduce) {
  .pf-step.active { animation: none; }
  .pf-option-label, .pf-course-card, .pf-progress-bar-fill { transition: none; }
}
