:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #6b7280;
  --primary: #3058a4;
  --primary-dark: #24447d;
  --accent: #d7d121;
  --border: #e5e7eb;
  --success: #73b62d;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  text-align: center;
  margin-bottom: 16px;
}

.app-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: block;
}

.app-header h1 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

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

.progress-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.screen {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.screen p { line-height: 1.5; }

.thanks {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--success);
}

.question-container {
  flex: 1;
}

.question-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.4;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.15s, background 0.15s;
}

.option:active { background: #f0f4ff; }

.option.selected {
  border-color: var(--primary);
  background: #eef3ff;
  font-weight: 600;
}

.option input { display: none; }

.scale-item {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.scale-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.scale-item-text {
  font-weight: 500;
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.scale-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.scale-pill {
  flex: 1 1 auto;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 0.82rem;
  cursor: pointer;
  min-width: 64px;
}

.scale-pill.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

textarea.open-answer {
  width: 100%;
  min-height: 140px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:active { background: var(--primary-dark); }

.btn.is-disabled {
  background: #a9bce8;
  color: #fff;
  cursor: not-allowed;
}

.btn-secondary {
  background: #eceff3;
  color: var(--text);
}

.btn-secondary.is-disabled {
  background: #eceff3;
  color: #b7bcc4;
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}
