.disclaimer {
  color: #6b7280;
  font-size: smaller;
}

.calculator {
  background-color: #fafbfc;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.form-group {
  margin-bottom: 18px;
}

.form-group > label, .label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

input[type="number"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus, select:focus {
  outline: none;
  border-color: #86c06a;
  box-shadow: 0 0 0 3px rgba(134, 192, 106, 0.15);
}

.inline-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-options .option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  margin: 4px 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.inline-options .option:hover {
  border-color: #86c06a;
  background: #f5fbe9;
}

.inline-options .option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.inline-options .option input[type="radio"]:checked {
  border-color: #5d9847;
  background: #5d9847;
}

.inline-options .option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
}

.inline-options .option span {
  user-select: none;
}

.highest-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: normal;
}

.highest-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9ca3af;
  border-radius: 6px;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.highest-option input[type="checkbox"]:checked {
  background: #5d9847;
  border-color: #5d9847;
}

.highest-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.highest-option { position: relative; }

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.info-icon:hover { background: #d1d5db; }

.info-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 240px;
  max-width: 90vw;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-size: 14px;
  line-height: 1.4;
  display: none;
}

.info-popover.show { display: block; }

#calculateButton {
  background: linear-gradient(90deg, #86c06a 0%, #5d9847 100%);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#calculateButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 152, 71, 0.3);
}

.result {
  margin-top: 24px;
  padding: 20px;
  background: #f5fbe9;
  border: 1px solid #e2f2cc;
  border-radius: 16px;
  text-align: center;
}

.result h2 {
  margin-top: 0;
  color: #374151;
  font-weight: 700;
}

.amount {
  font-size: 28px;
  font-weight: 700;
  color: #5d9847;
}

.info {
  font-style: italic;
  color: #6b7280;
  font-size: 14px;
}

.total-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2f2cc;
}

.calculator .hidden {
  display: none;
}

.explain-title { margin: 10px 0 12px; font-size: 16px; font-weight: 600; }
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  text-align: left;
  margin-top: 10px;
}
.explain-grid .label { color: #6b7280; }
.explain-grid .value { font-weight: 600; color: #374151; }
.explain-notes { margin: 12px 0 0; padding-left: 20px; text-align: left; color: #6b7280; }
.explain-notes li { margin: 4px 0; }

@media (min-width: 560px) {
  .explain-grid { grid-template-columns: 160px 1fr; }
}
