/* Estilos Gerais e Corpo da Página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f9;
    /* Fundo Cinza-Claro Suave */
    color: #333;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    /* Fundo Branco Principal */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a73e8;
    /* Azul da Marca */
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

h4 {
    color: #5a6268;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Tabela de Índice de Serviços */
.service-index table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Espaço entre as linhas */
    margin-bottom: 30px;
}

.service-index tr {
    background-color: #f0f8ff;
    /* Fundo Azul Claro */
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-index tr:hover {
    background-color: #e6f0ff;
    /* Cor mais escura no hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-index td {
    padding: 15px 20px;
    vertical-align: top;
    border: none;
}

.service-index td:first-child {
    font-weight: 600;
    color: #1a73e8;
    width: 30%;
}

.service-index td:last-child {
    color: #5a6268;
    font-size: 0.9em;
}

/* Seção de Detalhe do Serviço */
.service-detail {
    border: 1px solid #1a73e8;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    background-color: #ffffff;
    display: none;
    /* Escondido por padrão, controlado pelo JS */
    animation: fadeIn 0.5s;
}

.service-detail h3 {
    color: #0d47a1;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
    font-weight: 600;
}

.service-detail p {
    line-height: 1.6;
}

.service-detail .nota {
    margin-top: 20px;
    font-size: 0.9em;
    color: #5a6268;
    font-style: italic;
}

/* Tabela dentro do Detalhe (Fluxo) */
.detail-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th,
.detail-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
}

.detail-table th {
    background-color: #f0f8ff;
    color: #1a73e8;
    font-size: 0.85em;
}

/* Animação simples de fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade (Para dispositivos móveis) */
@media screen and (max-width: 600px) {
    .guide-container {
        padding: 15px;
    }

    /* Na tabela de índice, empilha as células */
    .service-index td:first-child {
        display: block;
        width: 100%;
        font-size: 1.1em;
        margin-bottom: 5px;
        padding-bottom: 0;
    }

    .service-index td:last-child {
        display: block;
        width: 100%;
        font-size: 0.85em;
        padding-top: 0;
    }

    /* Na tabela de detalhes, permite rolagem horizontal para evitar quebra */
    .detail-table {
        overflow-x: auto;
    }

    .detail-table table {
        min-width: 500px;
        /* Garante que a tabela tenha uma largura mínima para rolagem */
    }
}