/* ⚖️ Калькулятор юридических рисков — форма и шкала риска */

.calc-intro {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
  color: #222;
}

/* 🎛 Стилизованные селекты */
.calc-block select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block select:hover {
  border-color: #999;
}

.calc-block select:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

.field-hint {
  display: block;
  color: #888;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.calc-block button:hover {
  background: #005fa3;
}

.calc-block button:active {
  background: #004f87;
}

/* 🎴 Современная карточка результата */
.result-block h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #222;
}

.result-output {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: none;
}

/* 🔢 Результат: крупное число и бейдж */
.risk-score-wrap {
  text-align: center;
}

.risk-score {
  font-size: 2.6rem;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 6px;
  color: #222;
}

/* Цвет числа соответствует зоне риска */
.risk-score-wrap.zone-low .risk-score {
  color: #2e7d32;
}

.risk-score-wrap.zone-mid .risk-score {
  color: #b26a00;
}

.risk-score-wrap.zone-high .risk-score {
  color: #d32f2f;
}

.risk-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
}

.risk-badge.low {
  background: #2e7d32;
}

.risk-badge.mid {
  background: #f9a825;
  color: #333;
}

.risk-badge.high {
  background: #d32f2f;
}

.risk-verdict {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin: 10px 0 4px;
  line-height: 1.5;
}

/* 🌡 Шкала риска: красный → жёлтый → зелёный */
.risk-gauge {
  position: relative;
  height: 16px;
  border-radius: 10px;
  margin: 20px 0 4px;
  background: linear-gradient(90deg, #e53935 0%, #e53935 40%, #ffb300 55%, #43a047 70%, #43a047 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.risk-marker {
  position: absolute;
  top: -7px;
  width: 10px;
  height: 30px;
  border-radius: 4px;
  background: #222;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  transition: left 0.6s ease;
}

.risk-zone-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.risk-gauge-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* 📋 Разбивка по факторам */
.risk-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.risk-breakdown th,
.risk-breakdown td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.risk-breakdown th {
  background: #f5f5f5;
  font-size: 13px;
}

.risk-breakdown td:last-child {
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
}

.risk-breakdown .opponent-row td {
  color: #555;
  font-weight: normal;
}

.risk-breakdown .opponent-row td:last-child {
  font-weight: normal;
}

.risk-adjust {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #d4e6f7;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.risk-note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
