.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eef2f0; }
.modal-header h2 { margin: 0; font-size: 1.25rem; color: #275e40; letter-spacing: -0.1px; }
.modal-close { background: transparent; border: none; font-size: 1.1rem; cursor: pointer; padding: 8px; }
.modal-body { padding: 16px; color: #344054; }
.modal-body p { margin: 0 0 12px; }
.modal-footer { padding: 12px 16px 16px; display: flex; justify-content: center; }
html, body { height: 100%; }
.layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.visual { display: block; height: 220px; background-image: url('../hero.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; will-change: background-position; animation: kenburnsPan 28s ease-in-out infinite alternate; }
/* Brand logo placement on the visual */
.visual { position: relative; }
.visual-brand { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-block; }
.visual-brand img { display: block; height: 34px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
/* Animated, brand-tinted overlay to liven up image */
.visual::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(1200px 800px at 15% 20%, rgba(88,161,122,0.22), rgba(88,161,122,0) 55%), radial-gradient(1000px 700px at 85% 80%, rgba(46,125,87,0.18), rgba(46,125,87,0) 50%); mix-blend-mode: soft-light; opacity: 0.9; animation: visualGlow 16s ease-in-out infinite alternate; }
/* Improve image + heading layout on small screens */
@media (max-width: 1023.98px) {
  .visual { position: relative; height: 280px; }
  .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.5)); }
  .visual-content { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; z-index: 1; }
  .visual-content h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.2px; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
  .visual-content p { margin: 0; color: #f2f8f5; opacity: 0.98; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }

  /* Tighten spacing after the image on mobile */
  hgroup.hero { padding-top: 16px; }
  p.subtitle { margin-bottom: 28px; }
}
@media (min-width: 1024px) {
  /* Two-column layout on desktop */
  .layout { grid-template-columns: 50% 50%; }
  /* Keep the visual fixed on the left, full height */
  .visual { display: block; position: fixed; top: 0; left: 0; width: 50vw; height: 100vh; }
  /* Improve vertical rhythm between field rows on large screens */
  .section .grid-pair + .grid-pair { margin-top: 24px; }
  .visual-brand { top: 20px; left: 20px; }
  .visual-brand img { height: 42px; }
  /* Only the right pane scrolls vertically */
  body { overflow: hidden; }
  .container { grid-column: 2; height: 100vh; overflow-y: auto; }
}

/* Visual overlay and content */
@media (min-width: 1024px) {
  .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.45)); }
  .visual-content { position: absolute; left: 28px; right: 28px; bottom: 28px; color: #fff; z-index: 1; }
  .visual-content h2 { margin: 0 0 6px; font-size: 1.75rem; font-weight: 700; letter-spacing: 0.2px; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
  .visual-content p { margin: 0; color: #f0f7f3; opacity: 0.98; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }
}
/* Motion keyframes and accessibility */
@keyframes kenburnsPan {
  0% { background-position: 50% 50%; }
  100% { background-position: 56% 44%; }
}
@keyframes visualGlow {
  0% { opacity: 0.75; transform: translate3d(0,0,0); }
  100% { opacity: 0.95; transform: translate3d(0,-2%,0); }
}
@media (prefers-reduced-motion: reduce) {
  .visual { animation: none; }
  .visual::before { animation: none; }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  letter-spacing: -0.5px;
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  /* avoid blocking vertical scroll on desktop pane */
  overflow-x: hidden;
  align-self: stretch;
}
.container::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0; display: none; }
.container > * { position: relative; }
hgroup.hero { max-width: 980px; margin: 0 auto; padding: 24px 20px 0; }
.hero .brand-mark { display: block; height: 42px; width: auto; margin: 10px auto 6px; }
@media (min-width: 1024px) {
  .hero .brand-mark { height: 48px; margin: 12px auto 8px; }
}
.hero-banner { background: linear-gradient(135deg, #2b6b46 0%, #3f8a62 60%, #58a17a 100%); color: #fff; padding: 22px 0; margin: 0 0 10px; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15); }
.hero-title { max-width: 980px; margin: 0 auto; padding: 0 20px; font-weight: 700; letter-spacing: -0.1px; }
.hero-sub { max-width: 980px; margin: 6px auto 18px; padding: 0 20px; opacity: 0.95; letter-spacing: -0.1px; }
h1 {
  text-align: center;
  color: #2b6b46;
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
p.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}
form {
  display: grid;
  gap: 20px;
}
label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #344054;
}
label .req { color: #b43c3c; margin-left: 4px; }
input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
  background-color: #fbfdfc;
}
input:hover, textarea:hover, select:hover { border-color: #c8d9d0; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2b6b46;
  box-shadow: 0 0 0 3px rgba(43, 107, 70, 0.1);
}
input:invalid:focus, textarea:invalid:focus, select:invalid:focus { border-color: #b43c3c; box-shadow: 0 0 0 3px rgba(180, 60, 60, 0.1); }
textarea { min-height: 110px; }
small.hint { color: #666; display: block; margin-top: 6px; }
button {
  background-color: #2b6b46;
  color: #fff;
  font-size: 1.1rem;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background-color: #25603d;
}
.btn-row { display: flex; justify-content: center; margin-top: 16px; margin-bottom: 16px; }
.btn { min-width: 220px; width: 100%; max-width: 360px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; padding-left: 40px; border-radius: 12px; background: linear-gradient(135deg, #2e7d57, #2b6b46); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 6px 14px rgba(43,107,70,0.18); transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.04s ease; font-weight: 700; }
.btn:hover { background: linear-gradient(135deg, #338a60, #2f744e); box-shadow: 0 10px 22px rgba(43,107,70,0.22); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(43,107,70,0.35); outline-offset: 2px; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; filter: saturate(0.85); }
.btn .spinner { display: none; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn .spinner { animation: none; } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.success, .error {
  text-align: center;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  display: none; /* hidden by default; shown via JS */
  margin-top: 16px;
}
.success {
  background-color: #e6f8ec;
  color: #2b6b46;
}
.error {
  background-color: #fdeaea;
  color: #b43c3c;
}
.consent { display: flex; align-items: center; gap: 12px; }
.consent input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.consent label { margin: 0; line-height: 1.4; }
.hp { display: none; }

.consent-note { background: #f4f7f5; border: 1px solid #e3ece6; padding: 12px 14px; border-radius: 10px; color: #344054; margin-top: 12px; }
.consent-note a { color: #2b6b46; text-decoration: underline; text-underline-offset: 2px; }

/* Grid layout */
.grid { display: grid; row-gap: 16px; column-gap: 16px; }
/* Vertical spacing between stacked grid-pair groups */
.section .grid-pair + .grid-pair { margin-top: 20px; }
@media (max-width: 767.98px) {
  .grid { row-gap: 22px; }
  .grid-pair { display: block; }
  .grid-pair > div + div { margin-top: 16px; }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; column-gap: 0; }
  .grid-2 .full { grid-column: 1 / -1; }
}

/* Two-column pairs on larger screens only */
@media (min-width: 768px) {
  .grid-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* Footer */
.footer small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Sections */
.section { margin-top: 14px; background: #fafcfb; border: 1px solid #e6efe9; padding: 12px 16px 16px; border-radius: 12px; }
.section h2 { font-size: 1.25rem; color: #275e40; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.section h2::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #2b6b46, #58a17a); display: inline-block; }

