:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #233d2d;
  background: #f5f6ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #2e6943;
  --deep-green: #1c4d31;
  --pale-green: #eaf1de;
  --line: #cbd6bd;
  --muted: #647568;
  --cream: #fcfcf6;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 48px 20px;
  background:
    radial-gradient(ellipse at 9% 4%, rgba(216, 229, 198, 0.62), transparent 30rem),
    #f5f6ed;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 790px);
  margin: 0 auto;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0 0 30px;
  padding: 3px 17px;
}

.brand-mark {
  width: 96px;
  height: 96px;
  flex: none;
}

.brand-copy h1 {
  margin: 3px 0 6px;
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.welcome-card {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 19px;
  padding: 19px 24px;
  border: 1px solid #d5dfc8;
  border-radius: 12px;
  background: rgba(234, 241, 222, 0.8);
}

.welcome-card h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 750;
}

.welcome-card p {
  margin: 0;
  color: #596c5d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.membership-card {
  padding: 30px clamp(19px, 5vw, 42px) 29px;
  border: 1px solid #dce2d2;
  border-radius: 15px;
  background: var(--cream);
  box-shadow: 0 19px 55px rgba(37, 69, 45, 0.075);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}

.section-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale-green);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
}

.section-heading h2 {
  margin: 3px 0 0;
  color: #284a34;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.fee-banner {
  display: flex;
  align-items: center;
  margin: 0 0 25px;
  padding: 17px 20px;
  border: 1px solid #d2dfc5;
  border-radius: 10px;
  background: linear-gradient(110deg, #edf4e4, #f8f9ef);
}

.fee-banner > div {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.fee-amount {
  margin: 1px 0 0;
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.fee-amount span {
  font-size: 1.35rem;
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: #334e39;
  font-size: 0.87rem;
  font-weight: 650;
}

.field:nth-child(3),
.field:nth-child(4),
.field:nth-child(6) {
  grid-column: 1 / -1;
}

.required {
  color: #a64b37;
}

.field input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #cbd5c5;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #243a2c;
  font-size: 0.96rem;
  font-weight: 400;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:hover {
  border-color: #9db59a;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 105, 67, 0.13);
}

.field small {
  color: #748075;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0 0;
  color: #465b4a;
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.form-footer {
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid #e6e9df;
}

.privacy-note {
  margin: 0 0 16px;
  color: #708073;
  font-size: 0.76rem;
  line-height: 1.55;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px 13px 21px;
  border: 0;
  border-radius: 8px;
  background: var(--deep-green);
  color: white;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

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

.submit-button:focus-visible,
.restart-link:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #9bbd7b;
  outline-offset: 3px;
}

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

.submit-button.is-loading > span:first-child::after {
  content: "…";
}

.button-price {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}

.secure-note {
  margin: 12px 0 0;
  color: #7a887c;
  font-size: 0.74rem;
  text-align: center;
}

.secure-note span {
  margin-right: 4px;
  color: var(--green);
}

.form-status {
  margin: 17px 0 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: #eef4e6;
  color: #315a3b;
  font-size: 0.87rem;
  line-height: 1.5;
}

.form-status.is-error {
  background: #fbefeb;
  color: #8c3d2c;
}

.payment-result {
  margin-top: 24px;
  padding: 25px;
  border: 1px solid #d4dfcb;
  border-radius: 10px;
  background: #f2f6ec;
  text-align: center;
}

.payment-result.is-error {
  border-color: #ead2c8;
  background: #fbf2ee;
}

.result-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: #deebd1;
}

.result-icon::after {
  content: "✓";
  color: var(--deep-green);
  font-size: 1.45rem;
  font-weight: 700;
}

.payment-result.is-error .result-icon {
  background: #f2dfd8;
}

.payment-result.is-error .result-icon::after {
  content: "!";
  color: #914b36;
}

.payment-result h2 {
  margin: 0 0 8px;
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.payment-result p {
  max-width: 510px;
  margin: 0 auto;
  color: #566a59;
  font-size: 0.9rem;
  line-height: 1.6;
}

.restart-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--deep-green);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 25px 12px 0;
  color: #69786b;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 3px 0;
}

.site-footer .footer-thanks {
  color: var(--deep-green);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
}

.site-footer address {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  font-size: 0.78rem;
  font-style: normal;
}

.site-footer address strong {
  color: #4e6252;
}

.site-footer a {
  color: inherit;
  text-decoration-color: #a9b5a8;
  text-underline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  body {
    padding: 23px 13px 30px;
  }

  .brand-header {
    gap: 15px;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  .brand-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .tagline {
    font-size: 0.82rem;
  }

  .welcome-card {
    gap: 11px;
    padding: 15px;
  }

  .welcome-card p {
    font-size: 0.82rem;
  }

  .membership-card {
    padding: 23px 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field:nth-child(n) {
    grid-column: auto;
  }

  .submit-button {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .fee-banner > div {
    gap: 8px;
  }

  .fee-amount {
    font-size: 1.55rem;
  }

  .fee-amount span {
    font-size: 1.15rem;
  }
}

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