/* ================================
   6A20 — Zaburzenia psychotyczne
   Wizard diagnostyczny
   ================================ */

.psych-wizard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* pasek kroków */
.psych-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.psych-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.psych-step-dot.active {
  background: var(--accent, #1976d2);
  border-color: var(--accent, #1976d2);
  color: white;
}

.psych-step-dot.done {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.psych-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  transition: background 0.2s;
}

.psych-step-line.done {
  background: #4caf50;
}

/* nagłówek kroku */
.psych-step-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.psych-step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
}

.psych-step-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

/* zawartość kroku */
.psych-step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* checkboxy */
.psych-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psych-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: background 0.13s, border-color 0.13s;
  user-select: none;
}

.psych-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent, #1976d2);
  cursor: pointer;
  flex-shrink: 0;
}

.psych-check-row:hover {
  border-color: var(--accent, #1976d2);
  background: #eef3ff;
}

.psych-check-row.active {
  background: color-mix(in srgb, var(--accent, #1976d2) 10%, white);
  border-color: var(--accent, #1976d2);
  color: #1e3a6e;
  font-weight: 500;
}

/* chipy czasu */
.psych-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.psych-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
  user-select: none;
}

.psych-chip:hover {
  border-color: var(--accent, #1976d2);
  background: #eef3ff;
}

.psych-chip.active {
  background: var(--accent, #1976d2);
  border-color: var(--accent, #1976d2);
}

.psych-chip-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.psych-chip.active .psych-chip-label {
  color: white;
  font-weight: 600;
}

.psych-chip-sub {
  font-size: 11px;
  color: #9ca3af;
}

.psych-chip.active .psych-chip-sub {
  color: rgba(255,255,255,0.65);
}

/* przyciski TAK/NIE */
.psych-yn {
  display: flex;
  gap: 8px;
}

.psych-yn-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}

.psych-yn-btn.yes:hover  { border-color: #4caf50; background: #f1f8f2; color: #2e7d32; }
.psych-yn-btn.no:hover   { border-color: #ef5350; background: #fdf3f3; color: #c62828; }
.psych-yn-btn.yes.active { background: #4caf50; border-color: #4caf50; color: white; }
.psych-yn-btn.no.active  { background: #ef5350; border-color: #ef5350; color: white; }

/* nawigacja */
.psych-nav {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.psych-nav-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
  color: #374151;
}

.psych-nav-btn:hover {
  border-color: var(--accent, #1976d2);
  background: #eef3ff;
  color: var(--accent, #1976d2);
}

.psych-nav-btn.primary {
  background: var(--accent, #1976d2);
  border-color: var(--accent, #1976d2);
  color: white;
}

.psych-nav-btn.primary:hover {
  background: #1565c0;
  border-color: #1565c0;
  color: white;
}

.psych-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* wynik finalny */
.psych-result-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psych-result-row {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.psych-result-row.highlight {
  background: color-mix(in srgb, var(--accent, #1976d2) 8%, white);
  border-color: var(--accent, #1976d2);
}

.psych-result-row.green {
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.psych-result-row.warn {
  background: #fff8e1;
  border-color: #ffe082;
}

.psych-result-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 5px;
}

.psych-result-main {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.psych-result-sub {
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
}

.psych-diff-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #374151;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
}

.psych-diff-row:last-child { border-bottom: none; }

.psych-diff-icon { font-size: 13px; flex-shrink: 0; }

.psych-reset-btn {
  padding: 8px 0;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.13s;
  text-align: center;
}

.psych-reset-btn:hover {
  background: #f3f4f6;
}

.psych-note {
  font-size: 11.5px;
  color: #8a6500;
  padding: 8px 12px;
  background: #fff8e1;
  border-radius: 8px;
  border: 1.5px solid #ffe082;
}
