/* style.css */
:root {
  --primary-color: #007bff;
  --light-bg: #f2f2f2;
  --highlight-bg: #e6f2ff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header h1 {
  flex-grow: 1;
  text-align: center;
  margin: 0 20px;
  font-size: 1.8em;
  color: #333;
}

.header-img {
  max-height: 80px;
  width: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

form {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 10px 15px;
}

legend {
  font-weight: 600;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: #555;
}

input[type="number"],
select {
  margin-top: 5px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-sizing: border-box;
  font-size: 1rem;
}

input[type="checkbox"] {
  width: auto;
  margin-top: 0;
}

.results-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.results {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 280px;
}

.results h2 {
  margin-top: 0;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  color: #333;
}

.results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results li {
  margin: 8px 0;
  color: #555;
}

.highlight {
  font-weight: bold;
  font-size: 1.2em;
  color: var(--primary-color);
  background-color: var(--highlight-bg);
  padding: 5px;
  border-radius: var(--radius);
  margin-top: 10px;
}

.percentage-table {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.percentage-table h2 {
  margin-top: 0;
  color: #333;
}

.percentage-table table {
  width: 100%;
  border-collapse: collapse;
}

.percentage-table th,
.percentage-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.percentage-table th {
  background-color: var(--highlight-bg);
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .header h1 {
    order: 3;
    margin-top: 10px;
  }

  form, .results, .percentage-table {
    padding: 15px;
  }

  .results li {
    font-size: 0.9em;
  }
}
