:root {
  color-scheme: light;
  --bad: #e5484d;
  --neutral: #f5a623;
  --good: #2fb344;
  --text: #1a1a1a;
  --bg: #ffffff;
  --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 24px 16px;
}

.survey, .form-page, .thanks {
  width: 100%;
  max-width: 420px;
}

.logo {
  display: block;
  max-width: 120px;
  max-height: 120px;
  margin: 0 auto 16px;
  border-radius: 12px;
  object-fit: contain;
}

.survey, .thanks {
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
  text-align: center;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 32px;
  text-align: center;
}

.faces {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.face {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 8px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.face:active {
  transform: scale(0.95);
}

.face-bad { background: var(--bad); }
.face-neutral { background: var(--neutral); }
.face-good { background: var(--good); }

.emoji {
  font-size: 3rem;
  line-height: 1;
}

.label {
  font-size: 0.9rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 14px;
}

input, textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  width: 100%;
}

textarea {
  resize: vertical;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.error {
  color: var(--bad);
  font-size: 0.85rem;
  margin: 14px 0 0;
}

button {
  margin-top: 24px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--neutral);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

body.theme-bad button { background: var(--bad); }
body.theme-neutral button { background: var(--neutral); }

button:disabled {
  opacity: 0.6;
}

.thanks .emoji {
  display: block;
  font-size: 3.5rem;
  margin-bottom: 12px;
}
