/* 🧘 Калькулятор стресса — фиолетовая спокойная тема */

.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='%236b4f9e' 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: #b39ddb;
}

.calc-block select:focus {
  outline: none;
  border-color: #6b4f9e;
  box-shadow: 0 0 0 3px rgba(107, 79, 158, 0.18);
}

.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: #6b4f9e;
  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: #5a3f8a;
}

.calc-block button:active {
  background: #4a3373;
}

/* 🎴 Карточка результата */
.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;
}

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

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

.stress-score small {
  font-size: 1rem;
  font-weight: normal;
  color: #888;
}

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

.stress-score-wrap.zone-moderate .stress-score {
  color: #b26a00;
}

.stress-score-wrap.zone-elevated .stress-score {
  color: #e65100;
}

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

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

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

.stress-badge.moderate {
  background: #f9a825;
  color: #333;
}

.stress-badge.elevated {
  background: #ef6c00;
}

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

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

/* 🌡 Шкала стресса: зелёный → жёлтый → оранжевый → красный */
.stress-gauge {
  position: relative;
  height: 16px;
  border-radius: 10px;
  margin: 20px 0 4px;
  background: linear-gradient(90deg, #2e7d32 0%, #2e7d32 25%, #f9a825 37%, #f9a825 50%, #ef6c00 62%, #ef6c00 75%, #d32f2f 87%, #d32f2f 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stress-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;
}

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

/* 📋 Рекомендации */
.stress-recs-title {
  font-size: 14px;
  color: #6b4f9e;
  margin: 16px 0 6px;
  text-align: center;
}

.stress-recs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.stress-recs li {
  position: relative;
  padding: 6px 0 6px 26px;
  border-bottom: 1px dashed #eee;
}

.stress-recs li:last-child {
  border-bottom: none;
}

.stress-recs li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 6px;
  color: #6b4f9e;
  font-weight: bold;
}

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

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

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

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

.stress-breakdown .stress-total-row td {
  border-top: 2px solid #6b4f9e;
  font-weight: bold;
  color: #6b4f9e;
}

.stress-breakdown .stress-total-row td:last-child {
  text-align: right;
}

/* ⚠️ Дисклеймер */
.stress-note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
