/* ============================================================
   Apply Page — scoped via .apply-page on the .band wrapper.
   These rules only affect /apply.php; other pages are untouched.
   ============================================================ */

/* Inner solid container — keeps the textured background as a frame
   while giving body content a high-contrast, calm surface to sit on. */
.apply-page .apply-inner {
  background: #1a1e14;
  border-radius: 6px;
  padding: 2em 2.25em;
  margin: 1em 0 2em;
}

/* Body copy & link colors on the apply page */
.apply-page,
.apply-page p,
.apply-page li,
.apply-page label {
  color: #c8d4a8;
}
.apply-page a { color: #d4e0a0; }
.apply-page a:hover { color: #fff; }

/* Headings on the apply page (override the global olive) */
.apply-page h1,
.apply-page h2,
.apply-page h3 {
  color: #d4e0a0;
}
.apply-page h1 {
  font-weight: 700;
  font-size: 2.25em;
  margin: 0 0 0.4em;
  line-height: 1.15;
}
.apply-page h2 {
  font-weight: 700;
  font-size: 1.45em;
  margin: 0 0 0.6em;
}

/* ---------- Job hero ---------- */
.job-hero {
  margin: 0 0 1.75em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #3d4a2a;
}
.job-meta {
  font-size: 1em;
  color: #9aa884;
  margin: 0 0 1em;
  letter-spacing: 0.02em;
}
.job-meta .dot { color: #6a7556; margin: 0 0.25em; }
.pay-badge {
  display: inline-block;
  background: #4a7a1e;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.job-hook {
  font-size: 1.1em;
  line-height: 1.55;
  margin: 0 0 1.25em;
}

/* ---------- CTA buttons (top anchor + form submit) ---------- */
.cta-apply,
.applyform .submit {
  display: inline-block;
  background: #4a7a1e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05em;
  padding: 14px 28px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.cta-apply:hover,
.applyform .submit:hover {
  background: #5c9424;
  color: #fff;
}
.cta-apply:active,
.applyform .submit:active {
  background: #3a6017;
}
.applyform .submit:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
}

/* ---------- Section cards (About the role, Expectations, Requirements) ---------- */
.section-card {
  background: #222820;
  border: 1px solid #3d4a2a;
  border-radius: 6px;
  padding: 1.25em 1.5em;
  margin: 0 0 1em;
}
.section-card h2 {
  margin-top: 0;
  margin-bottom: 0.75em;
}
.section-card p {
  margin: 0 0 0.75em;
  line-height: 1.55;
}
.section-card p:last-child { margin-bottom: 0; }
.section-card ul {
  margin: 0;
  padding-left: 1.25em;
}
.section-card li {
  margin: 0.4em 0;
  line-height: 1.5;
}

/* ---------- Role selector (pure-CSS radio tabs) ----------
   Two radios (name="job", form="applyform") sit at the top of .apply-content,
   before the panels, so :checked ~ can reach them. They ARE the submitted job
   field — there is no hidden #job input. Laborer is checked by default. */
.role-radio {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.role-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin: 0 0 1.75em;
}
.role-chip {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.85em 1.1em;
  background: #222820;
  border: 2px solid #3d4a2a;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.role-chip:hover { border-color: #4a7a1e; }
.role-chip__title { font-weight: 700; color: #d4e0a0; font-size: 1.05em; }
.role-chip__pay   { font-size: 0.9em; color: #9aa884; letter-spacing: 0.02em; }

/* Selected chip — driven by the matching radio's :checked state */
#role-laborer:checked ~ .role-select .role-chip[for="role-laborer"],
#role-lead:checked    ~ .role-select .role-chip[for="role-lead"] {
  border-color: #4a7a1e;
  background: rgba(74,122,30,0.18);
}
#role-laborer:checked ~ .role-select .role-chip[for="role-laborer"] .role-chip__pay,
#role-lead:checked    ~ .role-select .role-chip[for="role-lead"] .role-chip__pay {
  color: #d4e0a0;
}
/* Keyboard focus ring, projected from the hidden radio onto its chip */
#role-laborer:focus-visible ~ .role-select .role-chip[for="role-laborer"],
#role-lead:focus-visible    ~ .role-select .role-chip[for="role-lead"] {
  box-shadow: 0 0 0 3px rgba(74,122,30,0.35);
}

/* Panel show/hide — only the selected role's hero + section-cards are visible */
.job-panel { display: none; }
#role-laborer:checked ~ .job-panel--laborer { display: block; }
#role-lead:checked    ~ .job-panel--lead    { display: block; }

/* ---------- Apply form heading + card ---------- */
.apply-heading {
  margin: 2em 0 0.75em;
  font-size: 1.6em;
}
.application {
  background: #222820;
  border: 2px solid #4a7a1e;
  border-radius: 8px;
  padding: 1.5em 1.5em 1em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  display: block;
  width: auto;
  position: relative;
}

.optional-hint {
  font-weight: normal;
  color: #9aa884;
  font-size: 0.9em;
  font-style: italic;
}

.response-promise {
  margin: 0.5em 0 1em;
  font-size: 0.95em;
  color: #9aa884;
}
.trust-line {
  margin: 0.75em 0 0.5em;
  font-size: 0.85em;
  color: #7a8568;
  letter-spacing: 0.02em;
}

/* ---------- About Earthlight (below form, full width) ---------- */
.about-earthlight {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid #3d4a2a;
}
.about-earthlight h2 {
  font-size: 1.25em;
  color: #9aa884;
  margin-bottom: 0.75em;
}
.about-earthlight p {
  color: #9aa884;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0 0 1em;
}
/* Two-column flow on wider viewports keeps line-length comfortable
   and avoids a narrow ribbon of text on full-width screens. */
@media screen and (min-width: 900px) {
  .about-earthlight .columns {
    column-count: 2;
    column-gap: 2.5em;
  }
  .about-earthlight .columns p {
    break-inside: avoid;
    margin-top: 0;
  }
}

/* ---------- Form fields ---------- */
.applyform input,
.applyform select,
.applyform textarea {
  color: #fff;
  display: block;
  width: 95%;
  background: #0f1310;
  border: 1px solid #3d4a2a;
  padding: 10px 12px;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 5px;
  font-size: 16px;
}
.applyform input::placeholder,
.applyform textarea::placeholder {
  font-style: italic;
  color: #6a7556;
}
.applyform input[type="file"] {
  font-style: italic;
  color: #c8d4a8;
  padding: 8px 10px;
}
.applyform input:focus,
.applyform select:focus,
.applyform textarea:focus {
  outline: none;
  border-color: #4a7a1e;
  box-shadow: 0 0 0 3px rgba(74,122,30,0.2);
}
.applyform label {
  display: block;
  margin-bottom: 1em;
  font-weight: 600;
  color: #d4e0a0;
}
.applyform label.f1 { display: block; width: 100%; clear: both; }
.applyform label.f1 input,
.applyform label.f1 textarea,
.applyform label.f1 select { width: 95%; }
.applyform label.f2 { float: left; width: 50%; }
.applyform label.f2 input { width: 89%; }
.applyform label.f3 { float: left; width: 33.3%; }
.applyform label.f3 input { width: 83%; }

.applyform { margin-top: 0.5em; margin-bottom: 0; }

/* ---------- HR (kept for any include that still uses it) ---------- */
.apply-page hr {
  width: 100%;
  height: 1px;
  margin: 2em 0;
  border: none;
  border-top: 1px solid #3d4a2a;
}

/* In-app-browser nudge banner (Instagram / Facebook). Non-blocking — sits
   above the form to suggest opening in a real browser, where reCAPTCHA and
   file uploads behave reliably. */
.iab-nudge {
  background: #fff8e1;
  border: 1px solid #e8c267;
  border-left: 4px solid #c98e0a;
  color: #4a3a05;
  padding: 0.75em 1em;
  margin: 0 0 1em 0;
  border-radius: 4px;
  font-size: 0.95em;
  line-height: 1.45;
}

/* Inline fallback shown when reCAPTCHA fails to load or hangs at submit. */
.apply-fallback {
  background: #fdecea;
  border: 1px solid #e6a39a;
  color: #6a1b15;
  padding: 0.75em 1em;
  margin: 0.75em 0;
  border-radius: 4px;
  font-size: 0.95em;
  line-height: 1.45;
}
.apply-fallback a { color: #6a1b15; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px) {
  .apply-page .apply-inner {
    padding: 1.25em 1em;
  }
  .apply-page h1 { font-size: 1.75em; }
  .applyform label.f2,
  .applyform label.f3 {
    float: none;
    width: 100%;
  }
  .applyform label.f2 input,
  .applyform label.f3 input {
    width: 95%;
  }
  .cta-apply { display: block; text-align: center; }
  .role-select { flex-direction: column; gap: 0.6em; }
  .role-chip { flex: 1 1 auto; }
}
