/* Estilos Gerais */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #48cae4;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --lucro-real-title-color: #c7344A; /* Cor para o título do box Lucro Real, similar ao da imagem */
    --lucro-real-box-bg: #f9f9f9; /* Fundo claro para o box */
    --lucro-real-border-color: #e0e0e0; /* Cor da borda para a tabela e o box */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Barra de Progresso */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: var(--gray-light);
    z-index: 0;
}

.progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: var(--primary-color);
    z-index: 1;
    transition: width 0.3s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
}

/* Card e Formulários */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    animation: slideUp 0.5s ease;
}

.form-container {
    padding: 30px;
}

.form-step {
    animation: fadeIn 0.5s ease;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.form-intro {
    margin-bottom: 25px;
    color: var(--gray-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Botões */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--gray-color);
    border: 1px solid var(--gray-light);
}

.btn-outline:hover {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #05b889;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 214, 160, 0.3);
}

/* Modal de Resultados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.modal-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-header h2::after {
    display: none;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.email-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-option input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Resultados */
.resumo-executivo {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.regimes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.regime-card {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.regime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.simples-nacional {
    background-color: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.lucro-presumido {
    background-color: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.3);
}

.irpf {
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
}

.regime-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.valor-imposto {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.aliquota {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.regime-descricao {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.recomendado {
    position: relative;
}

.recomendado::after {
    content: 'Recomendado';
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.economia {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(6, 214, 160, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.economia i {
    color: var(--success-color);
    margin-right: 8px;
}

.analise-comparativa {
    margin-top: 30px;
}

.disclaimer {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 209, 102, 0.1);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Estilos para o Box de Lucro Real */
.lucro-real-info-box {
    background-color: var(--lucro-real-box-bg);
    border: 1px solid var(--lucro-real-border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.lucro-real-info-box h3 {
    color: var(--lucro-real-title-color);
    font-size: 1.5rem; /* Ajustado para ser um pouco menor que h2 */
    margin-bottom: 15px;
    font-weight: 600;
}

.lucro-real-info-box h3 i {
    margin-right: 10px;
}

.lucro-real-resumo {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-style: italic;
}

.lucro-real-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.lucro-real-table th, .lucro-real-table td {
    border: 1px solid var(--lucro-real-border-color);
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
}

.lucro-real-table th {
    background-color: var(--gray-light);
    font-weight: 600;
    color: var(--dark-color);
}

.lucro-real-table td ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.lucro-real-info-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.lucro-real-info-box ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 5px;
}

.lucro-real-info-box ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.lucro-real-considerar-lista li {
    list-style-type: none; /* Remover marcador padrão */
    padding-left: 0;
}

.lucro-real-considerar-lista i {
    color: var(--success-color);
    margin-right: 10px;
}

.lucro-real-analise {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.lucro-real-info-box > p:not(.lucro-real-resumo):not(.lucro-real-analise) {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.lucro-real-contato {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    text-align: center;
}

.lucro-real-contato p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.lucro-real-contato i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .step-text {
        display: none;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .regimes-container {
        grid-template-columns: 1fr;
    }

    .lucro-real-info-box h3 {
        font-size: 1.3rem;
    }

    .lucro-real-table th, .lucro-real-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .lucro-real-info-box {
        padding: 15px;
    }

    .lucro-real-info-box h3 {
        font-size: 1.2rem;
    }

    .lucro-real-table th, .lucro-real-table td {
        font-size: 0.85rem;
    }

    .lucro-real-contato p {
        font-size: 0.85rem;
    }
}

