body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background: #f5f5f5;
}

h1 {
  margin-bottom: 0.5rem;
}

.card {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 600px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

select {
  min-width: 150px;
  padding: 4px 6px;
}

.field {
  flex: 1 1 45%;
  min-width: 180px;
}

.result {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: bold;
}

.result span {
  font-weight: normal;
}

.note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #555;
}

/* Prevent long select text from breaking layout */
select {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ensure fields don't grow wider than their column */
.field {
  flex: 1 1 45%;
  min-width: 180px;
  max-width: 100%;
}

.notes-display {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f0f4f8;
  border-left: 4px solid #3b82f6;
  font-size: 0.9rem;
  color: #333;
}

.notes-display strong {
  display: block;
  margin-bottom: 4px;
}
