/* Shared by the 4 calculator tools only (date/loan-interest/bmi/cidr), all 12 languages.
   Linked as ../../css/categories/calculator.css, after css/style.css + css/lang/{lang}.css
   and before the tool's own css/tools/{tool}.css. Per-tool input types (number/date/text)
   and .result-main/.result-unit/.result-sub font sizes genuinely differ, so they live in
   each tool's css/tools file. */

.card {
  padding: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;   /* a grown label must be able to push the field to the next line */
  margin-bottom: 14px;
}
/* min-width, not width: a label longer than this floor (fr/pl/ru have several)
   must be allowed to grow instead of spilling over the field next to it. */
.form-row label {
  min-width: 90px;
  flex-shrink: 0;
  font-size: 13px;
  color: #555;
}
/* flex items default to min-width:auto; without this a field refuses to shrink
   and pushes itself out of .main-col on a narrow screen. */
.form-row input, .form-row select { min-width: 0; }
.form-row input:focus { border-color: #0078d4; }

.btn-calc {
  width: 100%;
  padding: 11px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.result-box {
  display: none;
  margin-top: 16px;
  background: #f0f6ff;
  border: 1px solid #c5ddf9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.result-box.show { display: block; }
