/* ==========================================================
   MODAL CADASTUR
========================================================== */

.credencial-modal{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px;

    background:rgba(13,44,58,.78);

    backdrop-filter:blur(10px);

    z-index:99999;

    opacity:0;

    visibility:hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}

.credencial-modal.ativo{

    opacity:1;

    visibility:visible;

}


/* ==========================================================
   CONTAINER
========================================================== */

.credencial-container{

    width:min(100%,980px);

    max-height:92vh;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    border-radius:28px;

    background:#ffffff;

    box-shadow:
        0 30px 80px rgba(0,0,0,.28);

    animation:modalEntrada .35s ease;

}


/* ==========================================================
   ANIMAÇÃO
========================================================== */

@keyframes modalEntrada{

    from{

        opacity:0;

        transform:
            translateY(30px)
            scale(.96);

    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* ==========================================================
   HEADER
========================================================== */

.credencial-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    padding:26px 34px;

    background:
        linear-gradient(
            135deg,
            #0D2C3A,
            #18485d
        );

    color:#fff;

}

.credencial-titulo strong{

    display:block;

    font-size:1.35rem;

    margin-bottom:6px;

}

.credencial-titulo span{

    font-size:.82rem;

    letter-spacing:1.6px;

    text-transform:uppercase;

    opacity:.8;

}


/* ==========================================================
   AÇÕES
========================================================== */

.credencial-acoes{

    display:flex;

    gap:14px;

    align-items:center;

    flex-wrap:wrap;

}

.credencial-acoes a,

.credencial-fechar{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 22px;

    border-radius:999px;

    text-decoration:none;

    border:none;

    cursor:pointer;

    font-weight:600;

    transition:
        transform .25s ease,
        background .25s ease;

}

.credencial-download{

    background:#F4B942;

    color:#0D2C3A;

}

.credencial-download:hover{

    background:#ffc95d;

}

.credencial-nova-guia{

    background:rgba(255,255,255,.18);

    color:#fff;

}

.credencial-nova-guia:hover{

    background:rgba(255,255,255,.30);

}

.credencial-fechar{

    width:48px;

    height:48px;

    padding:0;

    font-size:1.6rem;

    background:#ffffff;

    color:#0D2C3A;

}

.credencial-acoes a:hover,

.credencial-fechar:hover{

    transform:translateY(-2px);

}


/* ==========================================================
   IMAGEM
========================================================== */

.credencial-conteudo{

    padding:36px;

    overflow:auto;

    background:#f7f9fb;

    display:flex;

    justify-content:center;

}

.credencial-conteudo img{

    width:100%;

    max-width:640px;

    border-radius:20px;

    box-shadow:
        0 18px 45px rgba(13,44,58,.14);

}


/* ==========================================================
   FOOTER
========================================================== */

.credencial-footer{

    padding:28px 34px;

    background:#fff;

    border-top:1px solid #edf1f4;

}

.credencial-footer strong{

    display:block;

    color:#0D2C3A;

    font-size:1.1rem;

    margin-bottom:12px;

}

.credencial-footer p{

    color:#5f6b73;

    line-height:1.8;

    margin-bottom:16px;

}

.credencial-footer small{

    display:block;

    color:#7b8790;

}


/* ==========================================================
   RESPONSIVO
========================================================== */

@media(max-width:768px){

    .credencial-modal{

        padding:20px;

    }

    .credencial-container{

        max-height:96vh;

    }

    .credencial-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .credencial-acoes{

        width:100%;

    }

    .credencial-acoes a{

        flex:1;

        justify-content:center;

    }

    .credencial-fechar{

        flex:none;

    }

    .credencial-conteudo{

        padding:22px;

    }

}

@media(max-width:540px){

    .credencial-header{

        padding:22px;

    }

    .credencial-footer{

        padding:22px;

    }

    .credencial-acoes{

        flex-direction:column;

        align-items:stretch;

    }

    .credencial-fechar{

        width:100%;

        height:48px;

    }

}