:root {
  --green: #2fa742;
  --green-dark: #0e5d2a;
  --yellow: #ffe44d;
  --ink: #202321;
  --muted: #69726b;
  --line: #d8ded8;
  --paper: #ffffff;
  --soft: #f4f7f2;
  --blue: #175f8f;
  --red: #b42318;
  --shadow: 0 18px 60px rgba(16, 35, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

a {
  color: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 4px 0 var(--green);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.toplinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toplinks a,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--green-dark);
  border: 1px solid rgba(14, 93, 42, 0.2);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.intro {
  max-width: 740px;
  margin-bottom: 24px;
}

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.12;
}

.lead {
  margin: 14px 0 0;
  color: #38423b;
  font-size: 1.08rem;
  max-width: 68ch;
}

.legal-note {
  margin: 14px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.panel {
  min-width: 0;
  margin-top: 20px;
  padding: clamp(18px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 66, 37, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2,
.panel h3 {
  margin: 0;
  line-height: 1.2;
}

.panel-caption {
  max-width: 66ch;
  margin: 7px 0 0;
  color: var(--muted);
}

.time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #433900;
  background: var(--yellow);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.registration-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  min-width: 0;
}

.choice-button:hover,
.choice-button:focus-visible {
  border-color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(14, 93, 42, 0.11);
  transform: translateY(-2px);
  outline: none;
}

.choice-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 900;
}

.choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.choice-copy strong {
  font-size: 1.08rem;
}

.choice-copy small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.choice-arrow {
  color: var(--green-dark);
  font-size: 1.45rem;
  font-weight: 900;
}

.back-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid rgba(14, 93, 42, 0.24);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

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

label,
legend {
  color: #293129;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc9c0;
  border-radius: 8px;
  outline: none;
}

input[readonly] {
  color: #59635c;
  background: #eef2ed;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 95, 143, 0.16);
}

textarea {
  resize: vertical;
}

.wide-label,
.skill-fieldset,
.consents {
  display: block;
  margin-top: 20px;
}

.form-section-head {
  margin: 26px 0 14px;
}

.team-intro {
  margin-bottom: 24px;
  padding: 18px;
  background: #f0f6ef;
  border-left: 4px solid var(--green);
}

.team-intro .form-section-head {
  margin: 0 0 12px;
}

.team-members {
  margin-top: 30px;
  padding-top: 4px;
  border-top: 2px solid var(--green-dark);
}

.member-card {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.member-card:first-of-type {
  border-top: 0;
}

.member-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.member-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.member-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.3fr;
  gap: 14px;
}

.skill-fieldset {
  padding: 0;
  border: 0;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.chip-grid label,
.consents label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  color: #293129;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.chip-grid input,
.consents input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.consents {
  display: grid;
  gap: 10px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #0a4a21;
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.message {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
}

.invite-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.invite-row,
.stat,
.team-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.invite-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.invite-row code {
  display: block;
  margin-top: 4px;
  color: #4b554d;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.invite-email {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.copy-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(14, 93, 42, 0.24);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat strong {
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.team-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.terms-page .panel {
  box-shadow: 0 10px 34px rgba(16, 35, 23, 0.08);
}

.terms-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.terms-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.terms-summary strong,
.terms-meta {
  color: var(--green-dark);
}

.terms-summary span,
.terms-content p,
.terms-content li {
  color: #37423b;
}

.terms-content {
  max-width: 920px;
}

.terms-content h2 {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.terms-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.terms-content ol {
  padding-left: 22px;
}

.terms-content li + li {
  margin-top: 10px;
}

.team-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.team-row ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.team-row li {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .topbar,
  .panel-head,
  .form-actions,
  .team-row,
  .invite-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: grid;
  }

  .toplinks {
    width: 100%;
  }

  .toplinks a {
    flex: 1;
  }

  h1 {
    font-size: 2rem;
  }

  .form-grid,
  .chip-grid,
  .member-grid,
  .registration-choices,
  .stats-grid,
  .terms-summary,
  .team-row,
  .invite-row {
    grid-template-columns: 1fr;
  }

  .choice-button {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 96px;
    padding: 14px;
  }

  .choice-number {
    width: 46px;
    height: 46px;
  }

  .primary-button,
  .secondary-button,
  .back-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .page {
    width: min(100% - 20px, 1040px);
    padding-top: 30px;
  }

  .panel {
    padding: 16px;
  }

  .brand small {
    display: none;
  }

  .choice-button {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .choice-arrow {
    display: none;
  }
}
