:root {
    --green-950: #032f1b;
    --green-900: #064c28;
    --green-800: #075a2e;
    --green-700: #087742;
    --green-600: #0b8d4d;
    --green-500: #16a45b;
    --lime: #8fdb44;
    --ink: #142019;
    --muted: #617069;
    --surface: #ffffff;
    --page: #f4f7f5;
    --line: #dfe8e2;
    --danger: #b3261e;
    --shadow: 0 22px 60px rgba(3, 47, 27, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 92% 8%, rgba(143, 219, 68, .42), transparent 28%),
        radial-gradient(circle at 7% 90%, rgba(37, 184, 102, .35), transparent 35%),
        linear-gradient(135deg, var(--green-950), var(--green-800) 54%, #008a55);
}
.header-orb { position: absolute; border-radius: 999px; filter: blur(2px); opacity: .55; }
.header-orb-one { width: 260px; height: 260px; right: -100px; top: -150px; background: rgba(255,255,255,.08); }
.header-orb-two { width: 180px; height: 180px; left: 35%; bottom: -140px; background: rgba(143,219,68,.14); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #fff, #dff8e8); color: var(--green-800); font-weight: 900; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; }
.brand small { color: rgba(255,255,255,.74); font-size: .72rem; }
.header-nav { display: flex; gap: 8px; }
.header-nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; color: rgba(255,255,255,.88); font-size: .88rem; font-weight: 700; }
.header-nav a:hover { background: rgba(255,255,255,.12); color: white; }

.application-hero { color: white; background: linear-gradient(135deg, var(--green-950), var(--green-800) 58%, var(--green-600)); padding: 54px 0 72px; position: relative; overflow: hidden; }
.application-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 999px; right: -120px; bottom: -230px; background: radial-gradient(circle, rgba(143,219,68,.35), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; width: fit-content; color: var(--green-700); background: #e6f7ec; border: 1px solid #c9eed7; border-radius: 999px; padding: 6px 10px; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.application-hero .eyebrow { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }
h1 { font-size: clamp(2.1rem, 4vw, 4.1rem); line-height: 1.04; letter-spacing: -.045em; margin: 16px 0; }
.hero-copy { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 650px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: rgba(255,255,255,.9); font-weight: 700; font-size: .88rem; }
.hero-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.17); box-shadow: 0 24px 60px rgba(0,0,0,.14); backdrop-filter: blur(18px); padding: 24px; border-radius: 24px; }
.hero-card-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 18px; background: rgba(255,255,255,.14); }
.hero-card strong { display: block; margin-top: 18px; font-size: 1.15rem; }
.hero-card p { color: rgba(255,255,255,.75); }
.hero-card a { font-weight: 800; color: white; }

