@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/lato-900.woff2") format("woff2"); }

:root {
  /* Rumble brand palette, taken from rumbleboxinggym.com */
  --red: #d50032;
  --red-deep: #bc002c;
  --ink: #191919;
  --black: #0c0c0c;
  --field: #262626;
  --line: #414141;
  --text: #ffffff;
  --muted: #b4b4b4;
  --error: #ff8a9d;
  --radius: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, p { margin: 0; }

[hidden] { display: none !important; }

/* ---------- Layout ---------- */

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 96px;
  min-height: 400px;
  padding: 20px 20px 28px;
  background: var(--black);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0) 26%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.82) 30%, rgba(12, 12, 12, 0) 68%);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: auto; }
.brand__name { font-weight: 900; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--red);
  border-radius: 4px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-weight: 900;
  font-size: clamp(52px, 15vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede { max-width: 30em; margin-top: 16px; font-size: 17px; line-height: 1.45; color: #ededed; }

/* ---------- Form panel ---------- */

.panel { flex: 1; display: flex; flex-direction: column; background: var(--ink); }

.panel__inner { width: 100%; max-width: 520px; margin: 0 auto; padding: 32px 20px 24px; }

h2 { font-weight: 900; font-size: 26px; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; }

.panel__intro { margin: 8px 0 24px; color: var(--muted); }

.field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }

.field > label, legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit; /* 16px keeps iOS from zooming on focus */
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder { color: #8a8a8a; }

input[type="text"]:focus-visible, input[type="tel"]:focus-visible, input[type="email"]:focus-visible {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(213, 0, 50, 0.7);
}

.field.has-error input[type="text"], .field.has-error input[type="tel"], .field.has-error input[type="email"] { border-color: var(--error); }

/* Keep browser autofill from flashing a light background on the dark form. */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px var(--field) inset;
  caret-color: var(--text);
}

/* Studio picker: three big tap targets instead of a dropdown. */
.studios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.studio { position: relative; display: block; cursor: pointer; }

.studio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.studio span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 6px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.15s, border-color 0.15s;
}

.studio:hover span { border-color: #8a8a8a; }
.studio input:checked + span { background: var(--red); border-color: var(--red); }
.studio input:focus-visible + span { border-color: #fff; box-shadow: 0 0 0 3px rgba(213, 0, 50, 0.7); }
.field.has-error .studio span { border-color: var(--error); }
.field.has-error .studio input:checked + span { border-color: var(--red); }

.error { margin-top: 6px; color: var(--error); font-size: 14px; }

.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }
.notice--error { background: rgba(213, 0, 50, 0.16); border: 1px solid var(--red); color: #ffd9df; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { margin: 0 0 18px; min-height: 65px; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.05s;
}

.button:hover { background: var(--red-deep); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.button[disabled] { opacity: 0.6; cursor: progress; }

.button--ghost { background: transparent; border: 2px solid #fff; }
.button--ghost:hover { background: #fff; color: var(--ink); }

.consent { margin-top: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #2c2c2c;
  color: #8f8f8f;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Confirmation and 404 pages ---------- */

.done {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.done__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.done__shade { position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 12, 0.62); }
.done .brand { padding: 20px; }

.done__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.done__body h1 { font-size: clamp(48px, 13vw, 112px); }
.done__body .lede { margin: 20px 0 32px; font-size: 19px; max-width: 28em; }
.done__body .button { width: auto; min-width: 240px; }

.done .footer { border-top-color: rgba(255, 255, 255, 0.16); color: #c4c4c4; }

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  .hero { min-height: 480px; padding: 28px 32px 40px; }
  .panel__inner { padding: 44px 24px 32px; }
  .done .brand { padding: 28px 32px; }
  .done__body { padding: 24px 32px 72px; }
}

@media (min-width: 960px) {
  .page { flex-direction: row; }
  .hero { flex: 1 1 54%; position: sticky; top: 0; height: 100vh; min-height: 640px; padding: 36px 48px 56px; }
  .hero__photo { object-position: 50% 30%; }
  .hero h1 { font-size: clamp(56px, min(6.2vw, 11vh), 100px); }
  .panel { flex: 1 1 46%; min-height: 100vh; justify-content: center; }
  .panel__inner { padding: 56px 40px 32px; margin: auto; }
  .lede { font-size: 19px; }
  h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
