:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #5f6c7b;
  --primary: #2f6fed;
  --primary-dark: #2456b8;
  --border: #d9e1ef;
  --success: #1f9d55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

h1 {
  margin-top: 0;
  font-size: 2.2rem;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

p {
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: transform 0.1s ease, background 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

button:disabled {
  background: #b4c3df;
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

button.secondary:hover {
  background: #eef3fc;
}

button.ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px dashed var(--primary);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.35);
  outline-offset: 2px;
}

.progress {
  margin: 16px 0 24px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e6edf8;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 0.3s ease;
}

.question {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.likert {
  display: grid;
  gap: 12px;
}

.likert label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.likert input {
  accent-color: var(--primary);
}

.likert label:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.15);
}

.result-score {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 12px 0;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: #edf3ff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 600;
}

.details-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

.category-bar {
  height: 8px;
  background: #e6edf8;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.category-bar span {
  display: block;
  height: 100%;
  background: var(--success);
}

.hints {
  margin-top: 16px;
  padding-left: 20px;
}

@media (max-width: 600px) {
  .card {
    padding: 24px;
  }

  h1 {
    font-size: 1.8rem;
  }
}
