:root {
  --brand-main: #1c6e14;
  --brand-main-hover: #086100;
  --brand-main-light: #b8c5f1;
  --brand-ink: #0f1728;
  --ink-subdued: #56607a;
  --line: #d0d6e4;
  --canvas: #f4f7fb;
  --card: #ffffff;
  --field-stack-gap: 0.9rem;
}

@font-face {
  font-family: "BWHaasText-55Roman";
  font-display: fallback;
  src: url("https://assets.bwbx.io/s3/fontservice/fonts/BWHaasText-55Roman-2558d87ee8.woff2") format("woff2"),
    url("https://assets.bwbx.io/s3/fontservice/fonts/BWHaasText-55Roman-887c01ff69.woff") format("woff");
}

@font-face {
  font-family: "BWHaasText-75Bold";
  font-display: fallback;
  src: url("https://assets.bwbx.io/s3/fontservice/fonts/BWHaasText-75Bold-f7da887a51.woff2") format("woff2"),
    url("https://assets.bwbx.io/s3/fontservice/fonts/BWHaasText-75Bold-7a4dd77baf.woff") format("woff");
}

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

body {
  margin: 0;
  color: var(--brand-ink);
  font-family: "neue-haas-grotesk-text", "BWHaasText-55Roman", "Graphik Web", "Segoe UI", sans-serif;
  background: var(--canvas);
}

a {
  color: inherit;
}

main {
  margin-top: 60px;
}

.container {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: var(--brand-main);
  box-shadow: 0 4px 4px rgb(0 0 0 / 4%);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-left: 16px;
  padding-right: 8px;
}

.brand {
  display: flex;
  align-items: center;
  height: 36px;
}

.brand img {
  width: 197px;
  height: 44px;
  max-width: 197px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-main-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  padding: 20px;
  transition: color 160ms ease;
}

.header-nav a img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: currentColor;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: #d1dbf7;
}

.hero {
  padding: 3rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  margin: 0 0 0.8rem;
  font-family: "BWHaasText-75Bold", "BWHaasText-55Roman", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.hero-copy {
  margin: 0;
  max-width: 70ch;
  color: var(--ink-subdued);
}

.form-card {
  margin: 1.6rem 0 3.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 30px 46px -34px rgb(15 23 42 / 40%);
  padding: clamp(1rem, 2.8vw, 1.7rem);
}

form {
  display: grid;
  gap: var(--field-stack-gap);
}

.form-section {
  display: grid;
  gap: var(--field-stack-gap);
}

.grid-two {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
  line-height: 1.3;
  align-content: start;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  background: #fff;
  color: #1f2638;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #8fb3ff;
  outline-offset: 1px;
}

.checkbox {
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 0.68rem;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  min-height: 20px;
}

.hint {
  margin: 0;
  color: var(--ink-subdued);
  font-size: 0.84rem;
}

.turnstile-wrap {
  min-height: 66px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: #fbfdff;
}

.conditional-block {
  border: 1px solid #e6edf8;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fbfdff;
  display: grid;
  gap: var(--field-stack-gap);
}

.is-hidden {
  display: none;
}

.yn-group {
  margin: 0;
  border: 1px solid #e6edf8;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.yn-group legend {
  padding: 0 0.2rem;
  font-size: 0.92rem;
}

.yn-options {
  display: grid;
  gap: 0.6rem;
}

.yn-options label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.yn-options input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
}

.stage-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--brand-main);
  color: #fff;
  padding: 0.72rem 1.2rem;
  min-height: 46px;
  font-family: "BWHaasText-75Bold", "BWHaasText-55Roman", sans-serif;
  cursor: pointer;
  transition: background-color 170ms ease, transform 120ms ease;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand-main);
  color: #fff;
  padding: 0.72rem 1.2rem;
  min-height: 46px;
  font-family: "BWHaasText-75Bold", "BWHaasText-55Roman", sans-serif;
  cursor: pointer;
  transition: background-color 170ms ease, transform 120ms ease;
}

button:hover,
button:focus-visible {
  background: var(--brand-main-hover);
}

button:active {
  transform: translateY(1px);
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

button.secondary {
  background: #e7edf8;
  color: #233850;
}

button.secondary:hover,
button.secondary:focus-visible {
  background: #d9e5f8;
}

.ineligible-panel {
  border: 1px solid #f3d2d2;
  border-radius: 10px;
  background: #fff5f5;
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.tiny-link {
  align-self: flex-start;
  background: transparent;
  color: #6d7188;
  border: 0;
  padding: 0;
  min-height: 0;
  font-size: 0.72rem;
  text-decoration: underline;
}

.tiny-link:hover,
.tiny-link:focus-visible {
  background: transparent;
  color: #4f5267;
}

.lockout {
  margin: 0;
  font-size: 0.85rem;
  color: #7f1616;
  background: #fff2f2;
  border: 1px solid #f2d0d0;
  border-radius: 10px;
  padding: 0.7rem;
}

#form-status {
  margin: 0;
  font-size: 0.9rem;
}

#form-status.success {
  color: #0f6d2a;
}

#form-status.error {
  color: #9c1a1a;
}

#gotcha-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 760px) {
  .container {
    width: min(980px, calc(100% - 1.1rem));
  }

  .header-inner {
    padding-left: 12px;
    padding-right: 8px;
    min-height: 60px;
  }

  .brand img {
    width: 168px;
    height: auto;
  }

  .header-nav {
    gap: 0;
  }

  .header-nav a {
    font-size: 13px;
    padding: 10px 8px;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .grid-two {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .form-actions {
    align-items: flex-start;
  }

  button {
    width: 100%;
  }
}
