/* 🧾 НДС калькулятор — форма, режимы расчёта и результат */

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

/* 📦 Уведомление-ссылка на основной калькулятор НДС */
.redirect-note {
  margin: 14px 0 2px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef4ff;
  border: 1px solid #c9dcf5;
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
}

.redirect-note a {
  color: #0077cc;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.redirect-note a:hover {
  text-decoration: underline;
}

/* 🔢 Поля ввода сумм */
.calc-block input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block input[type="text"]:hover {
  border-color: #999;
}

.calc-block input[type="text"]:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

/* 🎛 Стилизованные селекты */
.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;
  padding: 18px 18px 12px;
}

/* 🔢 Крупное число НДС и бейдж со ставкой */
.vat-amount-wrap {
  text-align: center;
}

.vat-amount {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin: 8px 0 8px;
  color: #0077cc;
}

.vat-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  background: #0077cc;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.vat-mode-label {
  text-align: center;
  font-size: 13.5px;
  color: #666;
  margin: 10px 0 2px;
  line-height: 1.4;
}

/* 📋 Разбивка расчёта */
.vat-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

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

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

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

.vat-breakdown tr.total-row td {
  font-weight: bold;
  border-top: 2px solid #0077cc;
  border-bottom: none;
  color: #0077cc;
}

/* 📐 Формула под таблицей */
.vat-formula {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #d4e6f7;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

/* ❌ Ошибка ввода */
.error-message {
  margin: 0;
  padding: 10px 0;
  color: #d32f2f;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* 📝 Примечание */
.vat-note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
