/**
 * Portal RH — Comunicado de primeiro acesso
 * CSS isolado em assets
 * @author Albert Madureira
 */

.pa-first-access {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: var(--text, #1e2a4a);
}

.pa-first-access[hidden],
.pa-first-access.is-hidden {
    display: none !important;
}

.pa-first-access__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 34, .66);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pa-first-access__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100dvh - 38px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(12, 18, 34, .32);
    animation: paFirstAccessIn .24s cubic-bezier(.2,.8,.2,1) both;
}

.pa-first-access__brandbar {
    position: relative;
    flex: 0 0 auto;
    min-height: 148px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 28px 34px;
    background: linear-gradient(135deg, #1e2a4a 0%, #40577f 100%);
    color: #fff;
    overflow: hidden;
}

.pa-first-access__brandbar::after {
    content: "";
    position: absolute;
    right: -62px;
    top: -86px;
    width: 266px;
    height: 266px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}

.pa-first-access__mark {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(0,0,0,.10);
    overflow: hidden;
}

.pa-first-access__lock-svg {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
}

.pa-first-access__headline {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pa-first-access__kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.pa-first-access__headline-title {
    margin: 0;
    max-width: 460px;
    font-family: 'Nunito', sans-serif;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}

.pa-first-access__body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding: 30px 34px 18px;
}

.pa-first-access__title {
    margin: 0 0 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a9ab0;
}

.pa-first-access__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.72;
    color: #61708a;
}

.pa-first-access__notice {
    margin: 18px 0;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid #dfe7f4;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 14px 34px rgba(30, 42, 74, .06);
}

.pa-first-access__notice strong {
    display: block;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #8a9ab0;
}

.pa-first-access__notice span {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
    color: #1e2a4a;
}

.pa-first-access__example {
    margin-top: -4px;
    padding: 0 24px 8px;
    color: #7887a0;
    font-size: 14px;
    line-height: 1.6;
}

.pa-first-access__example strong {
    font-weight: 500;
    color: #7887a0;
}

.pa-first-access__text--small {
    margin-top: 18px;
    margin-bottom: 0;
}

.pa-first-access__actions {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    gap: 12px;
    padding: 18px 34px 30px;
    background: #fff;
    border-top: 1px solid #edf2fa;
    box-shadow: 0 -10px 24px rgba(255,255,255,.82);
}

.pa-first-access__btn {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pa-first-access__btn--primary {
    background: #1e2a4a;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(30,42,74,.10), 0 14px 28px rgba(30,42,74,.18);
}

.pa-first-access__btn--primary:hover {
    background: #26375f;
    transform: translateY(-1px);
}

.pa-first-access__btn--light {
    background: #eef5ff;
    border-color: #d8e4f3;
    color: #1e2a4a;
}

.pa-first-access__btn--light:hover {
    background: #e4effd;
    transform: translateY(-1px);
}

.pa-first-access__btn--whatsapp {
    background: #eaf8ef;
    border-color: #c7efd4;
    color: #116b36;
}

.pa-first-access__btn--whatsapp:hover {
    background: #dcf4e6;
    transform: translateY(-1px);
}

.pa-first-access__wa-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.pa-first-access__status {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0 34px 0;
    font-size: 13px;
    color: #6a7a8e;
}

body.pa-first-access-open {
    overflow: hidden;
}

@keyframes paFirstAccessIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .pa-first-access {
        align-items: flex-start;
        padding: max(14px, env(safe-area-inset-top)) 18px 18px;
        overflow-y: auto;
    }

    .pa-first-access__dialog {
        width: 100%;
        max-height: calc(100dvh - 28px);
        border-radius: 24px;
    }

    .pa-first-access__brandbar {
        min-height: 124px;
        grid-template-columns: 66px minmax(0, 1fr);
        padding: 22px 24px;
        gap: 14px;
    }

    .pa-first-access__mark {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .pa-first-access__lock-svg {
        width: 34px;
        height: 34px;
    }

    .pa-first-access__kicker {
        font-size: 11px;
        letter-spacing: .14em;
    }

    .pa-first-access__headline-title {
        font-size: 27px;
    }

    .pa-first-access__body {
        padding: 24px 24px 16px;
    }

    .pa-first-access__title {
        font-size: 13px;
        letter-spacing: .11em;
    }

    .pa-first-access__text {
        font-size: 15px;
        line-height: 1.68;
    }

    .pa-first-access__notice {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .pa-first-access__notice span {
        font-size: 20px;
    }

    .pa-first-access__example {
        padding: 0 18px 4px;
        font-size: 13px;
    }

    .pa-first-access__actions {
        padding: 16px 24px 24px;
    }

    .pa-first-access__btn {
        min-height: 52px;
        font-size: 15px;
        border-radius: 17px;
    }
}

@media (max-width: 380px) {
    .pa-first-access {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pa-first-access__headline-title {
        font-size: 24px;
    }

    .pa-first-access__notice span {
        font-size: 18px;
    }
}
