/* ===== Калькулятор стоимости развода: приглушённая розово-фиолетовая схема ===== */

.calculator-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  font-family: 'Segoe UI', sans-serif;
}

.calc-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.calc-block label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: #4a3a4f;
}

.calc-block input,
.calc-block select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-size: 16px;
  border: 1px solid #d9c6d6;
  border-radius: 6px;
  background-color: #fdfbfd;
  color: #333;
  box-sizing: border-box;
}

.calc-block input:focus,
.calc-block select:focus {
  outline: none;
  border-color: #8b5a7d;
  box-shadow: 0 0 0 3px rgba(139, 90, 125, 0.15);
}

.calc-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8b5a7d;
  flex-shrink: 0;
}

/* Строка с чекбоксом */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-weight: 600;
  color: #4a3a4f;
  cursor: pointer;
  user-select: none;
}

.checkbox-label:hover input[type="checkbox"] {
  box-shadow: 0 0 0 3px rgba(201, 138, 138, 0.2);
}

/* Поле цены иска — появляется при споре об имуществе */
.claim-field {
  display: block;
  animation: claimFade 0.35s ease;
}

.claim-field.hidden {
  display: none;
}

@keyframes claimFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Подсказка под селектом */
.hint-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9c7d96;
}

.calc-block button {
  margin-top: 25px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8b5a7d 0%, #c98a8a 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 90, 125, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.calc-block button:hover {
  background: linear-gradient(135deg, #77476c 0%, #bd7676 100%);
  box-shadow: 0 4px 12px rgba(139, 90, 125, 0.35);
}

.calc-block button:active {
  transform: translateY(1px);
}

/* Блок результатов */
.result-block {
  background: linear-gradient(160deg, #fbf6fa 0%, #f6edf4 100%);
  padding: 25px;
  border-top: 4px solid #8b5a7d;
  border-radius: 4px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 1px 4px rgba(139, 90, 125, 0.08);
}

.result-block h2 {
  margin-top: 0;
  color: #7d5a8b;
  font-size: 20px;
}

.result-output p {
  margin: 12px 0;
  font-size: 17px;
  color: #3d3040;
}

.result-output strong {
  color: #7d5a8b;
}

/* Итоговая строка — выделена */
.result-output .total-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed #d9c6d6;
  font-size: 19px;
  font-weight: 700;
  color: #4a2f45;
}

.result-output .total-row strong {
  color: #8b5a7d;
  font-size: 22px;
}

/* Предупреждение о детях и суде */
.result-output .warning-row {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f9ece8;
  border-top: 3px solid #d98a8a;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #8a4a42;
}

/* Ошибка */
.result-output .error-row {
  margin-top: 8px;
  font-size: 15px;
  color: #a33;
}

.calculator-description {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background: linear-gradient(160deg, #fbf6fa 0%, #f4eaf2 100%);
  border-top: 4px solid #8b5a7d;
  border-radius: 4px;
  line-height: 1.6;
  font-size: 16px;
}

.calculator-description h2,
.calculator-description h3 {
  color: #7d5a8b;
  margin-top: 20px;
}

.calculator-description ul {
  margin: 10px 0 10px 20px;
}
