@import url('https://cdngovbr-ds.estaleiro.serpro.gov.br/design-system/fonts/rawline/css/rawline.css');

/* Largura máxima do conteúdo, com respiro lateral de 24px em telas menores */
:root {
    --cgu-largura: min(1200px, calc(100vw - 48px));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

a {
    line-height: normal !important;
}

body, .font-noto  {
    font-family: "Rawline", "Raleway", Arial, sans-serif;
    padding-bottom: 0;
    padding-top: 0 !important;
}

.font-noto {
    max-width: 100% !important;
}

/* Rodapé sempre no fim da tela, mesmo em páginas curtas (erro, manutenção, lista).
   O rodapé fica direto no body na maioria dos layouts e dentro do article na lista de questionários. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* O survey-list.css do LimeSurvey fixa html, body { height: 100% }, o que gera rolagem na lista */
html > body {
    height: auto;
}

body > article,
body > article > #dynamicReloadContainer:has(> #footer) {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Página de manutenção */
#block_maintenance {
    width: 100%;
    max-width: var(--cgu-largura);
    margin: 0 auto;
    padding: 64px 0;
}

#block_maintenance h1 {
    font-size: 32px;
    margin-bottom: 24px !important;
}

#block_maintenance p {
    font-size: 18px;
    margin-bottom: 8px !important;
}

.cgu-navbar-container {
    width: 100%;
    height: auto;
    background-color: #fff;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.16);
}

.cgu-navbar-container-wrapper {
    width: 100%;
    max-width: var(--cgu-largura);
    margin: 0 auto;

    padding: 24px 0px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cgu-navbar-top-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    position: relative;
    top: 0;
    left: 0;
}

.cgu-navbar-top-logo-signature {
    width: 100%;
    max-width: fit-content;

    display: flex;
    align-items: center;
    gap: 20px;
}

.cgu-logo-img {
    width: auto;
    height: 40px;
}

.cgu-divider {
    width: 1px;
    height: 40px !important;
    border: none;
    background-color: #333;
    margin: 0 !important;
    padding: 0 !important;
}

.cgu-signature {
    font-weight: 600;
}

.cgu-navbar-top-menu-container {
    width: 100%;
    max-width: fit-content;
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.list-item a {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1351B4 !important;
    text-decoration: none;
}

.list-item a:hover {
    background-color: #d9e3f3;
}

.list-item a:focus-visible {
    outline: 3px solid #c2850c;
    outline-offset: 2px;
}

/* Botão "Entrar" do header, no estilo br-sign-in do gov.br */
.cgu-btn-entrar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid #1351B4;
    border-radius: 100em;
    color: #1351B4 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.cgu-btn-entrar:hover {
    background-color: #d9e3f3;
}

.cgu-btn-entrar:focus-visible {
    outline: 3px solid #c2850c;
    outline-offset: 2px;
}

.cgu-navbar-main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.cgu-navbar-main-title {
    height: auto !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1351B4 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.cgu-navbar-main-title:hover {
    background-color: #d9e3f3;
}

.cgu-navbar-main-description {
    margin-top: 4px;
    margin-bottom: 0px !important;
}

/* ----- RESET DE ESTILOS -----*/
/* Barra de ações do questionário (salvar/carregar) */
#navbar-actions .navbar-nav,
#navbar-actions .nav {
    flex-direction: row !important;
}

#navbar-actions .nav-link {
    font-size: 14px;
    color: #1351B4 !important;
    padding: 6px 12px !important;
    border: 1px solid #1351B4;
    border-radius: 4px;
    margin: 4px 4px;
    transition: background-color 0.15s;
    white-space: nowrap;
}

#navbar-actions .nav-link:hover {
    background-color: #d9e3f3;
    text-decoration: none !important;
}

/* Legado: mantido para compatibilidade */
#navbar {
    width: 100%;
    background-color: #1351B4 !important;
    padding: 0 !important;
}

#navbar .navbar-nav {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#navbar .nav-link {
    text-align: center !important;
    color: #fff !important;
    padding: 10px 0px !important;
    transition: none !important;
}

#navbar .nav-link:hover {
    outline: none !important;
    border: none !important;
    text-decoration: none !important;
}

.navbar-expand-md .navbar-nav {
    flex-direction: column !important;
}

.container{
    padding-right: 0px;
    padding-left:  0px; 
    width: 100%;
    max-width: var(--cgu-largura);
}

