/* 1. Importa todos os estilos da versão 1 */
/* @import url('style.css'); */

.containerCabecalho img {
    max-width: 12rem;
}

/* ============================================= */
/* ESTILOS PARA A NOVA TELA DE RESULTADOS (V2)   */
/* ============================================= */
.results-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.result-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card-header {
    background-color: var(--accent);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    align-self: center;
    text-transform: uppercase;
}
.card-title {
    color: var(--main-bg);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}
.card-title span {
    font-size: 1em;
    font-weight: 600;
    opacity: 0.8;
}
.card-risk-level {
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    margin: 10px 0 20px 0;
    color: var(--main-bg);
}

.card-progress-track {
    width: 100%;
    height: 10px;
    background-color: var(--main-bg);
    border-radius: 5px;
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
    overflow: hidden;
}
.card-progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.result-card.total {
    grid-column: 1 / -1;
    border-color: var(--accent);

    background-color: #1a2a4fe3;
    max-width: 100%;
    margin: 0 auto;
}
.totalPercentage {
    color: #fff;
    opacity: 1 !important;
    font-size: 1.1em !important;
}
.result-card:not(.total):nth-last-child(2):nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
}
@media (max-width: 768px) {
    .results-grid-v2 { grid-template-columns: 1fr; }
    .result-card:not(.total):nth-last-child(2):nth-child(odd) { width: 100%; }

    .containerCabecalho img {
        max-width: 9rem;
    }
    
    h1, .h1 {
     font-size: 1.6em;
    }
}

/* TOOLTIP CUSTOMIZADO */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: #2c3e50;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(18, 31, 61, 0.85);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Media Query para telas pequenas (como celulares) */
@media (max-width: 480px) {
       .containerCabecalho img {
        max-width: 7rem;
    }
    
    h1, .h1, h2, .h2 {
    font-size: 1.2em !important;
    }

    .logo {
        font-size: 1rem;
    }

    .step h2 {
        font-size: 1.4em;
        line-height: 1.2;
    }

    .container {
        padding: 0 10px;
    }

    .neo-container {
        padding: 10px;
        margin-top: 110px;
        box-shadow: none;
    }

    /* .btn-primary {
        margin-bottom: 20px;
    } */

    .back-to-top {
        display: none;
    }
}