/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 22 2024 | 00:24:22 */
:root {
    --color-text: #2C2C2C;
    --color-border: #D9D9D9;
    --color-border-hover: #959595;
    --color-border-selected: #E95F7A;
    --color-background: #ffffff;
    --color-checkbox-background: #E95F7A;
    --color-checkmark: #FFFFFF;
}

/* Resetando margin e padding padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    background-color: #F7F7F7;
}

/* Estilo do cabeçalho */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15%;
    background-color: #FFFFFF;
    position: relative;
    z-index: 1;
    box-shadow: 0px 0px 33px -4px rgba(0, 0, 0, 0.09);
}

.header .back-button {
    font-size: 20px;
    color: #1B1B1B;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header .question-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1B1B1B;
}

.header .logo {
    display: none;
}

@media (max-width: 768px) {
    .header {
        padding: 40px 15px;
    }

    .header .logo {
        display: block;
        width: 35px;
        height: auto;
        object-fit: contain;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header .back-button {
        position: absolute;
        left: 15px;
    }

    .header .question-number {
        position: absolute;
        right: 15px;
    }
}

/* Barra de Progresso */
#progress-bar-container {
    width: 100%;
    background-color: #f3f3f3;
    height: 4px;
    border-radius: 20px;
    margin-bottom: 0;
    overflow: hidden; /* Garante que a barra não saia do contêiner */
}

#progress-bar {
    height: 100%;
    background-color: #E95F7A;
    border-radius: 20px;
    width: 0; /* Começa com 0 para animar desde o início */
    transition: width 0.5s ease-in-out; /* Animação suave */
}

/* Estilo para título e subtítulo */
.title-wrapper {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .title-wrapper {
        width: calc(100%);
    }
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3em;
    margin-bottom: 25px;
    text-align: center;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3em;
    margin-top: -15px;
    margin-bottom: 25px;
    text-align: center;
}

/* Corpo da Página */
.content-wrapper {
    padding: 15px;
    margin: 20px auto;
    background-color: #F7F7F7;
}

@media (min-width: 769px) {
    .content-wrapper {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        margin: 0px;
    }
}

/* Layout para opções sem checkbox */
.option {
    display: flex;
    align-items: center;
    padding: 10px 30px;
    margin: 12px 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background-color: var(--color-background);
    height: 76px;
    box-sizing: border-box;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .option {
        height: 65px;
    }
}

.option:hover {
    border-color: var(--color-border-hover);
}

.option.selected {
    border-color: var(--color-border-selected);
    background-color: var(--color-background);
}

/* Layout para opções com checkbox */
.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-checkbox-background);
    border-radius: 4px;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 12px;
    color: white;
    z-index: 1;
    overflow: hidden; /* Certifica-se de que o conteúdo permanece dentro da borda */
}

/* Fundo branco com z-index para cobrir o conteúdo não desejado */
.checkbox::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2; /* Este z-index garante que o fundo branco cubra qualquer ícone indesejado */
    border-radius: 4px; /* Adiciona a curvatura ao fundo para combinar com a borda */
}

/* Quando a opção está selecionada */
.option.selected .checkbox {
    background-color: var(--color-checkbox-background);
}

/* Remove o fundo branco ao selecionar */
.option.selected .checkbox::after {
    display: none; /* Oculta o fundo branco quando selecionado */
}

.option.selected .checkbox::before {
    content: "\f00c"; /* Código do ícone Font Awesome "check" */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: block;
    color: white;
    font-size: 12px;
    z-index: 3; /* O ícone de check ficará acima de todos */
}

/* Ajustes para telas menores */
@media (max-width: 767px) {
    .checkbox {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }

    .option.selected .checkbox::before {
        font-size: 10px;
    }
}

/* Escondendo todas as perguntas por padrão */
.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

/* Botão de Continuar */
.final-button {
    display: block;
    width: 100%;
    padding: 15px 30px;
    margin-top: 25px;
    text-align: center;
    color: #FFFFFF;
    background-color: #E95F7A;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.final-button:hover {
    background-color: #D04A6A;
}

/* CSS do gráfico */
.chart-container {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
}

.bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 250px;
    margin-bottom: 10px;
    position: relative;
    gap: 10px; /* Espaçamento entre as barras */
}

.bar-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Mantém a altura das barras consistente */
    flex: 1; /* Faz as barras ocuparem espaço igual */
    min-width: 60px; /* Define uma largura mínima para evitar que fiquem muito finas */
}

.bar-background {
    width: 100%; /* Agora a largura é baseada no tamanho do contêiner do wrapper */
    height: 100%; /* Representa 100% da altura */
    background-color: #E2E2E2;
    border-radius: 10px 10px 0 0;
    z-index: 1;
    position: relative;
    bottom: 0; /* Para alinhar a parte inferior com a base */
}

.bar {
    width: 100%; /* Ajusta a largura para ser responsiva */
    border-radius: 10px 10px 0 0;
    background-color: #d3d3d3;
    transition: height 1s ease-in-out, background-color 0.3s ease;
    background: linear-gradient(to top, rgba(0, 123, 255, 0.5), rgba(0, 123, 255, 1));
    height: 0; /* Começa com altura 0 para a animação */
    opacity: 0; /* Começa invisível para animar também */
    position: absolute;
    bottom: 0; /* Cresce a partir da base */
    z-index: 2; /* Fica na frente da barra de fundo */
}

#bar1 { background: linear-gradient(to top, rgba(233, 95, 122, 0.1), rgba(233, 95, 122, 1)); }
#bar2 { background: linear-gradient(to top, rgba(233, 95, 122, 0.1), rgba(233, 95, 122, 1)); }
#bar3 { background: linear-gradient(to top, rgba(233, 95, 122, 0.1), rgba(233, 95, 122, 1)); }
#bar4 { background: linear-gradient(to top, rgba(233, 95, 122, 0.1), rgba(233, 95, 122, 1)); position: absolute; bottom: 0; } /* Garante que a barra verde cresça a partir da base */
#bar5 { background: linear-gradient(to top, rgba(233, 95, 122, 0.1), rgba(233, 95, 122, 1)); }

.progress-fill {
    height: 24px;
    width: 24px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #ccc;
    z-index: 4; /* Certifique-se de que a bolinha e o tooltip fiquem acima de tudo */
    opacity: 0; /* Inicialmente invisível */
    transition: opacity 0.3s ease;
}

.progress-label {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0; /* Inicialmente invisível */
    z-index: 5; /* Garante que o texto do tooltip também fique na frente */
    transition: opacity 0.3s ease;
}

.progress-label::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    z-index: 4;
}

.progress-fill.show-label .progress-label {
    opacity: 1; /* Exibe o tooltip */
    animation: showLabel 1s forwards;
}

.progress-fill.show-label {
    opacity: 1; /* Exibe a bolinha */
}

.labels-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px; /* Espaçamento entre as barras e os textos */
}

.month-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    width: 80px;
    position: relative;
    top: 0px;
}

@media (max-width: 600px) {
    .bar-wrapper {
        min-width: 40px; /* Diminui a largura mínima no mobile */
    }

    .bar {
        width: 100%; /* Mantém a barra responsiva */
    }

    .progress-label {
        font-size: 10px; /* Diminui o tamanho da fonte do tooltip no mobile */
        top: -35px; /* Ajusta a posição do tooltip no mobile */
    }

    .month-label {
        font-size: 9px; /* Reduz a fonte das labels no mobile */
    }
}