.col-centered,
#main-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: normal;
    justify-content: center;
    gap: 10px;
}

.container::before{
    content: " ";
    display: table;
}

.container::after{
    content: " ";
    display: table;
}

*::before, *::after{
    box-sizing: border-box;
}

.navbar-fixed-top{
    z-index: 0;
}

html body .navbar.navbar-default.navbar-fixed-top {
    z-index: 2000;
}
.file-upload-modal,.modal{
    z-index: 0;
}

.modal{
    z-index: 3000;    
}

.xdebug-var-dump{
    z-index: 10000;
    position: relative;
    top: 10px;
}

.navbar-action-link{
    padding-right: 0em  !important;
}

body .top-container {
    margin-top: 30px !important;
}

/*Configurar o progresso para ficar no meio e com largura maxima do layout*/

.top-container .progress {
    margin: 0 auto;
    max-width: var(--cgu-largura);
}

.text-center {
    text-align: left !important;
}

/*Configurar a altura do campo de escolha de lingua*/
.language_change_container{
    height: auto;
}


.save-survey-label {
    width: 100% !important;
    max-width: fit-content !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 3px !important;
}

.small {
    font-size: 8px !important;
    margin-right: 0 !important;
}

/*Rodape*/
#footer {
    padding: 0px !important;
    min-height: 50px;
    height: max-content !important;
    width: 100%;
    background-color: #071d41;
}

.img-fluid {
    width: 80px !important;
}

.footer-logos {
    width: 100%;
    max-width: var(--cgu-largura);
    margin: 0 auto;

    padding-top: 30px !important;
    padding-bottom: 20px !important;
}

#extra-footer {
    width: 100%;
    height: 50px;
    background-color: #04132a;

    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-footer-wrapper {
    width: 100%;
    max-width: var(--cgu-largura);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#extra-footer span {
    width: 100%;
    max-width: fit-content;
    text-align: left;
    font-size: 12px;
    color: #fff;
}

#extra-footer span a {
    text-decoration: none !important;
    color: #ddd !important;
}

#extra-footer span a:hover {
    color: #fff !important;
}

#sobre {
    background: #1351B4;
    height: 30px;
}
#sobre {
    clear: both;
    margin: 0;
    padding: 5px 0;
    max-width: 100% !important;
    line-height: 20px;
}
#sobre ul {
    margin: 0 auto;
    max-width: var(--cgu-largura);
    text-align: right;
}
#sobre ul li {
    display: inline;
}
#sobre .portalservicos-item a {
    border-right: 1px solid #87a0cc;
}
#sobre .portalservicos-item a {
    padding: 0 10px;    
}
#sobre a {
    color: white;
}
.dropdown-menu > li > a  {
    color: black !important;
}

.col-answers{
    width: auto !important;
}

body {
    padding-bottom: 0px !important;     
}

#navigator-container {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;
    margin-bottom: 20px !important;
}

.save-form {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;
}

.save-message {
    width: 100%;
    max-width: var(--cgu-largura);
    margin: 0 auto;
    margin-bottom: 30px !important;
}

.save-survey-form {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;

    margin-top: 20px !important;
    margin-bottom: 40px !important;
}

.survey-form-container {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;
}

.return-to-survey {
    width: 100%;
    max-width: fit-content;
}

#surveys-list-container {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;

    padding-bottom: 10px !important;
}

#surveys-list-jumbotron {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 40px !important;
}

/* Esconde o footer padrão do LimeSurvey (display: none para não ocupar espaço) */
#surveyListFooter {
    display: none !important;
}

.survey-list {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;
}

.survey-list .surveys-list-container .surveys-list {
    margin-top: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: calc(50% - 10px) calc(50% - 10px) !important;
    gap: 10px !important;
}

.survey-list .surveys-list-container .surveys-list li {
    width: 100% !important;
    padding: 0 !important;
}

/* Botão primário do gov.br (br-button primary): 40px de altura, 16,8px, semibold (600).
   Títulos longos quebram linha mantendo a altura mínima. */
.survey-list .surveys-list-container .surveys-list .btn-group .surveytitle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 24px !important;
    background-color: #1351B4 !important;
    border: 0 !important;
    /* 20px = metade dos 40px: pílula em uma linha, cantos arredondados quando o título quebra */
    border-radius: 20px !important;
    color: #fff !important;
    font-size: 16.8px !important;
    font-weight: 400 !important;
    line-height: 24px;
    text-align: center;
    overflow-wrap: anywhere;
    min-width: 0;
    margin-left: 0 !important;
}

