.work-body {
    background: #f8fbf9;
}

.work-hero {
    position: relative;
    display: grid;
    min-height: 500px;
    padding: 76px clamp(28px, 8vw, 130px);
    align-items: center;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(48px, 8vw, 125px);
    overflow: hidden;
    background:
        radial-gradient(circle at 93% 8%, rgba(167, 223, 184, 0.12) 0 145px, transparent 146px),
        radial-gradient(circle at 8% 110%, rgba(167, 223, 184, 0.10) 0 220px, transparent 221px),
        linear-gradient(120deg, var(--verde-profundo), var(--verde-escuro) 58%, #086348);
    color: var(--branco);
}

.work-hero::before,
.work-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(167, 223, 184, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.work-hero::before {
    top: -235px;
    right: -120px;
    width: 520px;
    height: 520px;
}

.work-hero::after {
    bottom: -340px;
    left: 31%;
    width: 620px;
    height: 620px;
}

.work-hero-copy,
.account-card {
    position: relative;
    z-index: 1;
}

.work-label {
    display: block;
    margin-bottom: 15px;
    color: var(--verde);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16rem;
}

.work-hero .work-label {
    color: var(--verde-claro);
}

.work-hero h1 {
    max-width: 660px;
    margin-bottom: 23px;
    font-size: clamp(2.75rem, 5.4vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.16rem;
}

.work-hero h1 span {
    display: block;
    color: var(--verde-claro);
}

.work-hero-copy > p {
    max-width: 590px;
    margin-bottom: 31px;
    color: #d7eae2;
    font-size: 1rem;
    line-height: 1.75;
}

.work-primary-button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--verde);
    border-radius: 7px;
    background: var(--verde);
    color: var(--branco);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.work-primary-button:hover {
    border-color: #0a7254;
    background: #0a7254;
    transform: translateY(-2px);
}

.work-primary-button:focus-visible,
.work-option:focus-visible,
.account-logout:focus-visible,
.application-form input:focus-visible,
.application-form select:focus-visible,
.application-form textarea:focus-visible {
    outline: 3px solid rgba(167, 223, 184, 0.65);
    outline-offset: 3px;
}

.account-card {
    display: flex;
    min-height: 285px;
    padding: 36px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(0, 30, 23, 0.25);
    color: var(--verde-escuro);
    text-align: center;
}

.account-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 50%;
    background: var(--verde-suave);
    color: var(--verde);
    font-size: 1.55rem;
    font-weight: 900;
}

.account-card > span {
    margin-bottom: 18px;
    color: var(--verde);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14rem;
}

.account-card p {
    margin-bottom: 6px;
    color: var(--cinza);
    font-size: 0.84rem;
}

.account-card strong {
    max-width: 100%;
    margin-bottom: 23px;
    overflow-wrap: anywhere;
    font-size: 0.96rem;
}

.account-logout {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--verde);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.account-logout:hover {
    color: var(--verde-profundo);
    text-decoration: underline;
}

.work-opportunities,
.work-process {
    padding: 84px clamp(24px, 7vw, 112px);
    background: var(--branco);
}

.work-section-heading {
    max-width: 720px;
    margin: 0 auto 41px;
    text-align: center;
}

.work-section-heading h2,
.application-heading h2 {
    margin-bottom: 14px;
    color: var(--verde-escuro);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.06rem;
}

.work-section-heading p,
.application-heading p {
    color: var(--cinza);
    font-size: 0.93rem;
    line-height: 1.75;
}

.work-options {
    display: grid;
    max-width: 1220px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.work-option {
    position: relative;
    display: flex;
    min-height: 320px;
    padding: 28px 25px 25px;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid var(--borda);
    border-radius: 12px;
    background: var(--branco);
    box-shadow: 0 10px 32px rgba(6, 78, 59, 0.04);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.work-option:hover,
.work-option.active {
    border-color: rgba(8, 127, 91, 0.65);
    box-shadow: 0 18px 42px rgba(6, 78, 59, 0.11);
    transform: translateY(-5px);
}

.work-option.active {
    background: linear-gradient(180deg, var(--branco), #f2faf5);
}

.work-option-number {
    position: absolute;
    top: 23px;
    right: 23px;
    color: #a7bbb4;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08rem;
}

.work-option-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 10px;
    background: var(--verde-suave);
    color: var(--verde);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.work-option:hover .work-option-icon,
.work-option.active .work-option-icon {
    background: var(--verde);
    color: var(--branco);
}

.work-option-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.work-option > strong {
    margin-bottom: 11px;
    color: var(--verde-escuro);
    font-size: 1.12rem;
}

.work-option > strong + span {
    color: var(--cinza);
    font-size: 0.82rem;
    line-height: 1.68;
}

.work-option-action {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    align-items: center;
    justify-content: space-between;
    color: var(--verde);
    font-size: 0.77rem;
    font-weight: 900;
}

.work-option-action b {
    font-size: 1.08rem;
    transition: transform 0.25s ease;
}

.work-option:hover .work-option-action b {
    transform: translateX(4px);
}

.application-section {
    padding: 82px clamp(24px, 7vw, 112px);
    background:
        radial-gradient(circle at 100% 0, rgba(167, 223, 184, 0.25), transparent 320px),
        var(--verde-suave);
}

.application-section[hidden] {
    display: none;
}

.application-shell {
    display: grid;
    max-width: 1220px;
    margin: 0 auto;
    align-items: start;
    grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
    gap: clamp(38px, 6vw, 85px);
}

.application-heading {
    position: sticky;
    top: 35px;
}

.application-heading .work-label {
    margin-bottom: 15px;
}

.application-heading p {
    max-width: 390px;
}

.application-form {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: var(--branco);
    box-shadow: var(--sombra);
}

.provider-form-note {
    margin-bottom: 34px;
    padding: 17px 19px;
    border: 1px solid #cbe1d7;
    border-radius: 9px;
    background: #f3faf6;
}

.provider-form-note[hidden],
.conditional-section[hidden],
.work-form-group[hidden] {
    display: none;
}

.provider-form-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--verde-escuro);
    font-size: 0.84rem;
}

.provider-form-note p,
.section-privacy-note {
    color: #607a72;
    font-size: 0.75rem;
    line-height: 1.6;
}

.application-form-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 35px;
    border: 0;
    border-bottom: 1px solid var(--borda);
}

.application-form-section + .application-form-section {
    margin-top: 35px;
}

.application-form-section legend {
    display: flex;
    width: 100%;
    margin-bottom: 24px;
    padding: 0;
    align-items: center;
    gap: 11px;
    color: var(--verde-escuro);
    font-size: 0.94rem;
    font-weight: 900;
}

.application-form-section legend > span {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--verde-suave);
    color: var(--verde);
    font-size: 0.68rem;
}

