:root {
  --brand-green: #0a5028;
  --brand-green-dark: #073d1e;
  --brand-green-soft: #e9f2ed;
  --brand-green-pale: #f4faf6;
  --brand-border: #bfd5c7;
  --ink: #161812;
  --muted: #68726b;
  --cream: #f7f4eb;
  --white: #ffffff;
  --line: #dfe5df;
  --error: #b42318;
  --success: #137333;
  --shadow: 0 28px 70px rgba(10, 80, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(10, 80, 40, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 45%, #eef5ef 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 62px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--brand-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a.active {
  border-bottom: 2px solid var(--brand-green);
}

.nav-links a:hover {
  color: var(--brand-green-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 30px;
  align-items: start;
}

.hero-copy {
  position: sticky;
  top: 108px;
  overflow: hidden;
  min-height: 680px;
  border-radius: 34px;
  padding: 46px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.17), transparent 23%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.10), transparent 24%),
    var(--brand-green);
  box-shadow: var(--shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 36px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.eyebrow,
.small-label {
  margin: 0;
  color: var(--brand-green);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 10px 13px;
  margin-bottom: 24px;
  color: #d7f3df;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.66;
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 44px;
}

.hero-cards article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-cards span {
  color: #bfe2ca;
  font-size: 13px;
  font-weight: 900;
}

.hero-cards h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.hero-cards p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.registration-card {
  border: 1px solid var(--brand-border);
  border-radius: 34px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.card-heading {
  margin-bottom: 26px;
}

.card-heading h2 {
  margin: 9px 0 10px;
  color: var(--brand-green-dark);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.card-heading p:not(.small-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.field,
.checkbox-line {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

label {
  color: var(--brand-green-dark);
  font-size: 13px;
  font-weight: 900;
}

label span,
.checkbox-line span {
  color: var(--muted);
  font-weight: 600;
}

label span span,
label > span,
.field label span {
  color: var(--error);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(10, 80, 40, 0.13);
}

textarea {
  resize: vertical;
}

.checkbox-line {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.checkbox-line input,
.option-card input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--brand-green);
}

.organization-panel,
.conditional-section {
  margin-top: 24px;
  border-radius: 26px;
  border: 1px solid var(--brand-border);
  background: var(--brand-green-pale);
  padding: 22px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h3,
.conditional-section h3 {
  margin: 8px 0 0;
  color: var(--brand-green-dark);
  font-size: 21px;
  letter-spacing: -0.015em;
}

.option-list {
  display: grid;
  gap: 11px;
}

.option-card {
  display: flex;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(10, 80, 40, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.option-card:hover {
  border-color: var(--brand-green);
  background: var(--white);
}

.option-card strong {
  display: block;
  color: var(--brand-green-dark);
  font-size: 15px;
}

.option-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hidden {
  display: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  color: var(--white);
  background: var(--brand-green);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background: var(--brand-green-dark);
  box-shadow: 0 12px 28px rgba(10, 80, 40, 0.22);
  transform: translateY(-1px);
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

code {
  color: var(--brand-green);
  font-weight: 900;
}

.result-box {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: var(--brand-green);
  color: #eaf5ee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

.result-box.success {
  background: #ecf8f0;
  color: #0a5028;
  border: 1px solid #b9dcc6;
}

.result-box.error {
  background: #fff1f0;
  color: var(--error);
  border: 1px solid #f5c2bd;
}

@media (max-width: 1040px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
    min-height: auto;
  }

  .hero-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 1200px);
  }

  .hero-copy,
  .registration-card {
    border-radius: 26px;
    padding: 24px;
  }

  .form-grid,
  .hero-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    height: 48px;
  }
}