/* Interação do gov.br: camada branca de 16% no hover e de 45% ao pressionar */
.survey-list .surveys-list-container .surveys-list .btn-group .surveytitle:hover {
    background-color: #1351B4 !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16));
}

.survey-list .surveys-list-container .surveys-list .btn-group .surveytitle:active {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45));
}

.survey-list .surveys-list-container .surveys-list .btn-group .surveytitle:focus-visible {
    outline: 4px dashed #c2850c;
    outline-offset: 4px;
}

.surveys-list li {
    padding: 10px 0px !important;
}

#ls-button-submit {
    width: 100% !important;
    max-width: fit-content !important;
    height: 40px !important;
    border-radius: 60px !important;
    font-size: 16.8px !important;
    font-weight: 600 !important;
    padding: 0px 24px !important;
    color: #fff !important;
    background-color: #1351B4 !important;
    border: 1px solid #1351B4 !important;
    transition: none !important;
}

#savebutton, #loadbutton {
    width: 100% !important;
    max-width: fit-content !important;
    height: 40px !important;
    border-radius: 60px !important;
    font-size: 16.8px !important;
    font-weight: 600 !important;
    padding: 0px 24px !important;
    color: #1351B4 !important;
    background-color: #fff !important;
    border: 1px solid #1351B4 !important;
    transition: none !important;
    margin-top: 20px !important;
}

/* Substitui o verde herdado do tema pai (calendário, botões de escolha, envio de arquivo) */
.btn-primary {
    color: #fff !important;
    background-color: #1351B4 !important;
    border-color: #1351B4 !important;
}

/* Botões de escolha (gênero, sim/não): só a opção marcada fica preenchida */
.btn-check + .ls-button-label.btn-primary {
    color: #1351B4 !important;
    background-color: #fff !important;
    border: 1px solid #1351B4 !important;
}

.btn-check + .ls-button-label.btn-primary:hover {
    background-color: #d9e3f3 !important;
}

.btn-check:checked + .ls-button-label.btn-primary {
    color: #fff !important;
    background-color: #1351B4 !important;
}

/* Foco: troca a sombra verde do tema pai pelo contorno do gov.br, só na navegação por teclado */
.btn:focus,
.btn-check:focus + .btn {
    box-shadow: none !important;
}

.btn:focus-visible,
.btn-check:focus-visible + .btn {
    outline: 3px solid #c2850c;
    outline-offset: 2px;
}

/* CSS quando passa o mouse no objeto */
.btn-primary:hover{
    color: #fff;
    background-color: #396dc0 !important;
    /*Efeito de moviemento =  border: #1351B4 !important; */
}

/* CSS quando clica no objeto */
.btn-primary.active{
    color: #fff;
    background-color: #1351B4 !important;
    border: #1351B4 !important; 
}

/*Mundado a cor do texto na página de boas vindas*/
.fruity .text-info{
    color: #1351B4 !important;
}

/*Mundado a cor do texto na página de boas vindas*/
.fruity .text-primary{
    color: #1351B4 !important;
}
/* Botão "Anterior" no estilo secundário do gov.br */
#ls-button-previous {
    height: 40px !important;
    border-radius: 60px !important;
    font-size: 16.8px !important;
    font-weight: 600 !important;
    padding: 0px 24px !important;
    color: #1351B4 !important;
    background-color: #fff !important;
    border: 1px solid #1351B4 !important;
    transition: none !important;
}

#ls-button-previous:hover {
    background-color: #d9e3f3 !important;
}

/*Mudando a cor da barra de progresso dentro do questionário*/
.fruity .progress-bar{
    background-color: #1351B4!important;
}

/*Mudando a cor da bolinha nas perguntas de selecionar opção*/
body .answer-item label::after{
    background-color: #1351B4!important;
}

/*Mudando a cor dentro de um input quando focado (#1351B4)*/
input:focus{
   box-shadow: 0 0 5px rgba(15, 64, 152, 1) !important;
}
/*Mudando a cor dentro de um textarea quando focado (#1351B4)*/
textarea:focus{
   box-shadow: 0 0 5px rgba(15, 64, 152, 1) !important;
}
/*Mudando a cor dentro de um select quando focado (#1351B4)*/
select:focus{
   box-shadow: 0 0 5px rgba(15, 64, 152, 1) !important;
}

