:root {
  color-scheme: light;
  --green: #156b5a;
  --green-dark: #173b36;
  --mint-pale: #f4fbf6;
  --mint: #e7f4ee;
  --gold: #f4c75e;
  --white: #ffffff;
  --red: #a52a2a;
  --border: #b7d0c7;
  --shadow: 0 18px 55px rgba(23, 59, 54, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--mint-pale);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 10% 4%, rgba(244, 199, 94, 0.24), transparent 19rem),
    linear-gradient(150deg, var(--mint-pale), var(--mint));
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, 48rem);
  min-height: 100vh;
  margin-inline: auto;
  padding: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.7rem 0.7rem 0.7rem 0.2rem;
  color: var(--green-dark);
  background: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(21, 107, 90, 0.14);
  border-radius: 1.15rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro {
  position: relative;
  padding: 1.6rem 1.25rem 1.5rem;
  color: var(--white);
  background: var(--green-dark);
}

.intro::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 9rem;
  height: 9rem;
  border: 1.25rem solid rgba(244, 199, 94, 0.17);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.85rem, 8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro > p:last-child {
  max-width: 36rem;
  margin: 0.9rem 0 0;
  color: #dcebe5;
}

form,
.message {
  margin: 1.25rem;
}

.field {
  margin-bottom: 1.35rem;
}

label,
.verification-label {
  display: block;
  margin: 0;
  font-weight: 750;
}

.optional,
.hint,
.counter,
.privacy-note {
  color: #536c67;
  font-size: 0.875rem;
  font-weight: 450;
}

.hint {
  margin: 0.2rem 0 0.5rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.counter {
  flex: none;
  font-variant-numeric: tabular-nums;
}

input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.75rem 0.8rem;
  color: var(--green-dark);
  background: #fcfffd;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  min-height: 44px;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: var(--green);
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(244, 199, 94, 0.65);
}

.field-error {
  min-height: 1.25rem;
  margin: 0.3rem 0 0;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 650;
}

.verification {
  min-width: 0;
  margin-block: 0.25rem 1.25rem;
}

.verification-label {
  margin-bottom: 0.5rem;
}

#turnstile-widget {
  min-height: 4.1rem;
  overflow: hidden;
}

button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 6px 16px rgba(21, 107, 90, 0.2);
  cursor: pointer;
  font-weight: 800;
  transition: background-color 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.button-icon {
  font-size: 1.25rem;
}

.privacy-note {
  margin: 0.75rem auto 0;
  text-align: center;
}

.message {
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  color: var(--green-dark);
  background: var(--mint);
}

.message-error {
  border-left: 4px solid var(--red);
  background: #fff2f0;
}

.message-success {
  border-left: 4px solid var(--green);
}

.message ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

[hidden] {
  display: none !important;
}

.honeypot {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

footer {
  padding: 1.25rem 0 0.25rem;
  color: #5a726d;
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .page-shell {
    padding: 2rem;
  }

  .intro {
    padding: 2.5rem 2.75rem 2.35rem;
  }

  form,
  .message {
    margin-right: 2.75rem;
    margin-left: 2.75rem;
  }

  form {
    margin-top: 2rem;
    margin-bottom: 2.25rem;
  }
}

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