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 styling */
.disclaimer {
  grid-column: 1 / -1;   /* span both columns */
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

/* Two-column form layout */
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 styling */
.toggle {
  grid-column: 1 / -1;   /* span both columns */
  text-align: center;
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: #333;
}

.toggle input {
  margin-right: 8px;
}

/* Button Styling */
button {
   grid-column: 1 / -1;       /* span all grid columns */
  justify-self: center;      /* center horizontally */
  margin-top: 20px;          /* add spacing above */
  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 Section */
.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);
}

/* Chart Section */
.chart-container {
  display: none;
  margin-top: 25px;
  max-width: 500px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-left: auto;
  margin-right: auto;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 600px) {
  form {
    grid-template-columns: 1fr;
  }
}

/* Back Link Styling */
.back-link {
  margin: 2rem 0;
  display: flex;
  justify-content: center;   /* centers horizontally */
}

.back-link a {
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-link a:hover {
  background: #2980b9;
}
