/* Forest Eye – public forms, apply routes, thank-you and legal additions */
.fe-form { --fe-line: var(--line, rgba(29,30,27,.14)); --fe-ink: var(--ink, #1d1e1b); --fe-rust: var(--rust, #c4623a); --fe-forest: var(--forest, #1f5446); --fe-muted: var(--muted, #5d5f58); display: grid; gap: 28px; font-family: var(--font-sans, inherit); color: var(--fe-ink); }
.fe-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fe-section { border: 0; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--fe-line); border-radius: 4px; min-width: 0; }
.fe-form--compact .fe-section { padding: 0; border: 0; background: transparent; }
.fe-form--compact .fe-section + .fe-section { padding-top: 8px; }
.fe-legend { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0 0 20px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.fe-form--compact .fe-legend { font-size: 1rem; }
.fe-legend-no { font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fe-rust); }
.fe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fe-span-full { grid-column: 1 / -1; }
.fe-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.fe-label { font-size: .9rem; font-weight: 500; line-height: 1.35; padding: 0; }
.fe-req { color: var(--fe-rust); text-decoration: none; border: 0; }
.fe-field input[type=text], .fe-field input[type=email], .fe-field input[type=tel], .fe-field input[type=date], .fe-field input[type=number], .fe-field input[type=datetime-local], .fe-field select, .fe-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fe-ink); background: var(--stone, #f3f2ed); border: 1px solid transparent; border-bottom-color: rgba(29,30,27,.35); border-radius: 3px; padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s; box-sizing: border-box; }
.fe-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.fe-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1e1b' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fe-field input:focus, .fe-field select:focus, .fe-field textarea:focus { outline: none; background-color: #fff; border-color: var(--fe-forest); box-shadow: 0 0 0 3px rgba(31,84,70,.15); }
.fe-options { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-options--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fe-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; line-height: 1.4; }
.fe-options .fe-check { padding: 9px 14px; border: 1px solid var(--fe-line); border-radius: 999px; background: #fff; transition: border-color .15s, background .15s; }
.fe-options--grid .fe-check { border-radius: 4px; }
.fe-options .fe-check:hover { border-color: var(--fe-forest); }
.fe-options .fe-check:has(input:checked) { border-color: var(--fe-forest); background: rgba(31,84,70,.08); }
.fe-check input { accent-color: var(--fe-forest); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.fe-check--consent { padding: 14px 16px; background: var(--stone, #f3f2ed); border-radius: 4px; }
.fe-note { margin: 0; font-size: .9rem; color: var(--fe-muted); background: var(--stone, #f3f2ed); padding: 12px 14px; border-left: 3px solid var(--fe-rust); }
.fe-file { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed rgba(29,30,27,.3); border-radius: 4px; background: #fff; cursor: pointer; position: relative; }
.fe-file:hover, .fe-file:focus-within { border-color: var(--fe-forest); }
.fe-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fe-file-btn { flex: none; font-size: .85rem; font-weight: 600; padding: 8px 12px; background: var(--fe-forest); color: #fff; border-radius: 3px; }
.fe-file-name { font-size: .88rem; color: var(--fe-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-file.has-file .fe-file-name { color: var(--fe-ink); font-weight: 500; }
.fe-hint { font-family: var(--font-mono, monospace); font-size: .72rem; color: var(--fe-muted); letter-spacing: .04em; }
.fe-error { font-size: .85rem; color: #b3261e; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-bottom-color: #b3261e !important; background: #fdf1ef !important; }
.has-error .fe-check--consent { background: #fdf1ef; outline: 1px solid #e6b3ac; }
.has-error .fe-file { border-color: #b3261e; }
.fe-alert { padding: 14px 16px; border-radius: 4px; font-weight: 500; }
.fe-alert--error { background: #fdf1ef; color: #8c1d18; border-left: 4px solid #b3261e; }
.fe-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.fe-privacy { margin: 0; font-size: .88rem; color: var(--fe-muted); max-width: 52ch; }
.fe-privacy a { color: inherit; text-decoration: underline; }
.fe-submit { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; }
.fe-submit[disabled] { opacity: .6; cursor: progress; }
[data-show-if][hidden] { display: none !important; }

/* Page layout around long forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
.form-aside { position: sticky; top: 110px; display: grid; gap: 16px; font-size: .95rem; }
.form-aside .tick-list { margin: 0; }
.form-aside-note { margin: 0; font-size: .88rem; color: var(--muted, #5d5f58); line-height: 1.55; }
.form-aside-note a { color: var(--forest, #1f5446); text-decoration: underline; }
.form-intro { margin: 0 0 24px; padding: 18px 20px; background: var(--stone, #f3f2ed); border-left: 3px solid var(--forest, #1f5446); line-height: 1.6; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* Careers: two routes */
.apply-routes { display: grid; gap: 16px; }
.apply-route { position: relative; display: grid; gap: 8px; padding: 24px 56px 24px 24px; background: #fff; border: 1px solid var(--line, rgba(29,30,27,.12)); border-radius: 4px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.apply-route:hover { border-color: var(--forest, #1f5446); transform: translateY(-2px); }
.apply-route .ico-up { position: absolute; right: 20px; top: 24px; }

/* Thank-you page */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks-inner { display: grid; gap: 22px; max-width: 760px; }
.thanks-ref { display: grid; gap: 6px; padding: 20px 22px; background: var(--stone, #f3f2ed); border-left: 4px solid var(--rust, #c4623a); }
.thanks-ref strong { font-size: 1.5rem; letter-spacing: .02em; }
.thanks-ref span:last-child { font-size: .9rem; color: var(--muted, #5d5f58); }

/* Legal page additions */
.legal-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 24px; font-size: .9rem; }
.legal-dl dt { color: var(--muted, #5d5f58); }
.legal-dl dd { margin: 0; }
.legal-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .88rem; }
.legal-toc a { color: inherit; text-decoration: none; }
.legal-toc a:hover { color: var(--rust, #c4623a); }
.prose ol[type=i] { padding-left: 1.6em; }
.prose h2[id] { scroll-margin-top: 110px; }
.def-list dt { font-weight: 600; margin-top: 12px; }
.def-list dd { margin: 4px 0 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line, rgba(29,30,27,.12)); }
.legal-table th { font-family: var(--font-mono, monospace); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5d5f58); background: var(--stone, #f3f2ed); }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 24px; }
  .form-aside { position: static; }
}
@media (max-width: 640px) {
  .fe-grid { grid-template-columns: 1fr; }
  .fe-section { padding: 20px 16px; }
  .fe-actions { flex-direction: column; align-items: stretch; }
  .fe-submit { justify-content: center; }
}

/* Fees & payment page */
.fe-fee { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 16px 20px; background: #fff7ef; border: 1px solid #f0d2bf; border-left: 4px solid var(--rust, #c4623a); border-radius: 4px; }
.fe-fee strong { font-size: 1.4rem; }
.fe-fee span:last-child { grid-column: 1 / -1; font-size: .9rem; color: var(--muted, #5d5f58); }
.fe-alert--info { background: #eef5f3; color: var(--forest, #1f5446); border-left: 4px solid var(--forest, #1f5446); }
.form-single { max-width: 900px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: start; }
.pay-summary { position: sticky; top: 110px; padding: 24px; background: var(--stone, #f3f2ed); border-radius: 4px; }
.pay-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 12px 0 20px; font-size: .92rem; }
.pay-summary dt { color: var(--muted, #5d5f58); }
.pay-summary dd { margin: 0; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line, rgba(29,30,27,.14)); margin: 0; }
.pay-amount strong { font-size: 1.8rem; letter-spacing: -.01em; }
.pay-methods, .pay-banks { display: grid; gap: 10px; }
.pay-method, .pay-bank { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line, rgba(29,30,27,.14)); border-radius: 4px; background: #fff; cursor: pointer; }
.pay-method:has(input:checked), .pay-bank:has(input:checked) { border-color: var(--forest, #1f5446); background: rgba(31,84,70,.05); }
.pay-method input, .pay-bank input { accent-color: var(--forest, #1f5446); width: 18px; height: 18px; margin-top: 2px; }
.pay-method span, .pay-bank > span { display: grid; gap: 2px; }
.pay-method small, .pay-bank small { color: var(--muted, #5d5f58); }
.pay-bank strong { font-size: 1.35rem; letter-spacing: .04em; }
.pay-bank em { font-size: .85rem; color: var(--muted, #5d5f58); }
.pay-transfer p { margin: 0 0 14px; line-height: 1.55; }
.pay-transfer .pay-banks { margin-bottom: 18px; }
.thanks-ref--paid { border-left-color: var(--forest, #1f5446); }
@media (max-width: 900px) { .pay-layout { grid-template-columns: 1fr; gap: 20px; } .pay-summary { position: static; } }

/* Pop-ups / announcements */
.fe-pop[hidden] { display: none !important; }
.fe-pop { position: fixed; z-index: 1000; }
.fe-pop--modal { inset: 0; display: grid; place-items: center; padding: 20px; }
.fe-pop-backdrop { position: absolute; inset: 0; background: rgba(15,20,18,.55); animation: fePopFade .25s ease; }
.fe-pop--corner .fe-pop-backdrop, .fe-pop--bar .fe-pop-backdrop { display: none; }
.fe-pop-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: fePopIn .3s cubic-bezier(.2,.8,.2,1); }
.fe-pop--corner { right: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px)); }
.fe-pop--corner .fe-pop-card { width: 100%; }
.fe-pop--bar { top: 0; left: 0; right: 0; }
.fe-pop--bar .fe-pop-card { width: 100%; max-height: none; border-radius: 0; background: var(--forest, #1f5446); color: #fff; box-shadow: none; }
.fe-pop--bar .fe-pop-img { display: none; }
.fe-pop--bar .fe-pop-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 12px 56px 12px 20px; text-align: center; }
.fe-pop--bar h2 { font-size: 1rem; margin: 0; }
.fe-pop--bar .fe-pop-body { margin: 0; font-size: .92rem; opacity: .9; }
.fe-pop--bar .fe-pop-btn { padding: 6px 14px; font-size: .88rem; }
.fe-pop--bar .fe-pop-x { color: #fff; top: 50%; transform: translateY(-50%); }
.fe-pop-img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.fe-pop-content { position: relative; padding: 28px; }
.fe-pop-content h2 { margin: 0 32px 10px 0; }
.fe-pop-body { margin: 0 0 20px; line-height: 1.6; color: var(--muted, #5d5f58); }
.fe-pop-btn { display: inline-flex; align-items: center; gap: 8px; }
.fe-pop-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink, #1d1e1b); }
.fe-pop-img + .fe-pop-content .fe-pop-x { top: -46px; background: rgba(255,255,255,.92); }
.fe-pop-x:hover { background: var(--stone, #f3f2ed); }
@keyframes fePopFade { from { opacity: 0; } }
@keyframes fePopIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .fe-pop-backdrop, .fe-pop-card { animation: none; } }

/* Header: keep action labels on one line now that the nav has a Forms menu */
.nav-actions .text-cta, .nav-actions .btn { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1440px) {
  .site-nav .nav-list { gap: clamp(10px, 1.4vw, 22px); }
  .site-nav .nav-link { padding-inline: 4px; }
}
