:root {
  --red: #860808;
  --red-2: #ed2f31;
  --yellow: #ffff00;
  --ink: #141414;
  --bg: #f7f4ef;
  --text: #141414;
  --muted: #5b6168;
  --border: #d6d2c8;
  --err: #b91c1c;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  padding: 24px 16px;
}
.card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 28px 24px;
  position: relative;
}
.head {
  text-align: center;
  margin: -28px -24px 22px -24px;
  padding: 26px 24px 22px 24px;
  background: var(--ink);
  border-radius: 14px 14px 0 0;
}
.head .brand {
  font-family: 'Impact', 'Oswald', 'Arial Black', sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}
.head .brand .accent { color: var(--red-2); cursor: default; user-select: none; -webkit-user-select: none; }
.head h1 {
  margin: 4px 0 4px 0;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.01em;
}
.head .sub { margin: 0; color: #cfcfcf; font-size: 13px; }

.intro {
  margin: 0 0 18px 0;
  padding: 14px 16px;
  background: #faf8f2;
  border: 1px solid #e6e1d3;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
.intro p { margin: 0 0 10px 0; }
.intro .benefits { margin: 0; padding-left: 20px; }
.intro .benefits li { margin: 4px 0; }
.intro a { color: var(--red); text-decoration: underline; }
h2 { font-size: 18px; margin: 0 0 12px 0; }
.sub { color: var(--muted); font-size: 14px; }
label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
  color: #374151;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
label.check input { margin-top: 3px; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
}
input:focus { outline: 2px solid var(--red-2); outline-offset: 1px; border-color: var(--red-2); }
button.primary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button.primary:hover { background: var(--red-2); }
button.primary:disabled { background: #9ca3af; cursor: not-allowed; }
button.secondary {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary:hover { background: #f5f3ee; }
.choice {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.choice:first-of-type { border-top: 0; padding-top: 6px; }
.choice-help {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}
.choice-help strong { color: var(--ink); }
button.link {
  display: block;
  margin: 12px auto 0 auto;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--red-2);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
.err {
  color: var(--err);
  font-size: 14px;
  margin-top: 12px;
}
.match-card {
  margin: 12px 0 4px 0;
  padding: 14px 16px;
  background: #faf8f2;
  border: 1px solid #e6e1d3;
  border-radius: var(--radius);
}
.match-card > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #ece7d8;
  font-size: 14px;
}
.match-card > div:last-child { border-bottom: 0; }
.match-card .label { color: var(--muted); }
.waiver {
  margin: 0 0 16px 0;
  padding: 14px 16px;
  background: #faf8f2;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  max-height: 280px;
  overflow-y: auto;
}
.waiver p { margin: 0 0 10px 0; }
.waiver p:last-child { margin-bottom: 0; }
#square-card-container {
  margin: 8px 0 4px 0;
  min-height: 90px;
}
.busy {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.busy[hidden] { display: none; }
[hidden] { display: none !important; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid #d1d5db;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