.declaration-section {
    padding-bottom: 0;
    border-bottom: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.choice-card > span {
    display: flex;
    min-height: 92px;
    padding: 17px 18px;
    border: 1px solid #cadfd6;
    border-radius: 9px;
    background: var(--branco);
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.choice-card > span::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 14px;
    height: 14px;
    border: 2px solid #a7bbb4;
    border-radius: 50%;
}

.choice-card strong {
    margin-bottom: 5px;
    padding-right: 26px;
    color: var(--verde-escuro);
    font-size: 0.84rem;
}

.choice-card small {
    max-width: 90%;
    color: var(--cinza);
    font-size: 0.7rem;
    line-height: 1.5;
}

.choice-card > input:checked + span {
    border-color: var(--verde);
    background: #f1faf5;
    box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.08);
}

.choice-card > input:checked + span::before {
    border: 4px solid var(--verde);
}

.choice-card > input:focus-visible + span {
    outline: 3px solid rgba(167, 223, 184, 0.65);
    outline-offset: 3px;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.work-form-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.application-full-width {
    grid-column: 1 / -1;
}

.work-form-group label {
    margin-bottom: 8px;
    color: var(--verde-escuro);
    font-size: 0.78rem;
    font-weight: 900;
}

.work-form-group input,
.work-form-group select,
.work-form-group textarea {
    width: 100%;
    border: 1px solid #cadfd6;
    border-radius: 7px;
    background: var(--branco);
    color: #153f36;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-form-group input,
.work-form-group select {
    min-height: 48px;
    padding: 0 14px;
}

.work-form-group input[type="file"] {
    min-height: 52px;
    padding: 6px;
    color: #617b77;
    cursor: pointer;
}

.work-form-group input[type="file"]::file-selector-button {
    min-height: 38px;
    margin-right: 11px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    background: var(--verde-suave);
    color: var(--verde-escuro);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.work-form-group textarea {
    min-height: 145px;
    padding: 14px;
    line-height: 1.6;
    resize: vertical;
}

.work-form-group input:focus,
.work-form-group select:focus,
.work-form-group textarea:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 4px rgba(8, 127, 91, 0.09);
    outline: none;
}

.work-form-group input[readonly] {
    background: #f3f7f5;
    color: #5b746d;
    cursor: not-allowed;
}

.work-form-group small {
    margin-top: 7px;
    color: #718980;
    font-size: 0.7rem;
    line-height: 1.45;
}

.work-field-label {
    margin-bottom: 8px;
    color: var(--verde-escuro);
    font-size: 0.78rem;
    font-weight: 900;
}

.inline-options {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    gap: 24px;
    border: 1px solid #cadfd6;
    border-radius: 7px;
}

.inline-options label {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 7px;
    color: #385c52;
    cursor: pointer;
}

.work-form-group .inline-options input {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    accent-color: var(--verde);
}

.section-privacy-note {
    margin: -9px 0 22px;
}

.work-consent {
    display: flex;
    margin-top: 25px;
    align-items: flex-start;
    gap: 11px;
    color: #536e66;
    font-size: 0.76rem;
    line-height: 1.6;
    cursor: pointer;
}

.work-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--verde);
}

