/* TRA NY 7s 2026 feedback — black, red, white only */
:root {
  --black: #000000;
  --black-soft: #0c0c0c;
  --white: #ffffff;
  --red: #c8102e;
  --red-hot: #e01538;
  --line: rgba(255, 255, 255, 0.16);
  --mute: rgba(255, 255, 255, 0.68);
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --wrap: 40rem;
  --pad: 1.25rem;
}

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

html, body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

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

button, input, textarea, select { font: inherit; color: inherit; }

.progress {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 200ms ease;
}


.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding-bottom: 4rem;
}

header.hero {
  padding: 2.25rem 0 1.75rem;
  text-align: center;
}

.logo {
  width: min(15.5rem, 72vw);
  margin: 0 auto 1.15rem;
}

.rule {
  width: 4.5rem;
  height: 2px;
  background: var(--red);
  margin: 0 auto 1.35rem;
  border: 0;
}

.eyebrow {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

h1 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.lede {
  color: var(--mute);
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.time {
  display: inline-block;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

section.block {
  padding: 1.7rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 1.15rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field { margin: 0 0 1.45rem; }

.field legend,
.q {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
}

.req {
  color: var(--red);
  font-weight: 700;
  margin-left: 0.15rem;
}

.hint {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 0.7rem;
}

.choices {
  display: grid;
  gap: 0.55rem;
}

.choices.two { grid-template-columns: 1fr 1fr; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--black-soft);
  border: 1px solid var(--line);
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 120ms ease, background 120ms ease;
}

.choice:hover { border-color: var(--white); }

.choice:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.choice:has(input:checked) {
  border-color: var(--red);
  background: #1a0307;
}

.choice input {
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: none;
  border: 2px solid var(--white);
  background: transparent;
  display: grid;
  place-content: center;
}

.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"] { border-radius: 0; }

.choice input:checked {
  border-color: var(--red);
  background: var(--red);
}

.choice input:checked::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  background: var(--white);
}

.choice input[type="radio"]:checked::after { border-radius: 50%; }

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.scale.nps {
  grid-template-columns: repeat(6, 1fr);
}

.scale input { position: absolute; opacity: 0; pointer-events: none; }

.scale label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  background: var(--black-soft);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.scale label:hover { border-color: var(--white); }

.scale label:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.scale label:has(input:checked) {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--mute);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.other, .hidden-unless { display: none; margin-top: 0.7rem; }
.other.is-open, .hidden-unless.is-open { display: block; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0.85rem;
  outline: none;
}

textarea { min-height: 6.2rem; resize: vertical; }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-color: var(--red); }

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

.actions { padding: 0.4rem 0 2rem; }

.error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.45rem 0 0;
}

.field.is-invalid .error { display: block; }

.field.is-invalid .choice,
.field.is-invalid .scale label,
.field.is-invalid input[type="text"],
.field.is-invalid input[type="email"],
.field.is-invalid textarea {
  border-color: var(--red);
}

.form-error {
  display: none;
  background: #1a0307;
  border: 1px solid var(--red);
  color: var(--white);
  padding: 0.8rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.form-error.is-on { display: block; }

button.submit {
  width: 100%;
  min-height: 3.25rem;
  background: var(--red);
  color: var(--white);
  border: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}

button.submit:hover { background: var(--red-hot); }
button.submit:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
button.submit:disabled { opacity: 0.6; cursor: wait; }

.fine {
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0.85rem 0 0;
  text-align: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.5rem;
  text-align: center;
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 500;
}

footer strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.thanks {
  display: none;
  text-align: center;
  padding: 3.2rem 0 4rem;
}

.thanks.is-on { display: block; }

.thanks h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.thanks p {
  color: var(--mute);
  margin: 0 auto;
  max-width: 32rem;
}

body.is-done #form,
body.is-done .thanks { display: block; }

@media (max-width: 420px) {
  .choices.two { grid-template-columns: 1fr; }
  .scale.nps { grid-template-columns: repeat(6, 1fr); }
  .scale label { min-height: 2.7rem; font-size: 0.9rem; }
}

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

.scale.with-na {
  grid-template-columns: repeat(5, 1fr);
}
.scale.with-na label:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 540px) {
  .scale.nps { grid-template-columns: repeat(11, 1fr); }
}
