/* =========================================================
   PRIMEIROS PASSOS
========================================================= */

.steps-section {
    padding: 32px 0 80px;

    background: #ffffff;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.steps-heading {
    text-align: center;
}


.steps-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 0 14px;

    border-radius: 999px;

    background: #eaf2fb;

    color: #12365f;

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.01em;
}


.steps-heading h2 {
    max-width: 900px;

    margin: 22px auto 0;

    color: #111d33;

    font-size: clamp(2.2rem, 3.4vw, 3.5rem);

    line-height: 1.08;

    letter-spacing: -0.045em;

    font-weight: 400;
}


.steps-heading p {
    max-width: 700px;

    margin: 18px auto 0;

    color: #607089;

    font-size: 1rem;

    line-height: 1.6;
}


/* =========================================================
   GRID
========================================================= */

.steps-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    margin-top: 74px;
}


/* =========================================================
   CARD
========================================================= */

.step-card {
    min-height: 226px;

    padding: 40px 36px;

    border: 1px solid #dfe6ee;

    border-radius: 24px;

    background: #f8faff;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}


.step-card:hover {
    transform: translateY(-4px);

    border-color: #d2dce8;

    box-shadow:
        0 18px 36px rgba(18, 54, 95, 0.08);
}


/* NÚMERO */

.step-number {
    display: block;

    color: #a9c8ff;

    font-size: 2.8rem;
    font-weight: 800;

    line-height: 1;
}


/* TÍTULO */

.step-card h3 {
    margin: 28px 0 0;

    color: #111d33;

    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1.25;
}


/* TEXTO */

.step-card p {
    margin: 12px 0 0;

    color: #586982;

    font-size: 0.92rem;

    line-height: 1.55;
}


/* =========================================================
   BOTÃO
========================================================= */

.steps-action {
    display: flex;

    justify-content: center;

    margin-top: 72px;
}


.steps-button {
    min-height: 48px;

    padding: 0 31px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: 0;

    background: #ff8428;

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    gap: 7px;

    box-shadow:
        0 10px 24px rgba(255, 132, 40, 0.22);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.steps-button:focus-visible {
    outline: 3px solid rgba(255, 132, 40, 0.32);
    outline-offset: 4px;
}

.steps-button-arrow {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}


.steps-button:hover {
    background: #f4781f;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(255, 132, 40, 0.28);
}


/* =========================================================
   MODAL DE ATENDIMENTO
========================================================= */

.whatsapp-floating {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 210;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(4, 31, 43, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus-visible {
    background: #1fbd59;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.48);
}

.whatsapp-floating:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.3);
    outline-offset: 4px;
}

.whatsapp-floating svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.specialist-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.specialist-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.specialist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 36, 0.72);
    backdrop-filter: blur(4px);
}

.specialist-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: clamp(24px, 4vh, 38px);
    border-radius: 24px;
    border: 1px solid #dfe6ee;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 28px 70px rgba(5, 15, 36, 0.42);
}

.specialist-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf5ff;
    color: var(--navy-2);
    font: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.specialist-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #3977b9;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.specialist-dialog h2 {
    margin: 0;
    padding-right: 35px;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 400;
}

.specialist-dialog > p {
    margin: 10px 0 25px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.55;
}

.specialist-form {
    display: grid;
    gap: 18px;
}

.specialist-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
}

.specialist-form input,
.specialist-form textarea {
    width: 100%;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text);
    font: inherit;
    font-weight: 400;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.specialist-form input::placeholder,
.specialist-form textarea::placeholder {
    color: #8795a8;
    opacity: 1;
}

.specialist-form textarea {
    min-height: 112px;
    resize: vertical;
}

.specialist-form input:focus,
.specialist-form textarea:focus {
    border-color: #3977b9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(57, 119, 185, 0.14);
}

.specialist-form input.is-invalid,
.specialist-form textarea.is-invalid {
    border-color: #c62828;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.specialist-field-error {
    min-height: 1em;
    color: #b42318;
    font-size: 0.78rem;
    line-height: 1.25;
}

.specialist-submit {
    width: 100%;
    margin-top: 4px;
    background: #1769aa;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(23, 105, 170, 0.22);
}

.specialist-submit:hover,
.specialist-submit:focus-visible {
    background: #12598f;
    box-shadow: 0 14px 30px rgba(23, 105, 170, 0.28);
}

@media (max-height: 760px) {
    .specialist-modal { padding: 12px; }

    .specialist-dialog {
        width: min(500px, 100%);
        padding: 20px 26px;
        border-radius: 18px;
    }

    .specialist-close {
        top: 10px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .specialist-eyebrow { margin-bottom: 5px; }
    .specialist-dialog h2 { font-size: 1.55rem; }

    .specialist-dialog > p {
        margin: 5px 0 12px;
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .specialist-form { gap: 10px; }

    .specialist-form label {
        gap: 5px;
        font-size: 0.82rem;
    }

    .specialist-form input,
    .specialist-form textarea { padding: 9px 12px; }

    .specialist-form textarea {
        min-height: 64px;
        max-height: 80px;
    }

    .specialist-submit { min-height: 44px; }
}


/* =========================================================
   NOTEBOOK
========================================================= */

@media (max-width: 1024px) {

    .steps-grid {
        gap: 20px;
    }


    .step-card {
        padding: 34px 28px;
    }

}


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

@media (max-width: 820px) {

    .steps-section {
        padding: 24px 0 68px;
    }


    .steps-grid {
        grid-template-columns: 1fr;

        max-width: 620px;

        margin:
            50px auto 0;

        gap: 18px;
    }


    .step-card {
        min-height: auto;
    }


    .steps-action {
        margin-top: 48px;
    }

}


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

@media (max-width: 520px) {

    .whatsapp-floating {
        right: 16px;
        bottom: 72px;
        width: 44px;
        height: 44px;
    }

    .specialist-modal {
        padding: 12px;
    }

    .specialist-dialog {
        padding: clamp(20px, 4vh, 32px) 22px clamp(18px, 3vh, 24px);
        border-radius: 19px;
    }

    .steps-section {
        padding: 24px 0 60px;
    }


    .steps-heading h2 {
        font-size: 2rem;
    }


    .steps-heading p {
        font-size: 0.92rem;
    }


    .steps-grid {
        margin-top: 40px;
    }


    .step-card {
        padding: 28px 24px;

        border-radius: 20px;
    }


    .step-number {
        font-size: 2.4rem;
    }


    .step-card h3 {
        margin-top: 22px;

        font-size: 1.05rem;
    }


    .step-card p {
        font-size: 0.88rem;
    }


    .steps-action {
        margin-top: 38px;
    }


    .steps-button {
        width: 100%;
    }

}
