:root {
  --red: #db0000;
  --red-dark: #b80000; /* hover only */
  --ink: #1f2328;
  --muted: #4a525c;
  --line: #d5d8dc;
  --bg: #f3f4f6;
  --gold: #f2a900;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--red); }

.page { max-width: 600px; margin: 0 auto; padding: 20px 16px 48px; }
.brand { display: flex; justify-content: center; padding: 4px 0 18px; }
.brand img { height: 46px; width: auto; }
.card { background: #fff; border-radius: 14px; padding: 32px 24px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
@media (min-width: 560px) { .card { padding: 40px 44px; } }

.screen { display: flex; flex-direction: column; gap: 18px; }
.screen.center { align-items: center; text-align: center; }
h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.meta { margin: -8px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.question { display: block; margin: 0 0 12px; font-size: 19px; font-weight: 600; line-height: 1.35; padding: 0; }
.question.small { font-size: 16px; }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
form { display: flex; flex-direction: column; gap: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stars: radio buttons drawn as stars. Hovering or choosing one fills it and those before it. */
.stars { display: flex; gap: 6px; flex-direction: row; }
.stars label { position: relative; cursor: pointer; padding: 4px; border-radius: 8px; }
.stars input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.star { display: block; width: 44px; height: 44px; background: #d0d3d8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5 4.7 1.3 6.7L12 17.4l-6.05 3.3 1.3-6.7-5-4.7 6.8-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5 4.7 1.3 6.7L12 17.4l-6.05 3.3 1.3-6.7-5-4.7 6.8-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars label.on .star { background: var(--gold); }
.stars input:focus-visible + .star { outline: 3px solid var(--ink); outline-offset: 3px; }

.choices { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.choice { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 18px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.choice:has(input:checked) { border-color: var(--red); background: #fff5f5; }

.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
  padding: 13px 26px; border-radius: 8px; font: inherit; font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn.primary { background: var(--red); color: #fff; align-self: flex-start; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.wide { align-self: stretch; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .cap { font-size: 13px; font-weight: 500; }
.btn.primary .cap { color: #ffe6e7; }
.btn.secondary .cap { color: var(--muted); }
.screen.center .btn.primary { align-self: center; }
.row { display: flex; align-items: center; gap: 20px; }

.link { background: none; border: 0; padding: 10px 4px; font: inherit; font-size: 16px; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.center-self { align-self: center; }
.platforms { display: flex; flex-direction: column; gap: 12px; }
.platforms .btn { align-self: stretch; }

textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; padding: 12px; border: 1.5px solid var(--line); border-radius: 8px; resize: vertical; margin-bottom: 22px; }
textarea:focus, .choice:focus-within, .dropzone:focus-within { outline: 3px solid #f7c5c8; outline-offset: 1px; border-color: var(--red); }

.upload { margin-bottom: 18px; }
.dropzone { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #b9bec5; border-radius: 10px; padding: 16px; cursor: pointer; position: relative; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 36px; height: 36px; flex: none; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 10px; font-size: 15px; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.files .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files progress { width: 80px; accent-color: var(--red); }
.files .bad { color: var(--red); font-weight: 600; }
.files .link { padding: 4px; font-size: 14px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; margin-bottom: 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }
.notice { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.tick { width: 60px; height: 60px; border-radius: 50%; background: #fce8e9; position: relative; }
.tick::after { content: ""; position: absolute; left: 21px; top: 15px; width: 14px; height: 24px; border: solid var(--red); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.next { margin: 6px 0 0; font-size: 18px; }

.error { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; background: #fde8e8; color: #8e1b21; font-size: 15px; }
/* headings are focused on each new screen for screen readers; no visible box needed */
[tabindex="-1"]:focus { outline: none; }
.btn { text-align: center; }
/* Hover only on devices with a mouse, so a tapped button on a phone keeps the same red */
@media (hover: hover) {
  .btn.primary:hover { background: var(--red-dark); }
  .btn.secondary:hover { border-color: var(--ink); }
}
