/* Calculadora de Energia Solar - Estilos */

.ces-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ces-header {
    text-align: center;
    margin-bottom: 40px;
}

.ces-title {
    color: #2c3e67;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ces-subtitle {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Formulário */
.ces-form-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ces-form {
    width: 100%;
}

.ces-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.ces-col-2 {
    flex: 0 0 calc(16.66% - 17px);
}

.ces-col-4 {
    flex: 0 0 calc(33.33% - 14px);
}

.ces-col-6 {
    flex: 0 0 calc(50% - 10px);
}

.ces-col-10 {
    flex: 0 0 calc(83.33% - 3px);
}

.ces-col-12 {
    flex: 0 0 100%;
}

.ces-form label {
    display: block;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 500;
}

.ces-form input[type="text"],
.ces-form input[type="tel"],
.ces-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ces-form input[type="text"]:focus,
.ces-form input[type="tel"]:focus,
.ces-form select:focus {
    outline: none;
    border-color: #3b82f6;
}

.ces-form select {
    background: #fff;
    cursor: pointer;
}

.ces-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ces-input-prefix {
    position: absolute;
    left: 15px;
    color: #666;
    font-weight: 500;
}

.ces-input-group input {
    padding-left: 45px;
}

/* Botão Submit */
.ces-btn-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #2c3e67 0%, #3d5a9e 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ces-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 62, 103, 0.4);
}

.ces-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resultados */
.ces-results-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ces-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.ces-results-header h3 {
    color: #2c3e67;
    font-size: 2em;
    font-weight: 700;
}

.ces-results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.ces-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ces-result-item-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #3b82f6;
}

.ces-result-label {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.ces-result-value {
    font-weight: 700;
    color: #2c3e67;
    font-size: 1.15em;
}

.ces-result-value-highlight {
    color: #3b82f6;
    font-size: 1.4em;
}

/* Gráfico */
.ces-chart-container {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ces-chart-container h4 {
    text-align: center;
    color: #2c3e67;
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 700;
}

#ces-chart {
    max-height: 400px;
}

/* Botões de ação */
.ces-whatsapp-container {
    text-align: center;
    margin: 30px 0;
}

.ces-btn-whatsapp {
    display: inline-block;
    padding: 18px 60px;
    background: linear-gradient(135deg, #2c3e67 0%, #3d5a9e 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ces-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 62, 103, 0.4);
    color: #fff;
    text-decoration: none;
}

.ces-back-container {
    text-align: center;
    margin-top: 20px;
}

.ces-btn-back {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1em;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s;
}

.ces-btn-back:hover {
    color: #2c3e67;
}

/* Loading */
.ces-loading {
    text-align: center;
    padding: 40px;
}

.ces-loading::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c3e67;
    border-radius: 50%;
    animation: ces-spin 1s linear infinite;
}

@keyframes ces-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .ces-title {
        font-size: 1.8em;
    }
    
    .ces-subtitle {
        font-size: 1em;
    }
    
    .ces-form-wrapper,
    .ces-results-wrapper {
        padding: 20px;
    }
    
    .ces-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .ces-col-2,
    .ces-col-4,
    .ces-col-6,
    .ces-col-10,
    .ces-col-12 {
        flex: 0 0 100%;
    }
    
    .ces-result-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .ces-btn-submit,
    .ces-btn-whatsapp {
        font-size: 1em;
        padding: 15px 30px;
    }
}