.acceptance-note {
    margin: 10px 0 0 28px;
    color: #789087;
    font-size: 0.69rem;
    line-height: 1.5;
}

.application-actions {
    display: flex;
    margin-top: 27px;
    align-items: center;
    gap: 18px;
}

.application-actions p {
    color: #7a9189;
    font-size: 0.72rem;
}

.application-actions .work-primary-button {
    border: 0;
}

.application-actions .work-primary-button:disabled,
.account-logout:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.application-message {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.79rem;
    line-height: 1.55;
}

.application-message.success {
    border-color: #b9dfca;
    background: #edf9f2;
    color: #0b674c;
}

.application-message.error {
    border-color: #efc3c3;
    background: #fff1f1;
    color: #a52e2e;
}

.application-message.info {
    border-color: #cbded6;
    background: #f2f7f5;
    color: #43655a;
}

.work-process {
    background: var(--branco);
}

.work-process .work-section-heading {
    margin-bottom: 36px;
}

.work-process ol {
    display: grid;
    max-width: 1050px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
}

.work-process li {
    position: relative;
    padding: 30px 25px 27px;
    border-top: 2px solid var(--verde);
    background: #fbfdfc;
}

.work-process li > span {
    display: block;
    margin-bottom: 22px;
    color: var(--verde);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09rem;
}

.work-process li strong {
    display: block;
    margin-bottom: 9px;
    color: var(--verde-escuro);
    font-size: 1rem;
}

.work-process li p {
    color: var(--cinza);
    font-size: 0.8rem;
    line-height: 1.65;
}

@media (max-width: 1050px) {
    .work-hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
        gap: 42px;
    }

    .work-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-option {
        min-height: 290px;
    }
}

@media (max-width: 800px) {
    .work-hero {
        min-height: auto;
        padding-top: 64px;
        padding-bottom: 64px;
        grid-template-columns: 1fr;
    }

    .work-hero h1 {
        letter-spacing: -0.1rem;
    }

    .account-card {
        min-height: 240px;
    }

    .work-opportunities,
    .work-process,
    .application-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .application-shell {
        grid-template-columns: 1fr;
    }

    .application-heading {
        position: static;
        text-align: center;
    }

    .application-heading p {
        margin-right: auto;
        margin-left: auto;
    }

    .work-process ol {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .work-hero {
        padding-right: 24px;
        padding-left: 24px;
    }

    .work-hero h1 {
        font-size: clamp(2.45rem, 13vw, 3.4rem);
    }

    .work-options,
    .application-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .work-option {
        min-height: 280px;
    }

    .application-full-width {
        grid-column: auto;
    }

    .application-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .application-actions .work-primary-button {
        width: 100%;
    }

    .application-actions p {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-primary-button,
    .work-option,
    .work-option-icon,
    .work-option-action b {
        transition: none;
    }
}
