:root {
  color-scheme: light;
  --green: #137333;
  --green-dark: #123d2a;
  --orange: #f06416;
  --ink: #1f2a25;
  --muted: #62716a;
  --border: #dce6df;
  --surface: #fff;
  --page: #f5f8f5;
  --danger: #a32929;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 170px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 3px solid var(--green);
}

.brand {
  display: inline-flex;
  max-width: min(100%, 600px);
  align-items: center;
}

.logo {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.hero {
  padding: 40px 20px 36px;
  background: linear-gradient(130deg, var(--green-dark), #1a603a);
  color: var(--surface);
  text-align: center;
}

.hero-content {
  width: min(100%, 680px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 7px;
  color: #b8e8c5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
}

.hero-content > p:last-child {
  max-width: 600px;
  margin: 0 auto;
  color: #e3f0e7;
  font-size: 15px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 24px;
  width: min(1060px, calc(100% - 40px));
  margin: 32px auto 52px;
}

.form-card,
.side-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(18 61 42 / 7%);
}

.card-head {
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.card-head h2,
.side-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.3;
}

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

.required-mark {
  color: var(--danger);
}

.form-body {
  padding: 22px 26px 26px;
}

fieldset {
  min-width: 0;
  margin: 0 0 23px;
  padding: 0;
  border: 0;
}

.section-title {
  margin: 0 0 14px;
  padding: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-title span {
  padding: 0 3px;
  color: #9aaca0;
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

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

.field label {
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  border: 1px solid #cbd9d0;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(19 115 51 / 13%);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 17px;
  font-size: 12px;
  line-height: 1.55;
}

.consent input {
  width: 17px;
  min-height: 17px;
  flex: 0 0 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.submit-button {
  width: 100%;
  min-height: 49px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: background-color 140ms ease, transform 140ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0f602b;
}

.submit-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.form-trap,
.submission-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.submission-frame {
  border: 0;
}

.notice {
  display: none;
  margin: 0 0 18px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.notice.show {
  display: block;
}

.notice.error {
  background: #fff0f0;
  color: #872121;
}

.notice.success {
  background: #e9f7ed;
  color: #175a30;
}

.notice.warning {
  background: #fff7e6;
  color: #754c00;
}

.side-card {
  padding: 23px;
}

.side-card h2 {
  margin-bottom: 18px;
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.step-number {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 10px;
  background: #e7f4e9;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.steps strong,
.steps li div span {
  display: block;
}

.steps strong {
  margin: 2px 0 3px;
  font-size: 13px;
}

.steps li div span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.side-note {
  margin-top: 22px;
  padding: 13px;
  border-radius: 10px;
  background: #f0f6f1;
  font-size: 12px;
  line-height: 1.6;
}

footer {
  padding: 19px 20px;
  background: var(--green-dark);
  color: #e0eee4;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin-top: 25px;
  }

  .side-card {
    order: 1;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 82px;
    padding: 10px 16px;
  }

  .brand {
    max-width: min(100%, 440px);
  }

  .logo {
    max-height: 70px;
  }

  .hero {
    padding: 32px 18px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-content > p:last-child {
    font-size: 14px;
  }

  .page-layout {
    width: min(100% - 24px, 480px);
    gap: 16px;
    margin: 18px auto 32px;
  }

  .card-head {
    padding: 19px 18px 15px;
  }

  .form-body {
    padding: 19px 18px 21px;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .field-full {
    grid-column: auto;
  }

  .side-card {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
