/* Estilos para o Quiz de Maturidade Financeira */
:root {
    --primary-color: #00a88f;
    --secondary-color: #0a5d7d;
    --accent-color: #4db6ac;
    --light-color: #f5f8fa;
    --dark-color: #333;
    --border-color: #e0e6ed;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --card-blue: #e9f0f7;
    --card-active: #ffffff;
    --card-disabled: rgba(108, 117, 125, 0.2);
    --green-border: #00a88f;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 0px;
    padding: 10px;
    background-color: transparent;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

header h1::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background-image: url('https://storage.googleapis.com/cdn-treasy-application-asset-bucket/marketing/mautic/landing-page/imagem/Icone-Treasy-RGB-300x300.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 5px;
}

header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
}

/* Estágios de maturidade - ícones */
.stages-icons {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.stage-icon {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.stage-icon i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 18px;
}

/* Seções */
section {
    margin-bottom: 30px;
    opacity: 0;
    display: none;
    transition: opacity var(--transition-speed);
}

section.active {
    opacity: 1;
    display: block;
}

/* Introdução */
.intro {
    background-color: var(--card-active);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--green-border);
}

.intro h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.intro ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.intro li {
    margin-bottom: 10px;
}

/* Instruções */
.instructions {
    background-color: var(--card-active);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    position: relative;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--green-border);
}

.instructions h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.instructions p {
    margin-bottom: 10px;
    color: #555;
}

/* Botões */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed);
    font-weight: 500;
}

button:hover {
    background-color: #008e79;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Container do Quiz */
.quiz-container {
    background-color: var(--card-active);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.progress-container {
    height: 8px;
    background-color: #e0e6ed;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width var(--transition-speed);
}

/* Perguntas */
.question {
    display: none;
    background-color: var(--card-active);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.question.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

.question-number {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Opções */
.options {
    list-style-type: none;
}

.option {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #f5f8fa;
    border-color: #ccd6e0;
}

.option.selected {
    background-color: #e9f7f5;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

/* Estrelas de avaliação */
.rating {
    display: flex;
    margin-left: auto;
}

.star {
    color: #ddd;
    font-size: 20px;
    margin-left: 2px;
}

.star.filled {
    color: #ffc107;
}

/* Navegação */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Cards de estágios */
.stage-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stage-card {
    flex: 1 1 300px;
    background-color: var(--card-blue);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.stage-card.active {
    background-color: var(--card-active);
}

.stage-card.disabled {
    background-color: var(--card-disabled);
}

.stage-card-header {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.stage-card-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.stage-card-item-title {
    flex: 1;
    font-size: 14px;
}

.stage-card-item-info {
    color: #777;
    font-size: 16px;
    margin-right: 10px;
    cursor: help;
}

/* Resultados */
.results {
    background-color: var(--card-active);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.results h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.stage-result {
    margin-bottom: 30px;
    text-align: left;
    background-color: #f5f8fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.stage-title {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 22px;
}

.stage-description {
    text-align: left;
    color: #555;
}

.charts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.chart {
    flex: 1 1 45%;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.chart h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
    text-align: left;
}

.recommendations {
    margin-top: 30px;
}

.recommendations h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: left;
}

.recommendation-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.recommendation-content {
    flex: 1;
}

.recommendation-image {
    width: 120px;
    height: 120px;
    margin-left: 20px;
    background-color: #f5f8fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.recommendation-title {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 18px;
}

.recommendation-description {
    margin: 10px 0;
    color: #555;
}

.recommendation-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
    font-size: 14px;
    font-weight: 500;
}

.recommendation-link:hover {
    background-color: #008e79;
}

.restart-btn {
    margin-top: 30px;
}

/* Estilos para campos de formulário */
.form-field {
    margin-bottom: 20px;
    text-align: left;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background-color: white;
}

.form-field select {
    background-color: white;
    cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 143, 0.2);
}

/* Animação de fade */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn var(--transition-speed) forwards;
}

.fade-out {
    animation: fadeOut var(--transition-speed) forwards;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #777;
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .chart {
        width: 100%;
    }
    
    .recommendation-item {
        flex-direction: column;
    }
    
    .recommendation-image {
        width: 100%;
        height: 150px;
        margin-left: 0;
        margin-top: 15px;
    }
    
    .stages-icons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Adicionar ícones para os estágios */
.stage-icon-control::before {
    content: "📄";
    margin-right: 8px;
    color: var(--primary-color);
}

.stage-icon-model::before {
    content: "📊";
    margin-right: 8px;
    color: var(--primary-color);
}

.stage-icon-intelligence::before {
    content: "🔍";
    margin-right: 8px;
    color: var(--primary-color);
}

.stage-icon-planning::before {
    content: "📝";
    margin-right: 8px;
    color: var(--primary-color);
}

.stage-icon-collaboration::before {
    content: "👥";
    margin-right: 8px;
    color: var(--primary-color);
}