.application-shell { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; margin-top: -36px; padding-bottom: 70px; position: relative; z-index: 2; }
.steps-card, .form-card, .result-card, .status-form, .status-result, .status-help { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.steps-card { padding: 22px; position: sticky; top: 18px; }
.steps-title { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.steps-card ol { list-style: none; padding: 0; margin: 18px 0 0; }
.steps-card li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2ef; }
.steps-card li > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: white; font-weight: 900; background: linear-gradient(135deg, var(--green-800), var(--green-500)); }
.steps-card strong, .steps-card small { display: block; }
.steps-card small { color: var(--muted); }
.privacy-note { background: #eff9f2; border-radius: 16px; padding: 14px; margin-top: 18px; }
.privacy-note p { color: var(--muted); font-size: .78rem; margin-bottom: 0; }
.form-card { overflow: hidden; }
.form-card form { display: block; }
.form-section { padding: 30px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.section-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(135deg, var(--green-800), var(--green-500)); font-weight: 900; }
.section-heading h2 { margin: 0; font-size: 1.25rem; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label, legend { color: #314039; font-weight: 800; font-size: .82rem; }
label small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; margin-top: 7px; border: 1px solid #d9e3dc; border-radius: 13px; background: white; padding: 12px 13px; outline: none; color: var(--ink); }
input:focus, select:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(22,164,91,.11); }
fieldset { border: 0; padding: 0; margin: 18px 0; }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 11px; text-align: center; cursor: pointer; background: #fbfdfc; }
.choice-card input:checked + span { color: var(--green-800); border-color: #8dd5aa; background: #eaf8ef; box-shadow: 0 0 0 3px rgba(22,164,91,.08); }
.check-row { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #fbfdfc; font-weight: 600; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green-700); }
.standalone-check { margin: 12px 0; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.upload-card { display: block; border: 1px dashed #a8c5b2; background: #f7fbf8; border-radius: 17px; padding: 16px; min-height: 120px; }
.upload-card strong, .upload-card small { display: block; }
.upload-card small { margin-top: 4px; }
.upload-card input { border: 0; padding: 0; margin-top: 14px; background: transparent; font-size: .75rem; }
.consent-list { display: grid; gap: 12px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.submit-row p { color: var(--muted); max-width: 560px; margin: 0; font-size: .82rem; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 900; text-decoration: none; cursor: pointer; }
.primary-button { color: white; background: linear-gradient(135deg, var(--green-900), var(--green-500)); box-shadow: 0 13px 28px rgba(7,90,46,.2); }
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.secondary-button { color: var(--green-800); background: #eaf8ef; }
.alert { border-radius: 15px; padding: 14px 16px; margin: 20px 30px 0; }
.alert ul { margin-bottom: 0; }
.alert-error { color: #7f1d1d; background: #fff0ef; border: 1px solid #f5c2bf; }
.alert-info { color: var(--green-900); background: #edf9f1; border: 1px solid #c9ead5; margin: 20px 0 0; }

.result-page, .status-page { padding: 58px 0 78px; }
.result-card { max-width: 720px; margin: 0 auto; padding: 34px; text-align: center; }
.result-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 24px; color: white; background: linear-gradient(135deg, var(--green-800), var(--lime)); font-size: 2rem; font-weight: 900; }
.result-card h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.result-card > p { color: var(--muted); }
.reference-box { margin: 26px 0; border: 1px solid #b8dec6; background: #effaf3; border-radius: 18px; padding: 18px; }
.reference-box span, .reference-box strong { display: block; }
.reference-box span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.reference-box strong { color: var(--green-900); font-size: clamp(1.05rem, 4vw, 1.7rem); letter-spacing: .04em; margin: 5px 0; }
.reference-box button { border: 0; color: var(--green-800); background: transparent; font-weight: 800; cursor: pointer; }
.summary-list { margin: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 12px 0; text-align: left; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 800; text-align: right; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.status-intro { max-width: 760px; margin-bottom: 28px; }
.status-intro h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.status-intro p { color: var(--muted); font-size: 1.05rem; }
.status-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.status-form, .status-result, .status-help { padding: 26px; }
.status-form { display: grid; gap: 16px; }
.status-form .alert { margin: 0; }
.status-help p { color: var(--muted); }
.status-help a { color: var(--green-800); font-weight: 900; }
.status-badge { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: #eef4f0; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.status-submitted, .status-under_review { color: #075a2e; background: #e8f7ed; }
.status-needs_information { color: #8a5400; background: #fff4dc; }
.status-approved { color: white; background: var(--green-700); }
.status-rejected { color: #8a1c16; background: #ffebe9; }
.status-result h2 { overflow-wrap: anywhere; }
.status-message { margin-top: 18px; padding: 15px; border-radius: 15px; color: var(--green-900); background: #eff9f2; }

.site-footer { background: #e9f0eb; border-top: 1px solid #dbe5de; }
.footer-inner { min-height: 130px; display: flex; justify-content: space-between; align-items: center; gap: 28px; color: var(--muted); font-size: .85rem; }
.footer-inner strong { color: var(--green-900); }
.footer-inner p { margin: 3px 0 0; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
    .hero-grid, .application-shell, .status-layout { grid-template-columns: 1fr; }
    .application-shell { margin-top: -28px; }
    .steps-card { position: static; }
    .steps-card ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 18px; }
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
    .choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 24px, 1160px); }
    .header-inner { min-height: 76px; }
    .brand small { display: none; }
    .header-nav a:first-child { display: none; }
    .application-hero { padding: 38px 0 62px; }
    .hero-grid { gap: 24px; }
    .hero-points { display: grid; }
    .form-section { padding: 22px 18px; }
    .form-grid-2, .form-grid-3, .upload-grid { grid-template-columns: 1fr; }
    .steps-card ol { grid-template-columns: 1fr; }
    .submit-row { align-items: stretch; flex-direction: column; }
    .primary-button { width: 100%; }
    .result-card, .status-form, .status-result, .status-help { padding: 22px 18px; }
    .summary-list div { flex-direction: column; gap: 3px; }
    .summary-list dd { text-align: left; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}
textarea { width: 100%; margin-top: 7px; border: 1px solid #d9e3dc; border-radius: 13px; background: white; padding: 12px 13px; outline: none; color: var(--ink); resize: vertical; }
textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(22,164,91,.11); }
