/* Estilos para a Calculadora GDash */
body {
    font-family: 'Roboto', 'Arial', sans-serif; /* Fonte moderna */
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinhar ao topo para melhor visualização em telas menores */
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.calculator-wrapper {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 16px; /* Bordas mais arredondadas */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Sombra mais pronunciada */
    width: 100%;
    max-width: 500px; /* Ajuste para um visual mais compacto como nas refs */
    text-align: center;
}

#logo-co2 {
    max-width: 150px; /* Ajuste de tamanho */
    margin-bottom: 20px;
}

.main-title {
    font-size: 1.4em; /* Ajuste de tamanho */
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.sub-title {
    font-size: 1em;
    color: #003399; /* Azul CO2 */
    margin-bottom: 8px;
    font-weight: bold;
}

.description-text {
    font-size: 0.9em;
    color: #555; /* Tom mais escuro para melhor leitura */
    margin-bottom: 25px;
}

.tabs {
    display: flex;
    justify-content: space-around; /* Distribuição mais uniforme */
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 12px 15px; /* Ajuste de padding */
    cursor: pointer;
    font-size: 0.95em; /* Ajuste de tamanho */
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; 
    font-weight: 500;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-button.active {
    color: #F36A10; /* Laranja CO2 */
    border-bottom: 3px solid #F36A10; /* Laranja CO2 */
    font-weight: bold;
}

.step-content {
    display: none;
    text-align: left;
    animation: fadeIn 0.5s;
    padding: 15px;
    border-radius: 12px; /* Bordas arredondadas para os cards internos */
    background-color: #fff; /* Fundo branco para os cards */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Sombra suave para os cards */
    margin-top: 10px;
}

.step-content.card {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Sombra para destacar o card */
    border: 1px solid #eee;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    font-size: 1.15em; /* Ajuste de tamanho */
    color: #003399; /* Azul CO2 */
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    font-size: 0.9em;
    color: #333; /* Cor mais escura para labels */
    margin-bottom: 8px;
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.slider-container input[type="range"] {
    flex-grow: 1;
    margin: 0 10px;
    cursor: pointer;
    background: #FFC300; /* Amarelo CO2 para a barra */
    border-radius: 8px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #F36A10; /* Laranja CO2 para o thumb */
    border-radius: 50%;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #F36A10; /* Laranja CO2 para o thumb */
    border-radius: 50%;
    cursor: pointer;
    border: none;
}


.slider-min-value, .slider-max-value {
    font-size: 0.85em;
    color: #555;
}

#num-plans-output {
    display: block;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #F36A10; /* Laranja CO2 */
    margin-top: 5px;
    margin-bottom: 15px;
}

.output-value {
    font-size: 1.1em;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    background-color: #e9ecef;
}

.highlight-result {
    color: #003399; /* Azul CO2 */
    background-color: #e6f0ff; /* Fundo azul claro */
}

#annual-gain-output.highlight-result {
    color: #1a7f37; /* Verde para ganhos */
    background-color: #e8f5e9; /* Fundo verde claro */
    font-size: 1.3em;
}

.result-group {
    background-color: #f8f9fa; 
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.result-group label {
    font-weight: bold;
    color: #003399; /* Azul CO2 */
}

.result-group .output-value {
    font-size: 1em;
    color: #333;
    background-color: transparent;
    padding: 0;
}

.result-group .highlight-result {
    font-size: 1.1em;
    font-weight: bold;
    color: #F36A10; /* Laranja CO2 para resultados de mercado */
    background-color: transparent;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px; /* Maior padding */
    border: 1px solid #ced4da;
    border-radius: 8px; /* Bordas arredondadas */
    box-sizing: border-box;
    font-size: 0.95em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #F36A10; /* Laranja CO2 */
    box-shadow: 0 0 0 0.2rem rgba(243, 106, 16, 0.25); /* Sombra laranja */
    outline: none;
}

.terms-text {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 20px;
    text-align: center;
}

.button-primary {
    background-color: #F36A10; /* Laranja CO2 */
    color: white;
    padding: 14px 20px; /* Padding ajustado */
    border: none;
    border-radius: 8px; /* Bordas arredondadas */
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-primary:hover {
    background-color: #d85b0c; /* Laranja mais escuro */
}

.button-primary:active {
    transform: translateY(1px);
}

#calculate-market-size-button {
    background-color: #003399; /* Azul CO2 */
}

#calculate-market-size-button:hover {
    background-color: #002266; /* Azul mais escuro */
}

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

/* Responsividade */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .calculator-wrapper {
        margin: 10px;
        padding: 20px;
    }

    .main-title {
        font-size: 1.2em;
    }

    .sub-title {
        font-size: 0.9em;
    }

    .tab-button {
        padding: 10px;
        font-size: 0.85em;
    }
    .step-content h2 {
        font-size: 1.1em;
    }
    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    .button-primary {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

