:root {
  --purple: #dd3333;
  --bg: #fbeeee;
  --red: #dd3333;
  --text: #202124;
  --muted: #5f6368;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
}
.container { max-width: 640px; margin: 0 auto; padding: 12px 12px 60px; }
.banner { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: 12px; box-shadow: 0 1px 4px rgba(32,33,36,.2); }
.card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
  margin-top: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.card:focus-within { box-shadow: 0 1px 6px rgba(32,33,36,.28); }
.card.invalid { border-color: var(--red); }
.header-card { border-top: 10px solid var(--purple); }
h1 { margin: 0 0 12px; font-size: 32px; font-weight: 400; }
.header-card p { margin: 0; font-size: 14px; color: var(--muted); }
.header-card p.thanks-message { font-size: 16px; color: var(--text); }
label { display: block; font-size: 16px; font-weight: 500; margin-bottom: 16px; line-height: 1.5; }
.req { color: var(--red); }
input, textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #dadce0;
  font: 400 14px Roboto, Arial, sans-serif;
  padding: 6px 0;
  outline: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-bottom-color: var(--purple); box-shadow: 0 1px 0 var(--purple); }
.error { margin: 10px 0 0; color: var(--red); font-size: 12px; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
button { font: 500 14px Roboto, Arial, sans-serif; cursor: pointer; border: none; border-radius: 4px; }
.btn-primary { background: var(--purple); color: #fff; padding: 10px 24px; transition: background .2s, box-shadow .2s; }
.btn-primary:hover { background: #c42a2a; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.btn-text { background: none; color: var(--purple); padding: 10px 12px; }
.btn-text:hover { background: rgba(221,51,51,.08); }
#load-error .btn-text { margin: 16px 0 0 -12px; }
[hidden] { display: none !important; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:disabled { opacity: .7; cursor: not-allowed; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner-error { margin: 12px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--red); border-radius: 8px; color: var(--red); font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; margin-bottom: 12px; }
.skeleton-title { height: 32px; width: 60%; }
.skeleton-line { height: 14px; width: 90%; }
.skeleton-line.short { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.voucher { margin: 20px 0 8px; padding: 16px; border: 2px dashed var(--purple); border-radius: 8px; background: #fff7f7; text-align: center; }
.voucher-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.voucher strong { font-size: 28px; letter-spacing: 3px; color: var(--purple); user-select: all; }
.notes { margin: 12px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.desc { white-space: pre-line; line-height: 1.6; margin-bottom: 12px !important; }
.hint { margin-top: 4px !important; }
.choices { display: flex; flex-direction: column; gap: 4px; }
.choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 4px; font-size: 14px; font-weight: 400; cursor: pointer; border-radius: 4px; position: relative; }
.choice:hover { background: rgba(221,51,51,.06); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-mark { flex: none; width: 20px; height: 20px; border: 2px solid #5f6368; border-radius: 50%; display: grid; place-items: center; transition: border-color .15s; }
.choice input[type="checkbox"] + .choice-mark { border-radius: 3px; }
.choice input:checked + .choice-mark { border-color: var(--purple); }
.choice input[type="radio"]:checked + .choice-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.choice input[type="checkbox"]:checked + .choice-mark { background: var(--purple); }
.choice input[type="checkbox"]:checked + .choice-mark::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.choice input:focus-visible + .choice-mark { box-shadow: 0 0 0 3px rgba(221,51,51,.25); }


@media (max-width: 480px) {
  .card { padding: 16px; }
  h1 { font-size: 26px; }
}
