.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: #333;
}

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

.calc-block select {
  cursor: pointer;
}

.calc-block button {
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

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

.input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-group input {
  flex: 1;
}

.input-group select {
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
  margin-top: 8px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.result-block {
  background: #f9f9f9;
  padding: 25px;
  border-top: 4px solid #0077cc;
  border-radius: 6px;
  flex: 1;
  min-width: 280px;
}

.result-block h2 {
  margin-top: 0;
  color: #0077cc;
}

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

.result-output .result-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-top: 2px;
}

.result-output .result-positive {
  color: #1e8e3e;
}

.result-output .result-negative {
  color: #c5221f;
}

.result-output .result-muted {
  font-size: 14px;
  color: #777;
}

.result-output .result-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 16px 0;
}

.result-output .result-error {
  color: #c5221f;
}

.calculator-description {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f2f6fa;
  border-top: 4px solid #0077cc;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 16px;
}

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