body {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  background: #fafafa;
  text-align: center;
  padding: 0;
  margin: 0;
}

h1, h2 {
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 24px;
  color: #222;
}

#quiz-form {
  max-width: 800px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.question {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: left;
}

.question p {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: #222;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

label {
  display: flex;
  align-items: center;
  margin-right: 0;
  margin-bottom: 0;
  font-size: 1.08rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s;
  font-weight: 400;
  color: #222;
}

input[type="radio"] {
  accent-color: #4285F4;
  margin-right: 8px;
  transform: scale(1.25);
}

label:hover, label:focus-within {
  background: #e3eafc;
}

button[type="submit"] {
  background: #4285F4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 44px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover {
  background: #174ea6;
  color: #fff;
}

#results {
  max-width: 800px;
  margin: 32px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px 32px;
  font-size: 1.15rem;
  color: #222;
}

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 32px;
}

.result-card {
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(66,133,244,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1.5px solid #e0e4ea;
  padding: 24px 20px 18px 20px;
  min-width: 180px;
  max-width: 220px;
  min-height: 320px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.result-factor {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4285F4;
  margin-bottom: 10px;
  text-align: center;
}

.result-score {
  color: #4285F4;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 8px;
  text-align: center;
}

.result-explanation {
  font-size: 0.98rem;
  color: #444;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 900px) {
  #quiz-form, #results {
    max-width: 98vw;
    padding: 16px 2vw;
  }
  .question {
    padding: 14px 2vw;
  }
  h1, h2 {
    font-size: 1.3rem;
  }
  .options-row {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  #quiz-form, #results {
    max-width: 98vw;
    padding: 8px 2vw;
  }
  .results-grid {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .result-card {
    min-width: 0;
    max-width: 98vw;
    width: 100%;
    padding: 12px 4vw 10px 4vw;
    min-height: 0;
    margin-bottom: 8px;
  }
  .result-factor {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .result-score {
    font-size: 1.5rem;
    margin-bottom: 8px;
    margin-top: 4px;
  }
  .result-explanation {
    font-size: 0.95rem;
  }
  h1, h2 {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 16px;
  }
}

/* Version badge under page titles */
.version-pill {
  font-size: 0.85rem;
  line-height: 1.2;
  color: #666;
  margin: -8px 0 16px 0;
}