:root {
  --brand: #61993b;
  --brand-dark: #48782c;
  --dark: #07110a;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .14);
  --field: rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--dark);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  transform: translateX(-50%);
}

.logo { display: flex; align-items: center; }
.logo img { width: auto; height: 48px; display: block; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--brand);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(97, 153, 59, .26);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(97, 153, 59, .34);
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 126px 18px 58px;
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(7, 17, 10, .64), rgba(7, 17, 10, .9)),
    url('background.jpg');
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.contact-box {
  position: relative;
  z-index: 2;
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 10, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.section-label {
  margin-bottom: 11px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.mode-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.mode-button.active {
  background: var(--brand);
  color: white;
}

.contact-form {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.required-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field-label { display: inline; }

.required-mark {
  color: #a9dd87;
  font-weight: 950;
}

.application-upload-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.upload-field {
  align-content: start;
  min-height: 190px;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 8px;
  padding: 17px;
  background: rgba(255, 255, 255, .05);
}

.upload-field-heading {
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.upload-field-copy {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.upload-field input[type="file"] {
  padding: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
}

.upload-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.application-file-summary {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mode-fields { display: grid; gap: 30px; }

.form-section {
  display: grid;
  gap: 17px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-section:first-child { padding-top: 0; border-top: 0; }

.form-section h2 {
  font-size: 20px;
  line-height: 1.2;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 850;
}

.contact-form label.full { grid-column: 1 / -1; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
  background: var(--field);
  color: var(--white);
}

.contact-form select option { color: var(--dark); }
.contact-form textarea { min-height: 104px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, .42); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(97, 153, 59, .22);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-label {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  cursor: pointer;
}

.choice-label input,
.contact-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--brand);
}

.contact-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.contact-consent input { margin-top: 1px; }
.contact-consent a { color: var(--brand); font-weight: 800; }
.contact-form .btn { justify-self: start; }

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.form-status:empty { display: none; }

.form-status.success,
.form-status.error {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 84px;
  border: 1px solid;
  border-radius: 8px;
  padding: 17px 18px 17px 64px;
  line-height: 1.45;
}

.form-status.success::before,
.form-status.error::before {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: 950;
}

.form-status.success {
  border-color: rgba(151, 207, 116, .48);
  background: rgba(97, 153, 59, .2);
  color: #d8f1c8;
}

.form-status.success::before {
  content: "✓";
  background: var(--brand);
}

.form-status.error {
  border-color: rgba(255, 143, 143, .44);
  background: rgba(151, 27, 27, .2);
  color: #ffd0d0;
}

.form-status.error::before {
  content: "!";
  background: #b91c1c;
}

.form-status strong { font-size: 16px; }
.form-status span { font-weight: 650; }

[hidden] { display: none !important; }

html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

@media (max-width: 700px) {
  .navbar { top: 10px; padding: 9px 10px 9px 14px; }
  .logo img { height: 38px; }
  .navbar .btn { min-height: 42px; padding: 10px 13px; font-size: 13px; }
  .page { padding: 88px 10px 32px; }
  .contact-box { padding: 26px 18px; }
  .form-grid, .choice-grid, .application-files { grid-template-columns: 1fr; }
  .contact-form label.full { grid-column: auto; }
  .mode-switch { max-width: none; }
}
