/* Results */
.results-screen { display: none; animation: fadeUp 0.5s ease both; }
.results-screen.visible { display: block; }

.results-header { background: var(--dark); border-radius: 14px; padding: 32px; margin-bottom: 32px; color: var(--white); }
.results-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; font-weight: 500; }
.results-title { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 300; margin-bottom: 4px; }
.results-meta { font-size: 13px; color: rgba(255,255,255,0.5); }

.overall-risk { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.overall-risk.high { background: rgba(192,57,43,0.2); color: #ff6b6b; }
.overall-risk.medium { background: rgba(214,137,16,0.2); color: #ffd93d; }
.overall-risk.low { background: rgba(30,132,73,0.2); color: #6bcb77; }

/* Fall Risk Result Card */
.fall-risk-result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.frr-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.frr-body { padding: 22px; }

.frr-score-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.frr-big-number {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
}

.frr-score-detail {}

.frr-band-label {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.frr-formula-text { font-size: 13px; color: var(--muted); }

.frr-breakdown-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.frr-breakdown-chip {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--navy);
}

.frr-breakdown-chip.driving { background: #fdeaea; color: #6b1a1a; border-color: rgba(192,57,43,0.2); }

.frr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.frr-panel {
  background: var(--soft);
  border-radius: 10px;
  padding: 14px;
}

.frr-panel-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

.frr-panel-content { font-size: 13px; color: var(--navy); line-height: 1.5; }

.frr-actions-list { display: flex; flex-direction: column; gap: 6px; }

.frr-action {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.frr-action.urgent { background: #fdeaea; color: #6b1a1a; }
.frr-action.warning { background: #fef5e7; color: #5d3a00; }
.frr-action.routine { background: #eafaf1; color: #1a4a2e; }

.frr-notes-box {
  background: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--dark);
  line-height: 1.6;
  margin-top: 12px;
}

/* Room results */
.room-result { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.room-result-header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.room-result-body { padding: 22px; }

.findings-section { margin-bottom: 20px; }
.findings-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 12px; font-weight: 500; }

.finding-item { display: flex; gap: 12px; padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
.finding-item.risk { background: #fdeaea; color: #6b1a1a; }
.finding-item.action { background: #eafaf1; color: #1a4a2e; }
.finding-item.note { background: #fef9e7; color: #5d4000; }

.finding-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; margin-top: 5px; }

.summary-box { background: var(--gold-light); border: 1.5px solid var(--gold); border-radius: 12px; padding: 24px; margin: 32px 0; }
.summary-box h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400; color: var(--navy); margin-bottom: 12px; }

.priority-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.priority-item { display: flex; gap: 10px; font-size: 13px; color: var(--navy); line-height: 1.5; }
.priority-num { width: 20px; height: 20px; background: var(--navy); color: var(--white); border-radius: 50%; font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

.action-buttons { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.pdf-btn { background: var(--gold); color: var(--dark); border: none; border-radius: 10px; padding: 14px 32px; font-family: 'Fraunces', serif; font-size: 16px; cursor: pointer; transition: all 0.2s; font-weight: 400; }
.pdf-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.reset-btn { background: transparent; color: var(--muted); border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 32px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.reset-btn:hover { border-color: var(--navy); color: var(--navy); }

@media (max-width: 600px) {
  .frr-grid { grid-template-columns: 1fr; }
}
