/* === Diagnosis Wizard CSS === */

.diagnosis-container { max-width: 720px; margin: 90px auto 40px; padding: 0 20px; }

/* Reassurance banner */
.diag-reassurance {
  display: flex; align-items: center; gap: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 12px 18px; margin-bottom: 20px;
  font-size: 0.85rem; font-weight: 700; color: #166534;
}
.diag-reassurance i { font-size: 1.1rem; color: #059669; }

/* Progress */
.diag-progress-wrapper { margin-bottom: 20px; }
.diag-progress-bar { background: #e2e8f0; height: 6px; border-radius: 3px; overflow: hidden; }
.diag-progress-fill { background: #059669; height: 100%; width: 33%; transition: width 0.4s ease; border-radius: 3px; }
.diag-progress-info { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.85rem; font-weight: 700; color: #64748b; }
.diag-back-btn { background: none; border: none; color: #64748b; font-size: 0.85rem; cursor: pointer; padding: 4px 8px; display: inline-flex; align-items: center; gap: 4px; visibility: hidden; }
.diag-back-btn.show { visibility: visible; }
.diag-time-hint { color: #059669; }

/* Card */
.diag-card {
  background: #fff; padding: 30px; border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.diag-q-title { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin-bottom: 6px; line-height: 1.5; }
.diag-q-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #059669; color: #fff; border-radius: 50%; font-size: 0.85rem; margin-right: 8px; }
.diag-q-sub { font-size: 0.85rem; color: #64748b; margin-bottom: 24px; line-height: 1.5; }
.diag-field-label { display: block; font-weight: 700; color: #475569; margin-bottom: 10px; font-size: 0.95rem; }
.diag-required { background: #059669; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-left: 8px; }
.diag-divider { height: 1px; background: #e2e8f0; margin: 24px 0; }

/* Area chips */
.diag-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diag-area-chip {
  padding: 12px 8px; border: 2px solid #e2e8f0; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 700;
  color: #475569; transition: all 0.15s ease; text-align: center;
}
.diag-area-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.diag-area-chip.active { border-color: #059669; background: #f0fdf4; color: #059669; }
.diag-select { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; font-weight: 700; color: #334155; }

/* Options (radio/checkbox) */
.diag-option-group, .diag-checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.diag-option {
  display: flex; align-items: center; padding: 14px 18px;
  border: 2px solid #e2e8f0; border-radius: 10px; cursor: pointer;
  transition: all 0.15s ease; font-weight: 600; color: #475569; font-size: 0.95rem;
}
.diag-option:hover { border-color: #cbd5e1; background: #f8fafc; }
.diag-option input { margin-right: 12px; transform: scale(1.2); accent-color: #059669; }
.diag-option.selected { border-color: #059669; background: #f0fdf4; color: #065f46; }

/* Next / Submit buttons */
.diag-next-wrap { text-align: center; margin-top: 28px; }
.diag-next-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 40px; background: #059669; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all 0.15s ease; box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.diag-next-btn:hover { background: #047857; transform: translateY(-1px); }
.diag-next-btn.disabled { opacity: 0.4; pointer-events: none; }
.diag-submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 50px; background: #059669; color: #fff; border: none;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 20px rgba(5,150,105,0.35);
  transition: all 0.15s ease;
}
.diag-submit-btn:hover { background: #047857; transform: translateY(-2px); }

/* Privacy note */
.diag-privacy-note {
  text-align: center; margin-top: 16px; font-size: 0.8rem; color: #94a3b8;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Step visibility */
.step-container { display: none; }
.step-container.active { display: block; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Loading */
.diag-loading-box { max-width: 400px; margin: 80px auto; text-align: center; }
.diag-loading-icon { font-size: 2.5rem; color: #059669; margin-bottom: 20px; }
.diag-loading-text { font-size: 1.05rem; font-weight: 800; color: #334155; margin-bottom: 16px; }
.diag-loading-bar-wrap { background: #e2e8f0; height: 6px; border-radius: 3px; overflow: hidden; }
.diag-loading-bar-fill { background: linear-gradient(90deg, #059669, #10b981); height: 100%; width: 0%; transition: width 1s ease; }

/* Fallback */
.diag-fallback-card {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px;
  padding: 30px; text-align: center; margin-top: 20px;
}
.diag-fallback-card h3 { color: #92400e; margin-bottom: 10px; }
.diag-fallback-card p { color: #78350f; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.diag-fallback-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Result rationale */
.result-rationale { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.result-rationale h3 { color: #065f46; font-size: 1rem; margin-bottom: 12px; }
.result-rationale li { color: #047857; font-weight: 700; font-size: 0.95rem; padding: 4px 0; list-style: none; }
.result-rationale li::before { content: '✓ '; color: #059669; font-weight: 800; }

/* Mobile */
@media (max-width: 768px) {
  .diagnosis-container { margin-top: 70px; }
  .diag-card { padding: 20px; }
  .diag-area-grid { grid-template-columns: repeat(2, 1fr); }
  .diag-q-title { font-size: 1.05rem; }
}