.load-survey-label {
    width: 100%;
    max-width: fit-content;
    display: flex;
    gap: 4px;
}

/*Arrumando a logo para quando estiver em tela normal*/

#portal-title{
    margin: 36px 0 50px;
}

#header{
    height: 150px;
}

/*Arrumando o logo quando acessado em telas pequenas*/
@media only screen and (max-width:760px){
    #portal-title{
        margin: 21px 0 46px;
    }
    
    #header{
        height: 190px;
    }
}


/*Arrumando cor do efeito nos botões do questionário na parte superior*/
@media(min-width: 769px){
    .fruity .navbar a.animate:after {
        background-color: #33bdba;
    }
}

/* Arrumando o shadow quando a pergunta esta com algum erro*/
.fruity .question-container.input-error{
    box-shadow: 0 0 10px rgba(169, 68, 66, 0.9);
}
/*Arrumando a cor da lista de índice de pergunta do questionário*/
.fruity .nav .open>a{
background-color: #1351B4;
}
.fruity .nav .open>a:focus{
background-color: #1351B4;
}
.fruity .nav .open>a:hover{
background-color: #1351B4;
}

.fruity .dropdown-menu>li>a:hover{
background-color: #1351B4;
}

/*Botão de sucesso quando carrega um arquivo*/
.fruity .btn-success{
border: 1px solid #1351B4;
background-color: #1351B4;
}
/*Botão de sucesso quando carrega um arquivo, com o mouse em cima*/
.fruity .btn-success:hover{
border: 1px solid #1351B4;
background-color: #1351B4;
}

.alert-success{
color: #1351B4; 
}

.fruity .btn-info{
background-color: #1351B4;
border: 1px solid #1351B4;
}

.fruity a{
color: #1351B4;
}

#survey-nav {
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.outerframe {
    margin-top: 24px;
    padding: 0px !important;
    max-width: var(--cgu-largura) !important;
}

.group-container {
    width: 100% !important;
    max-width: var(--cgu-largura) !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
}

.group-description {
    margin: 0 !important;
}

.top-container {
    margin-bottom: 24px !important;
}

.top-container .top-content {
    padding: 0px !important;
    margin-top: 20px !important;
    margin-bottom: 0px !important;
}

.group-title {
    margin: 0 !important;
}

/* Estilos do input*/
.control-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.form-control {
    font-size: 16.8px !important;
    color: #333 !important;
    height: 40px !important;
    padding: 0px 16px !important;
    font-weight: 500 !important;
    transition: none !important;
    border: 1px solid #888 !important;
    border-radius: 4px;
}

.form-control:focus {
    outline: 2px solid #c2850c !important;
    box-shadow: none !important;
    border: none;
}

/* Estilos do container*/
.question-container {
    width: 100% !important;
    max-width: 1300px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

.question-title-container,
.answer-container {
    padding: 8px 16px !important;
}

.completed-text  p {
    font-size: 32px !important;
}

.completed-text  p:nth-child(2) {
    font-size: 20px !important;
}

.completed-wrapper {
    margin-top: 48px !important;
}

.checkbox-list {
    padding: 0 !important;
}

.checkbox-item {
    margin-bottom: 0 !important;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        width: 100% !important;
        max-width: 1300px !important;
    }
}

@media screen and (max-width: 991px) {
    .cgu-navbar-container-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media screen and (max-width: 767px) {
    #navigator-container,
    .survey-form-container,
    .group-container {
        padding: 0px 10px !important;
    }
}

/* Opções em linha (ex.: escala de 1 a 5) quebram para a linha seguinte quando falta espaço */
.answers-list.list-group-horizontal {
    flex-wrap: wrap;
    row-gap: 8px;
}

/* Celular: os links do header quebram em linhas, em vez de passar da largura da tela */
@media screen and (max-width: 767px) {
    .cgu-navbar-top-menu-container {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .cgu-navbar-main-title {
        font-size: 20px !important;
    }

    .completed-text p {
        font-size: 24px !important;
    }

    .survey-list .surveys-list-container .surveys-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media screen and (max-width: 412px) {
    .cgu-divider,
    .cgu-signature {
        display: none !important;
    }
}