body { background: var(--bg); }
.q-page { max-width: 680px; margin: 0 auto; padding: 28px 18px 72px; }
.preview-banner { background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.5); color: #facc15; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 20px; text-align: center; }
.q-header { text-align: center; margin-bottom: 28px; }
.q-header h1 { margin: 0 0 4px; font-size: 1.5rem; }
.q-tagline { margin: 0; color: var(--red-bright); font-weight: 700; font-family: var(--font-display); }
.q-message { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; text-align: center; color: var(--ink-70); }
.q-message.error { color: var(--red-bright); border-color: rgba(var(--red-rgb), 0.5); }
.q-message.thanks h2 { color: var(--white); margin: 0 0 8px; }
.q-message.thanks p { margin: 0; }
#q-form h2 { margin: 0 0 8px; font-size: 1.25rem; }
.q-intro { color: var(--ink-70); margin: 0 0 24px; font-size: 0.95rem; }

.q-question { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.q-question.invalid { border-color: var(--red-bright); }
.q-label { display: block; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.q-label .req { color: var(--red-bright); margin-left: 4px; }
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-option { position: relative; }
.q-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.q-option span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--bg-alt); color: var(--white); font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-option:hover span { border-color: rgba(var(--red-rgb), 0.7); }
.q-option input:checked + span { background: var(--red); border-color: var(--red-bright); }
.q-option input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.q-scale-hint { display: flex; justify-content: space-between; color: var(--ink-50); font-size: 0.75rem; margin-top: 8px; }
.q-question textarea {
  width: 100%; min-height: 96px; background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--white); font-size: 0.95rem; font-family: var(--font-body); resize: vertical; line-height: 1.5;
}
.q-question textarea:focus { outline: none; border-color: var(--red-bright); }
.q-submit { width: 100%; padding: 16px; font-size: 1rem; margin-top: 8px; }
.q-option-na span { font-weight: 500; font-size: 0.88rem; color: var(--ink-70); }
.q-option-na input:checked + span { color: var(--white); }
