:root {
  color-scheme: light;
  --page: #0f8f61;
  --surface: #ffffff;
  --surface-soft: #f4fbf7;
  --ink: #13241c;
  --muted: #52655d;
  --line: #dceee5;
  --field: #ffffff;
  --field-ink: #13241c;
  --purple: #0f8f61;
  --purple-dark: #09613f;
  --orange: #f28d38;
  --teal: #13795b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(150deg, #13a56f 0%, var(--page) 42%, #075437 100%);
  font-family: Arial, Helvetica, sans-serif;
}

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

.page {
  width: 100%;
  min-height: 100vh;
  padding: 34px 18px 48px;
}

.sheet {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(8, 75, 49, 0.32);
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 34px 30px;
  background: var(--surface-soft);
  text-align: center;
}

.logo {
  width: min(100%, 680px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(19, 36, 28, 0.12);
}

.eyebrow {
  margin: 24px 0 8px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 2.45rem;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.intro {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.transport-strip {
  width: min(100%, 560px);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 143, 97, 0.18);
}

.registration-form {
  width: min(100% - 44px, 840px);
  margin: 0 auto;
  padding: 30px 0 30px;
}

.form-step[hidden] {
  display: none;
}

.form-section-title {
  margin: 30px 0 16px;
  color: var(--purple-dark);
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 900;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.form-row label {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  color: #101010;
  background: var(--label);
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  font-weight: 800;
  line-height: 1.16;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-width: 0;
  color: var(--field-ink);
  background-color: var(--field);
  border: 1px solid #d6e8df;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 8px 22px rgba(19, 36, 28, 0.08);
}

.upload-field {
  margin: 18px 0;
  padding: 18px;
  background: #f4fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(19, 36, 28, 0.07);
}

.upload-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.upload-field p,
.step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.upload-field input[type="file"] {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  color: var(--field-ink);
  background: #fff;
  border: 1px dashed #9bcdb8;
  border-radius: 8px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--purple-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-row textarea {
  min-height: 94px;
  resize: vertical;
}

.form-row select {
  min-height: 48px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--purple) 50%),
    linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 21px,
    calc(100% - 16px) 21px;
  background-repeat: no-repeat;
  background-size: 7px 7px;
  padding-right: 44px;
}

.form-row-tall label {
  align-items: flex-start;
  padding-top: 12px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.upload-field input[type="file"]:focus {
  border-color: var(--purple);
  box-shadow:
    0 0 0 4px rgba(15, 143, 97, 0.16),
    0 10px 26px rgba(19, 36, 28, 0.1);
}

.label-cyan {
  --label: #d7f3e7;
}

.label-blue {
  --label: #c5eadb;
}

.label-green {
  --label: #e0f1d8;
}

.label-orange {
  --label: #f8deb8;
}

.label-yellow {
  --label: #f0f3b5;
}

.label-pink {
  --label: #d6ead0;
}

.label-ice {
  --label: #e1f4ee;
}

.label-sage {
  --label: #cfe8c7;
}

.label-rose {
  --label: #e9ead2;
}

.label-violet {
  --label: #d8efdf;
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  margin-bottom: 6px;
  gap: 14px;
  flex-wrap: wrap;
}

button {
  min-height: 54px;
  padding: 14px 22px;
  color: #fff;
  background: #0c5036;
  border: 1px solid rgba(12, 80, 54, 0.16);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(19, 36, 28, 0.14);
}

button:hover {
  background: #09613f;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

button:focus-visible {
  outline: 3px solid rgba(15, 143, 97, 0.34);
  outline-offset: 2px;
}

button.secondary {
  color: var(--purple-dark);
  background: #e1f4ee;
  border-color: #b7dfce;
}

button.secondary:hover {
  background: #d1ecdf;
}

button.primary {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  width: min(100%, 460px);
  font-size: 1.16rem;
  letter-spacing: 0;
}

button.primary:hover {
  background: var(--purple-dark);
}

.actions-split {
  align-items: center;
  justify-content: center;
  margin-top: 64px;
}

.actions-split .secondary {
  width: min(100%, 180px);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--purple-dark);
  font-weight: 700;
  text-align: center;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px 36px;
  background: #f4fbf7;
}

.footer-logos {
  width: min(100%, 900px);
  height: auto;
  display: block;
}

@media (max-width: 680px) {
  .page {
    padding: 16px 10px 30px;
  }

  .masthead {
    padding: 26px 16px 22px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .form-section-title {
    margin-top: 24px;
  }

  .intro {
    font-size: 0.94rem;
  }

  .registration-form {
    width: min(100% - 24px, 760px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 13px;
  }

  .form-row label {
    min-height: 38px;
  }

  .actions {
    display: flex;
  }

  .actions-split .secondary {
    width: 100%;
  }

  button {
    padding-left: 10px;
    padding-right: 10px;
  }

  button.primary {
    width: 100%;
    font-size: 1rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page {
    padding: 0;
  }

  .sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .actions,
  .status {
    display: none;
  }
}
