/* Colors and star are taken from the printed giving card. */
:root {
  --red-top: #d71b34;
  --red: #c81b30;
  --red-bottom: #ab1b2a;
  --red-deep: #8f1522;
  --yellow: #ffc83d;
  --white: #f8f8f8;
  --ink: #26262b;
  --muted: #6b6b73;
  --line: #e6e1e2;
  --tint: #fdf1f2;
  --green: #2f7d4f;
  --font: "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--red-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
  background: linear-gradient(180deg, var(--red-top) 0%, var(--red-bottom) 100%) fixed;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header.top { text-align: center; padding: 4px 0 22px; }
.star { height: 84px; width: auto; display: block; margin: 0 auto 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin: 0 0 2px; }
.eyebrow.in-card { color: var(--red); }
h1 { font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; margin: 0; }

.card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 16px 36px rgba(80, 8, 18, .38);
}
.card h2 { font-weight: 800; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; color: var(--red); margin: 0 0 8px; }
.card p { margin: 0 0 14px; }
.card p.lead { color: var(--muted); }

[hidden] { display: none !important; }

label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password] {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  appearance: none;
}
input:focus { outline: 3px solid rgba(215, 27, 52, .25); border-color: var(--red); }
input.big {
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
  padding: 10px;
}
input.big::placeholder { color: #cfc9ca; font-weight: 600; }
input.bad { border-color: var(--red); background: var(--tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
}
.btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px 16px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--red-top), var(--red));
  box-shadow: 0 2px 0 var(--red-deep);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled] { opacity: .65; cursor: default; }
.link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
}
.btn.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); margin-top: 12px; }

.msg { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--red); min-height: 1px; }

.need {
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--yellow);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 6px;
}
.need .meta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.need .what { font-size: 20px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.need .amt { margin-top: 6px; font-weight: 700; }

.badge {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  background: var(--green); color: #fff;
}
.badge svg { width: 44px; height: 44px; }
.center { text-align: center; }
.bignum { font-size: 64px; font-weight: 800; line-height: 1; margin: 2px 0 8px; color: var(--ink); }
.door {
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--yellow);
  color: #4a3500;
  font-weight: 700;
  text-align: center;
}

.list { margin-top: 26px; }
.list h3 { font-weight: 800; font-size: 22px; margin: 0 0 4px; color: var(--white); }
.list p { color: rgba(255, 255, 255, .85); margin: 0 0 12px; font-size: 15px; }
.list .ward { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 18px 0 8px; }
.item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(80, 8, 18, .2);
}
.item .n { font-size: 18px; font-weight: 800; color: var(--red); min-width: 44px; }
.item .t { flex: 1; font-size: 16px; line-height: 1.3; }

.stat { text-align: center; color: rgba(255, 255, 255, .9); font-weight: 600; margin-top: 16px; font-size: 15px; }
.result { margin-top: 18px; border-radius: 12px; padding: 18px 16px; text-align: center; }
.result.yes { background: #e6f3ea; color: #1e5a38; }
.result.no { background: var(--tint); color: var(--red-deep); box-shadow: inset 0 0 0 2px var(--red); }
.result .title { font-size: 26px; font-weight: 800; line-height: 1.15; }
.result .sub { margin-top: 6px; font-size: 16px; color: var(--ink); }

footer { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-top: 28px; }

.spin::after {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.danger.spin::after { border-color: rgba(200, 27, 48, .3); border-top-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin::after { animation: none; } }
