/* Genius at Work — surveys.geniusatwork.io
   Brand colors and type match the parent site (geniusatwork.io). */
:root {
  --blue:      #2563EB;
  --blue-dk:   #1D4ED8;
  --blue-lt:   #3B82F6;
  --blue-pale: #EFF6FF;
  --blue-mid:  #BFDBFE;
  --navy:      #0F172A;
  --slate:     #475569;
  --muted:     #94A3B8;
  --border:    #E2E8F0;
  --cloud:     #F8FAFC;
  --white:     #FFFFFF;
  --error:     #B3261E;

  --radius:    10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 2px 6px rgba(15,23,42,0.05);
  --shadow:    0 4px 12px rgba(15,23,42,0.06), 0 12px 32px rgba(15,23,42,0.08);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── BRAND HEADER ── */
.brand-bar {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.brand-bar a {
  display: inline-flex;
  text-decoration: none;
}
.brand-bar svg {
  display: block;
}

/* ── CARD ── */
.card {
  max-width: 760px;
  margin: 24px auto 48px;
  padding: 40px 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.narrow {
  max-width: 480px;
}

/* ── TYPE ── */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--navy);
  margin-bottom: 12px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

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

p { color: var(--navy); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--blue-pale);
  color: var(--blue-dk);
  padding: 2px 6px;
  border-radius: 5px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dk); text-decoration: underline; }

/* ── SURVEY HEADER ── */
.survey-header { margin-bottom: 32px; }
.survey-header .intro {
  margin-top: 14px;
  color: var(--slate);
}
.survey-header .intro p { margin: 0 0 8px; color: inherit; }

/* ── QUESTIONS ── */
.question {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.question legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
  padding: 0;
}

.required {
  color: var(--error);
  margin-left: 4px;
}

.help {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0 0 10px;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { resize: vertical; min-height: 110px; }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-mid);
}

/* ── CHOICES ── */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.choice:hover {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}

.choice input { margin: 0; accent-color: var(--blue); }

/* ── RATING ── */
.rating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.rating-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-pill:hover {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}

.rating-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ── ACTIONS ── */
.actions { margin-top: 32px; }

button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

button:hover:not(:disabled) {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.error {
  color: var(--error);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .card { padding: 24px; margin: 16px; }
  .brand-bar { padding: 0 16px; margin-top: 16px; }
  h1 { font-size: 1.4rem; }
}
