/**
 * HomeoPilot Disposition Map – Frontend Styles
 */

.hpsf-disposition-finder {
  margin: 20px 0 40px;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/*--------------------------------------------------------------
# Section: Disposition selector
--------------------------------------------------------------*/
.hpsf-disposition-select h3 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.hpsf-disposition-intro {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
}

.hpsf-disposition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .hpsf-disposition-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .hpsf-disposition-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hpsf-disposition-item {
  display: block;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.hpsf-disposition-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hpsf-disposition-item input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.15);
}

.hpsf-disposition-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.hpsf-disposition-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

/* Submit button */
.hpsf-disposition-actions {
  margin-top: 20px;
}

.hpsf-disposition-submit {
  background: #0ea5e9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease-in-out;
}

.hpsf-disposition-submit:hover {
  background: #0284c7;
}

/*--------------------------------------------------------------
# Section: Results
--------------------------------------------------------------*/
.hpsf-disposition-results {
  margin-top: 40px;
}

.hpsf-disposition-results h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

.hpsf-disposition-remedy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.hpsf-disposition-remedy-table th,
.hpsf-disposition-remedy-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}

.hpsf-disposition-remedy-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.hpsf-disposition-remedy-table tr:nth-child(even) {
  background: #f9fafb;
}

.hpsf-disposition-remedy-table code {
  font-size: 12px;
  padding: 2px 4px;
  background: #f1f5f9;
  border-radius: 3px;
}

.hpsf-disposition-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 8px;
}

.hpsf-disposition-item.is-selected {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35);
  background: #ecfeff;
}
