/* Variáveis de cores */
:root {
    --primary-color: #e95c31;
    --secondary-color: #136ea7;
    --primary-light: #ff7d52;
    --secondary-light: #3a8fc9;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #f4f4f4;
    --border-color: #ddd;
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

section {
    padding: 3rem 0;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    margin-right: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.hero h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Simulador */
.simulator-container {
    max-width: 600px;
    margin: 0 auto;
}

.simulator {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.simulator h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.connection-type {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
}

.radio-label:hover {
    background-color: var(--gray-color);
}

.radio-label input {
    margin-right: 0.8rem;
    transform: scale(1.2);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.currency, .unit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-color);
}

.currency {
    left: 10px;
}

.unit {
    right: 10px;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

input[type="text"]#consumption-value {
    padding-right: 45px;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d04a22;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--gray-color);
    border-radius: 5px;
    text-align: center;
	color: var(--primary-color);
    display: none;
}

.result p {
    margin-bottom: 1rem;
	color: var(--primary-color);
    font-size: 1.1rem;
}

#savings-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0e5a8a;
}

/* Como funciona */
.how-it-works {
    background-color: var(--gray-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    margin: 0.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step h3 {
    color: var(--secondary-color);
}

/* Tabela de planos */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--gray-color);
}

tr:hover {
    background-color: rgba(19, 110, 167, 0.05);
}

td:last-child {
    font-weight: bold;
    color: var(--primary-color);
}

.calculation-info {
    margin-top: 2rem;
    background-color: var(--gray-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calculation-info p {
    margin-bottom: 0.5rem;
}

.calculation-info ul {
    list-style-type: none;
    padding-left: 0;
}

.calculation-info li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.calculation-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin: 0.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    th, td {
        padding: 0.75rem;
    }
    
    .hero-logo {
        max-width: 150px;
    }
    
    .simulator-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .simulator {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-logo {
        max-width: 120px;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .input-wrapper {
        display: flex;
    }
    
    input[type="number"] {
        flex: 1;
    }
    
    .table-container {
        margin: 1rem -15px;
        border-radius: 0;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .cta-button {
        display: block;
        margin-top: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result.animate {
    animation: fadeIn 0.5s ease-out;
}
