.fund-page {
    --fund-navy: #10243f;
    --fund-ink: #1c2b45;
    --fund-gold: #b8860b;
    --fund-teal: #0f766e;
    min-height: 70vh;
    padding: 1.5rem 1rem 3rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(184, 134, 11, 0.16), transparent 32%),
        radial-gradient(circle at 100% 8%, rgba(15, 118, 110, 0.16), transparent 36%),
        linear-gradient(180deg, #eef3f8 0%, #f7f4ee 100%);
    accent-color: var(--fund-teal);
}

.fund-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.fund-hero {
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 40%),
        linear-gradient(145deg, #10243f 0%, #1d4e63 58%, #0f766e 100%);
    box-shadow: 0 18px 40px rgba(16, 36, 63, 0.22);
}

.fund-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.fund-pills span {
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
}

.fund-hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
}

.fund-hero p {
    margin: 0;
    max-width: 42rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.94);
}

.fund-points {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.fund-points li {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-inline-start: 4px solid var(--fund-gold);
    box-shadow: 0 8px 20px rgba(16, 36, 63, 0.05);
}

.fund-points li:nth-child(2) { border-inline-start-color: var(--fund-teal); }
.fund-points li:nth-child(3) { border-inline-start-color: #2563eb; }

.fund-points strong,
.fund-points span {
    display: block;
}

.fund-points strong {
    color: var(--fund-navy);
    margin-bottom: 0.2rem;
}

.fund-points span {
    color: #52627a;
    line-height: 1.7;
    font-size: 0.92rem;
}

.fund-form {
    margin-top: 1rem;
    padding: 1.15rem 1rem 1.2rem;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e6edf5;
    box-shadow: 0 16px 36px rgba(16, 36, 63, 0.08);
}

.fund-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.fund-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.fund-field label,
.fund-field legend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.4rem;
    padding: 0;
    float: none;
    width: auto;
    color: var(--fund-navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.fund-field .req {
    color: #be123c;
}

.fund-label-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.4rem;
}

.fund-label-line label {
    margin: 0;
}

.fund-inline-note {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.fund-inline-note a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.fund-inline-note a:hover {
    color: #115e59;
}

.fund-form input.apply-input,
.fund-form textarea.apply-input {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    font: inherit;
    font-size: 1rem;
    color: var(--fund-ink);
    background: #f8fafc;
    border: 2px solid #d5e0ec;
    border-radius: 14px;
}

.fund-form textarea.apply-input {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

.fund-form input.apply-input:focus-visible,
.fund-form textarea.apply-input:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 2px;
    border-color: #0f766e;
    background: #fff;
}

.fund-field.has-error .apply-input,
.fund-field.has-error .fund-choice {
    border-color: #e11d48;
}

.fund-error {
    display: block;
    margin-top: 0.35rem;
    color: #be123c;
    font-size: 0.86rem;
}

.fund-hint {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.85rem;
}

.fund-choices {
    display: grid;
    gap: 0.6rem;
}

.fund-choice {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 2px solid #d5e0ec;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--fund-navy);
    font-weight: 600;
    cursor: pointer;
}

.fund-choice input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    flex: none;
    accent-color: var(--fund-teal);
}

.fund-choice:nth-child(1) { border-inline-start: 5px solid #e11d48; }
.fund-choice:nth-child(2) { border-inline-start: 5px solid var(--fund-gold); }
.fund-choice:nth-child(3) { border-inline-start: 5px solid #0284c7; }
.fund-choice:nth-child(4) { border-inline-start: 5px solid var(--fund-teal); }

.fund-choice:has(input:checked) {
    border-color: var(--fund-teal);
    background: #f0fdfa;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.fund-choice:has(input:focus-visible) {
    outline: 3px solid var(--fund-teal);
    outline-offset: 2px;
}

.fund-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 1.15rem;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #10243f 0%, #0f766e 100%);
    box-shadow: 0 12px 24px rgba(16, 36, 63, 0.18);
}

.fund-submit:hover {
    filter: brightness(1.06);
}

.fund-submit:focus-visible {
    outline: 3px solid var(--fund-gold);
    outline-offset: 3px;
}

.fund-submit-wait {
    display: none;
}

.fund-submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.fund-submit.is-loading .fund-submit-label {
    display: none;
}

.fund-submit.is-loading .fund-submit-wait {
    display: inline;
}

@media (min-width: 768px) {
    .fund-page {
        padding-top: 2.25rem;
    }

    .fund-hero,
    .fund-form {
        padding-inline: 1.7rem;
    }

    .fund-points,
    .fund-choices {
        grid-template-columns: 1fr 1fr;
    }

    .fund-points li:last-child {
        grid-column: 1 / -1;
    }

    .fund-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fund-field.wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .fund-form input.apply-input,
    .fund-form textarea.apply-input,
    .fund-choice,
    .fund-submit {
        min-height: 52px;
    }
}
