:root {
    --ink: #17352b;
    --forest: #204e3d;
    --forest-deep: #16382c;
    --sage: #dce8de;
    --mist: #eef3ed;
    --paper: #f8faf6;
    --line: rgba(32, 78, 61, 0.16);
    --muted: #687971;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[hidden] {
    display: none !important;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: .45;
    content: '';
    background-image: radial-gradient(rgba(32, 78, 61, .13) .65px, transparent .65px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.page-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 32px clamp(24px, 6vw, 92px) 28px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.site-header { animation: reveal .7s ease both; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--paper);
    background: var(--forest);
    place-items: center;
    font-size: 16px;
    letter-spacing: 0;
}

.header-label,
.eyebrow,
.card-kicker {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline: 4px solid #c4e8c9;
    outline-offset: 4px;
}

.main-content {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: clamp(52px, 9vh, 100px) 0 clamp(52px, 9vh, 100px);
}

.intro {
    max-width: 630px;
    animation: reveal .7s .08s ease both;
}

.eyebrow { margin: 0 0 20px; color: var(--forest); }

h1 {
    max-width: 600px;
    margin: 0;
    color: var(--forest-deep);
    font-size: clamp(42px, 5.7vw, 76px);
    font-weight: 600;
    line-height: .98;
}

.intro-copy {
    max-width: 440px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.portal-actions {
    display: grid;
    grid-template-columns: minmax(0, 540px);
    gap: 18px;
    margin-top: 42px;
    animation: reveal .7s .18s ease both;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: 16px 24px;
    color: var(--paper);
    background: var(--forest);
    border-radius: 4px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.primary-button:hover { background: var(--forest-deep); transform: translateY(-2px); }

.primary-button:focus-visible {
    outline: 4px solid #c4e8c9;
    outline-offset: 5px;
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 27px 30px 29px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(22, 56, 44, .13);
}

.action-card:focus-visible { outline: 3px solid #a3c7ac; outline-offset: 4px; }

.action-card-primary { color: var(--paper); background: var(--forest); }

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-card-primary .card-kicker { color: #b5d0bc; }
.arrow-icon { font-size: 25px; font-weight: 400; line-height: 1; }

.card-content { margin-top: auto; }

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border: 1px solid currentColor;
}

.card-icon-message { border-radius: 50%; font-size: 30px; font-weight: 400; }

.card-title { display: block; font-size: 26px; font-weight: 600; }
.card-title .arrow-icon { margin-left: 8px; }

.site-footer {
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 18px;
    animation: reveal .7s .28s ease both;
}

.footer-dot { width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: #9eb8a4; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .page-shell { padding: 22px 20px 22px; }
    .header-label { display: none; }
    .main-content { padding: 54px 0 52px; }
    .intro-copy { margin-top: 23px; font-size: 18px; }
    .portal-actions { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
    .primary-button { min-height: 64px; font-size: 20px; }
    .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 8px; line-height: 1.4; }
    .footer-dot { display: none; }
}

.form-content {
    width: 100%;
    max-width: 860px;
    margin: auto;
    padding: 48px 0;
}

.back-link {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    color: var(--forest);
    font-size: 18px;
    font-weight: 600;
}

.concern-form { margin-top: 30px; }
.form-field { display: grid; gap: 12px; }
.form-field label { font-size: 18px; font-weight: 600; }
.form-step[hidden] { display: none; }
.form-step h2 { margin: 28px 0 20px; font-size: 30px; }
.form-field + .form-field { margin-top: 18px; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 56px;
    padding: 16px;
    color: var(--ink);
    background: #fff;
    border: 2px solid #587568;
    border-radius: 4px;
    font: inherit;
    line-height: 1.5;
}
.form-field textarea { min-height: 240px; }
.form-field select { appearance: auto; }
.optional { color: var(--muted); font-weight: 400; }
.character-count { margin: -4px 0 0; color: var(--muted); font-size: 16px; }
.field-error,
.form-error { margin: 0; color: #8f211d; font-size: 18px; font-weight: 600; line-height: 1.4; }
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #8f211d; }
.upload-control { display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 18px; color: var(--forest); background: #e4eee4; border: 3px dashed #587568; border-radius: 4px; cursor: pointer; }
.upload-control strong { display: block; font-size: 18px; }
.upload-control small { display: block; margin-top: 5px; color: var(--ink); font-size: 16px; line-height: 1.4; }
.upload-icon { display: grid; flex: 0 0 48px; height: 48px; border: 2px solid currentColor; border-radius: 50%; place-items: center; font-size: 30px; }
#attachments { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); }
.file-list small { color: var(--muted); font-size: 16px; }
.file-list button { min-height: 52px; padding: 8px; color: #8f211d; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; margin-top: 30px; line-height: 1.5; }
.consent-label input { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; }
.summary { margin-top: 34px; padding: 20px; background: #e4eee4; border-left: 5px solid var(--forest); }
.summary h3 { margin: 0 0 16px; font-size: 22px; }
.summary dl { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; gap: 8px 16px; margin: 0; }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.secondary-button,
.submit-button { min-height: 52px; padding: 12px 22px; cursor: pointer; font: inherit; font-size: 18px; font-weight: 700; }
.secondary-button { color: var(--forest); background: transparent; border: 2px solid var(--forest); border-radius: 4px; }
.form-actions .submit-button { margin: 0; flex: 1; }
.honeypot { position: absolute; left: -10000px; }
.success-message { padding: 16px; color: var(--forest-deep); background: #d2ebd4; font-weight: 700; line-height: 1.5; }
.success-message p { margin: 0 0 8px; }
.success-message strong { font-size: 24px; letter-spacing: .04em; }
.notice { margin: 0 0 28px; }

/* Keep the native textarea resize affordance while the shared field rules stay compact. */
.form-field textarea {
    resize: vertical;
}
.submit-button {
    min-height: 52px;
    margin-top: 24px;
    padding: 12px 22px;
    color: var(--paper);
    background: var(--forest);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.submit-button span { margin-left: 8px; }
.notice {
    margin: 42px 0 0;
    padding: 18px;
    color: var(--ink);
    background: #e4eee4;
    border-left: 5px solid var(--forest);
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .form-content { padding: 54px 0; }
    .concern-form { margin-top: 34px; }
    .notice { margin-top: 32px; }
    .form-step h2 { font-size: 27px; }
    .form-field textarea { min-height: 190px; }
    .form-actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0; background: var(--paper); }
    .secondary-button, .submit-button { flex: 1; padding: 10px 12px; }
    .file-list li { grid-template-columns: 1fr auto; }
    .file-list small { grid-column: 1; }
    .file-list button { grid-column: 2; grid-row: 1 / span 2; }
}
