/* The Revolutions — survey pages (new rider and personal link). Mobile-first, large touch targets. */
:root {
  --bg: #f5efe6; --surface: #fffdf8; --ink: #1a1a16; --ink-soft: #4a4a44; --ink-mute: #7a756f;
  --forest: #1e3a2c; --forest-light: #3a6b4a; --terra: #c45a3e; --amber: #b8842b;
  --cream: #ebe3d3; --line: #d9d1bf; --error: #8a3520; --error-bg: #f8e6e1;
  --display: 'Iowan Old Style', 'Palatino', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }

.sv-header { background: var(--forest); color: var(--surface); }
.sv-header-inner { max-width: 680px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sv-brand-mark { width: 40px; height: 40px; flex: none; background: var(--terra); color: var(--surface); font-family: var(--display); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.sv-brand-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.sv-brand-sub { font-size: 12px; opacity: 0.8; letter-spacing: 0.05em; text-transform: uppercase; }

.sv-main { max-width: 680px; margin: 0 auto; padding: 16px 12px 48px; }
.sv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; margin-bottom: 14px; }
.sv-card:focus { outline: none; }
.sv-title { font-family: var(--display); font-size: 26px; line-height: 1.2; color: var(--forest); margin: 0 0 8px; letter-spacing: -0.02em; }
.sv-intro p { margin: 8px 0 0; }
.sv-section-title { font-family: var(--display); font-size: 21px; color: var(--forest); margin: 0 0 4px; }

.sv-question { padding: 14px 0 4px; border-top: 1px solid var(--cream); }
.sv-section-title + .sv-question { border-top: none; }
.sv-label { display: block; font-weight: 600; margin: 0 0 6px; }
.sv-required { font-weight: 400; color: var(--ink-mute); font-size: 14px; }
.sv-hint { color: var(--ink-mute); font-size: 15px; margin: -2px 0 8px; }
.sv-input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; font-size: 17px; }
.sv-textarea { min-height: 96px; resize: vertical; }
.sv-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.sv-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,58,44,0.18); }

.sv-choices { display: grid; gap: 8px; }
.sv-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sv-choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--forest); }
.sv-choice:has(input:checked) { border-color: var(--forest); background: #eef4ee; }
.sv-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(30,58,44,0.18); }
.sv-scale-row { margin: 4px 0 12px; }
.sv-scale-label { margin: 0 0 6px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.sv-scale-row .sv-choices { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) {
  .sv-scale-row .sv-choices { grid-template-columns: repeat(4, 1fr); }
  .sv-scale-row .sv-choice { justify-content: flex-start; }
}

.sv-note { margin: 10px 0 0; padding: 10px 12px; background: #eef4ee; border-left: 4px solid var(--forest-light); border-radius: 6px; color: var(--forest); font-size: 15px; }
.sv-error-text { color: var(--error); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.sv-error-text:empty { display: none; }
.sv-question.has-error .sv-input, .sv-question.has-error .sv-choice { border-color: var(--error); }

.sv-send { text-align: center; }
.sv-turnstile { display: flex; justify-content: center; min-height: 65px; margin-bottom: 8px; }
.sv-btn { display: block; width: 100%; min-height: 56px; margin-top: 8px; padding: 12px 16px; background: var(--forest); color: var(--surface); border: none; border-radius: 10px; font-size: 19px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sv-btn:disabled { opacity: 0.6; cursor: default; }
.sv-message { margin: 12px 0 0; padding: 12px; border-radius: 8px; font-size: 16px; text-align: left; }
.sv-message.error { background: var(--error-bg); color: var(--error); border: 1px solid #ecc5b9; }
.sv-message.ok { background: #e7efe6; color: var(--forest); border: 1px solid #c9dac6; }
.sv-done p { margin: 8px 0 0; }
