body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 40px;
  background: #FEF6E4;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
  max-width: 200px;
  display: block;
  margin: 0 auto 20px auto;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  grid-column: 1 / -1;
  margin-top: 20px;
  color: #3498db;
  font-size: 18px;
}

.disclaimer {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px 20px;
}

form div {
  display: flex;
  flex-direction: column;
}

form label {
  font-weight: 600;
  margin-bottom: 5px;
}

form input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

form input:focus {
  border-color: #3498db;
  outline: none;
}

.toggle {
  grid-column: 1 / -1;
  text-align: center;
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: #333;
}

.toggle input {
  margin-right: 8px;
}

button {
  grid-column: 1 / -1;
  justify-self: center;
  background: #3498db;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

.results {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #ecf0f1;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.charts-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.chart-container {
  flex: 1 1 400px;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.warn {
  color: #b05b00;
  font-size: 13px;
  display: block;
  margin-top: 8px;
}

@media (max-width: 600px) {
  form { grid-template-columns: 1fr; }
  .charts-row { flex-direction: column; align-items: center; }
}

/* Back Link */
.back-link {
  margin: 2rem;
  text-align: center;
}

.back-link a {
  display: inline-block;
  padding: 10px 20px;
  background: #3498db;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-link a:hover {
  background: #3498db;
}

/* Results and charts start hidden */
.results, .result, .charts {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* When shown, fade them in */
.results.show, .result.show {
  display: block;
  opacity: 1;
}

.charts.show {
  display: flex;   /* flex for centering */
  opacity: 1;
}
