.problem-evaluator-section {
  scroll-margin-top: 88px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, #fff8f6 100%);
  box-shadow: var(--shadow);
}

.problem-evaluator-heading {
  display: grid;
  gap: 0.8rem;
}

.problem-evaluator-heading h2 {
  margin-bottom: 0.35rem;
}

.problem-evaluator-heading p:last-child {
  margin-bottom: 0;
}

.problem-evaluator-note {
  width: fit-content;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(7, 30, 56, 0.1);
  border-radius: 999px;
  background: #f5f8fa;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.problem-evaluator-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.problem-evaluator-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 80px;
  padding: 0.85rem;
  border: 1px solid rgba(174, 42, 42, 0.15);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.problem-evaluator-card:hover,
.problem-evaluator-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(174, 42, 42, 0.45);
  outline: none;
  box-shadow: 0 10px 24px rgba(7, 30, 56, 0.08);
}

.problem-evaluator-card strong,
.problem-evaluator-card small {
  display: block;
}

.problem-evaluator-card small {
  margin-top: 0.18rem;
  color: var(--muted);
  line-height: 1.35;
}

.problem-evaluator-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 1.2rem;
  font-weight: 900;
}

.problem-evaluator-arrow {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 900;
}

.problem-evaluator-dialog {
  width: min(700px, calc(100% - 1rem));
  max-height: calc(100vh - 1rem);
  padding: 0;
  border: 1px solid rgba(7, 30, 56, 0.15);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(7, 30, 56, 0.28);
}

.problem-evaluator-dialog::backdrop {
  background: rgba(7, 30, 56, 0.66);
  backdrop-filter: blur(5px);
}

.problem-evaluator-dialog form {
  padding: 1.15rem;
}

.problem-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.problem-dialog-heading h2 {
  margin-bottom: 0.35rem;
}

.problem-dialog-heading p:last-child {
  margin-bottom: 0;
}

.problem-question-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.problem-question {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(7, 30, 56, 0.13);
  border-radius: 14px;
  background: #f8fafc;
}

.problem-question legend {
  padding: 0 0.2rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.4;
}

.problem-question label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.68rem 0.75rem 0 0;
  color: var(--text);
  font-size: 0.88rem;
}

.problem-question input {
  width: 19px;
  height: 19px;
  accent-color: var(--accent-dark);
}

.problem-evaluator-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.problem-secondary-button {
  min-height: 44px;
  padding: 0.68rem 0.85rem;
  border: 1px solid rgba(7, 30, 56, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.problem-result {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 15px;
}

.problem-result[data-risk="green"] {
  border: 1px solid rgba(28, 150, 90, 0.25);
  background: #edf9f3;
}

.problem-result[data-risk="yellow"] {
  border: 1px solid rgba(214, 143, 0, 0.28);
  background: #fff8e5;
}

.problem-result[data-risk="red"] {
  border: 1px solid rgba(174, 42, 42, 0.28);
  background: #fff0ef;
}

.problem-result-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.problem-result-title p,
.problem-result-immediate p,
.problem-result-disclaimer,
.problem-result-uncertain {
  margin-bottom: 0;
}

.problem-result-light {
  width: 19px;
  height: 19px;
  margin-top: 0.08rem;
  border: 3px solid rgba(7, 30, 56, 0.12);
  border-radius: 999px;
}

.problem-result[data-risk="green"] .problem-result-light { background: #1c965a; }
.problem-result[data-risk="yellow"] .problem-result-light { background: #e6a400; }
.problem-result[data-risk="red"] .problem-result-light { background: #c93434; }

.problem-result-immediate,
.problem-result-uncertain {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.problem-result-disclaimer {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.problem-contact {
  width: 100%;
  margin-top: 0.85rem;
}

@media (min-width: 760px) {
  .problem-evaluator-section {
    padding: 1.4rem;
  }

  .problem-evaluator-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .problem-evaluator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
