/* ==========================================================================
   ACP-SG
   PÁGINA ASSOCIAR
   ========================================================================== */


/* ==========================================================================
   VARIÁVEIS LOCAIS
   ========================================================================== */

.associate-page {

    --associate-green: var(--cor-primaria);
    --associate-green-dark: var(--cor-agua-escura);
    --associate-teal: var(--cor-agua);

    --associate-bg: var(--cor-fundo);
    --associate-bg-soft: var(--cor-fundo-claro);

    --associate-text: #263c35;
    --associate-text-soft: #60716c;

    --associate-border: rgba(38, 60, 53, .12);

    width: 100%;

    overflow: hidden;

    background: var(--associate-bg);

    color: var(--associate-text);
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.associate-page .container {

    width: min(1080px, calc(100% - 80px));

    margin-inline: auto;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.associate-hero {

    position: relative;

    padding: 76px 0 62px;

    background:
        linear-gradient(
            135deg,
            rgba(238, 246, 242, .96),
            rgba(255, 255, 255, .99)
        );

    border-bottom:
        1px solid rgba(38, 60, 53, .06);
}


.associate-hero__content {

    max-width: 850px;

    margin-inline: auto;

    text-align: center;
}


/* ==========================================================================
   LABEL
   ========================================================================== */

.associate-hero__label {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 17px;

    color: var(--associate-green-dark);

    font-size: .69rem;

    font-weight: 800;

    letter-spacing: .2em;

    line-height: 1.4;

    text-transform: uppercase;
}


.associate-hero__label::before,
.associate-hero__label::after {

    content: "";

    width: 28px;

    height: 2px;

    background: var(--associate-teal);
}


/* ==========================================================================
   TÍTULO
   ========================================================================== */

.associate-hero h1 {

    margin: 0;

    color: var(--associate-green);

    font-size: clamp(2.8rem, 5vw, 4.5rem);

    font-weight: 800;

    letter-spacing: -.045em;

    line-height: 1;
}


/* ==========================================================================
   DESCRIÇÃO
   ========================================================================== */

.associate-hero p {

    max-width: 720px;

    margin: 22px auto 0;

    color: var(--associate-text-soft);

    font-size: 1.05rem;

    line-height: 1.75;
}


/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.associate-content {

    padding: 68px 0 100px;

    background: var(--associate-bg);
}


/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */

.associate-form {

    width: 100%;
}


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.associate-section {

    margin-bottom: 34px;

    padding: 38px;

    background: #fff;

    border: 1px solid var(--associate-border);

    border-radius: var(--raio-pequeno);

    box-shadow:
        0 12px 35px rgba(35, 61, 52, .055);
}


.associate-section__heading {

    display: flex;

    align-items: flex-start;

    gap: 17px;

    margin-bottom: 30px;
}


.associate-section__number {

    display: grid;

    flex: 0 0 auto;

    place-items: center;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: var(--associate-green);

    color: #fff;

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .03em;
}


.associate-section__heading h2 {

    margin: 2px 0 5px;

    color: var(--associate-green);

    font-size: 1.55rem;

    font-weight: 800;

    line-height: 1.25;
}


.associate-section__heading p {

    margin: 0;

    color: var(--associate-text-soft);

    font-size: .88rem;

    line-height: 1.55;
}


/* ==========================================================================
   GRADE DOS CAMPOS
   ========================================================================== */

.associate-fields {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 22px;
}


.associate-field {

    min-width: 0;
}


.associate-field--full {

    grid-column: 1 / -1;
}


.associate-field--wide {

    grid-column: span 1;
}


.associate-field--small {

    max-width: 220px;
}


/* ==========================================================================
   LABEL DOS CAMPOS
   ========================================================================== */

.associate-field label,
.associate-label {

    display: block;

    margin-bottom: 8px;

    color: var(--associate-text);

    font-size: .82rem;

    font-weight: 700;

    line-height: 1.4;
}


/* ==========================================================================
   INPUTS
   ========================================================================== */

.associate-field input[type="text"],
.associate-field input[type="email"],
.associate-field input[type="tel"],
.associate-field input[type="date"],
.associate-field textarea {

    display: block;

    box-sizing: border-box;

    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid rgba(38, 60, 53, .18);

    border-radius: 8px;

    outline: none;

    background: #fff;

    color: var(--associate-text);

    font: inherit;

    font-size: .94rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}


.associate-field textarea {

    min-height: 92px;

    resize: vertical;

    line-height: 1.55;
}


.associate-field input::placeholder,
.associate-field textarea::placeholder {

    color: rgba(96, 113, 108, .65);
}


.associate-field input:focus,
.associate-field textarea:focus {

    border-color: var(--associate-teal);

    box-shadow:
        0 0 0 3px rgba(66, 201, 193, .12);
}


/* ==========================================================================
   OPÇÕES
   ========================================================================== */

.associate-options {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px 22px;

    min-height: 48px;

    padding: 5px 0;
}


.associate-options label {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 0;

    color: var(--associate-text-soft);

    font-size: .88rem;

    font-weight: 600;

    cursor: pointer;
}


.associate-options input {

    width: 18px;

    height: 18px;

    margin: 0;

    accent-color: var(--associate-green);

    cursor: pointer;
}


/* ==========================================================================
   DECLARAÇÃO
   ========================================================================== */

.associate-section--declaration {

    padding-bottom: 40px;
}


.associate-declaration {

    padding: 25px 27px;

    background: var(--associate-bg-soft);

    border-left:
        4px solid var(--associate-teal);

    border-radius:
        0 8px 8px 0;
}


.associate-declaration p {

    margin: 0 0 18px;

    color: var(--associate-text-soft);

    font-size: .9rem;

    line-height: 1.75;
}


.associate-declaration p:last-of-type {

    margin-bottom: 24px;
}


.associate-declaration .associate-field {

    margin-top: 8px;
}


/* ==========================================================================
   CONFIRMAÇÃO
   ========================================================================== */

.associate-confirmation {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 26px;

    padding: 17px 18px;

    background: rgba(66, 201, 193, .07);

    border: 1px solid rgba(66, 201, 193, .16);

    border-radius: 8px;

    color: var(--associate-text);

    font-size: .88rem;

    font-weight: 600;

    line-height: 1.55;

    cursor: pointer;
}


.associate-confirmation input {

    flex: 0 0 auto;

    width: 19px;

    height: 19px;

    margin: 1px 0 0;

    accent-color: var(--associate-green);

    cursor: pointer;
}


/* ==========================================================================
   ASSINATURA
   ========================================================================== */

.associate-signature {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px 22px;

    margin-top: 28px;
}


/* ==========================================================================
   AÇÕES
   ========================================================================== */

.associate-actions {

    display: flex;

    justify-content: flex-end;

    margin-top: 10px;
}


.associate-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 13px 24px;

    border: 0;

    border-radius: 8px;

    background: var(--associate-green);

    color: #fff;

    font: inherit;

    font-size: .9rem;

    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(35, 61, 52, .12);

    transition:
        transform .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}


.associate-button:hover {

    background: var(--associate-green-dark);

    transform: translateY(-1px);

    box-shadow:
        0 11px 26px rgba(35, 61, 52, .16);
}


.associate-button:focus-visible {

    outline:
        3px solid rgba(66, 201, 193, .45);

    outline-offset: 4px;
}


/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

.associate-field input:focus-visible,
.associate-field textarea:focus-visible,
.associate-options input:focus-visible,
.associate-confirmation input:focus-visible {

    outline:
        3px solid rgba(66, 201, 193, .25);

    outline-offset: 2px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .associate-page .container {

        width: min(100% - 48px, 760px);
    }


    .associate-hero {

        padding: 62px 0 52px;
    }


    .associate-content {

        padding-top: 55px;
    }


    .associate-section {

        padding: 30px;
    }


    .associate-fields {

        gap: 18px;
    }


    .associate-field--small {

        max-width: none;
    }

}


/* ==========================================================================
   TABLET PEQUENO
   ========================================================================== */

@media (max-width: 700px) {

    .associate-page .container {

        width: calc(100% - 36px);
    }


    .associate-hero {

        padding: 52px 0 45px;
    }


    .associate-hero h1 {

        font-size:
            clamp(2.45rem, 9vw, 3.5rem);
    }


    .associate-hero p {

        margin-top: 18px;

        font-size: .98rem;
    }


    .associate-content {

        padding: 45px 0 70px;
    }


    .associate-section {

        margin-bottom: 24px;

        padding: 25px 22px;

        border-radius: 10px;
    }


    .associate-section__heading {

        gap: 13px;

        margin-bottom: 25px;
    }


    .associate-section__number {

        width: 36px;

        height: 36px;

        font-size: .68rem;
    }


    .associate-section__heading h2 {

        font-size: 1.32rem;
    }


    .associate-fields {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .associate-field--full,
    .associate-field--wide,
    .associate-field--small {

        grid-column: auto;

        max-width: none;
    }


    .associate-options {

        gap: 12px 17px;
    }


    .associate-declaration {

        padding: 20px 19px;
    }


    .associate-signature {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .associate-actions {

        justify-content: stretch;
    }


    .associate-button {

        width: 100%;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .associate-page .container {

        width: calc(100% - 28px);
    }


    .associate-hero {

        padding: 44px 0 40px;
    }


    .associate-hero__label {

        margin-bottom: 14px;

        font-size: .63rem;

        letter-spacing: .17em;
    }


    .associate-hero__label::before,
    .associate-hero__label::after {

        width: 22px;
    }


    .associate-hero h1 {

        font-size: 2.45rem;

        line-height: 1.02;
    }


    .associate-hero p {

        font-size: .92rem;

        line-height: 1.65;
    }


    .associate-content {

        padding: 38px 0 60px;
    }


    .associate-section {

        padding: 22px 17px;
    }


    .associate-section__heading {

        align-items: center;
    }


    .associate-section__heading h2 {

        font-size: 1.2rem;
    }


    .associate-section__heading p {

        font-size: .82rem;
    }


    .associate-field label,
    .associate-label {

        font-size: .79rem;
    }


    .associate-field input[type="text"],
    .associate-field input[type="email"],
    .associate-field input[type="tel"],
    .associate-field input[type="date"],
    .associate-field textarea {

        min-height: 46px;

        padding: 11px 12px;

        font-size: .9rem;
    }


    .associate-options {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .associate-declaration {

        padding: 18px 16px;
    }


    .associate-declaration p {

        font-size: .84rem;

        line-height: 1.7;
    }


    .associate-confirmation {

        padding: 14px;

        font-size: .82rem;
    }

}


/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .associate-page *,
    .associate-page *::before,
    .associate-page *::after {

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }

}
