/* Estilização do Simulador */
.simulador {
    width: 100%;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(to bottom, #f9fcff, #e3f2fd);
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Container do simulador */
.simulador-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* Imagem do simulador */
.simulador-imagem {
    flex: 1;
    display: flex;
}

.simulador-imagem img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Card do simulador */
.simulador-card {
    flex: 1;
    background: linear-gradient(to bottom, #f9fcff, #e3f2fd);
    padding: 30px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Responsividade */
@media (max-width: 1024px) {
    .simulador-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .simulador-imagem {
        justify-content: center;
        width: 100%;
    }

    .simulador-imagem img {
        max-width: 80%;
        border-radius: 10px 10px 0 0;
    }

    .simulador-card {
        width: 100%;
        border-radius: 0 0 10px 10px;
        padding: 20px;
    }
}

.economia-valor {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adiciona espaçamento entre os blocos */
    flex-wrap: wrap; /* Permite que os elementos quebrem linha em telas menores */
}

.fatura-container {
    flex: 1; /* Faz com que cada bloco ocupe o espaço disponível */
    min-width: 150px; /* Evita que fiquem muito pequenos */
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Texto dentro dos cards */
.fatura-container p {
    font-size: 14px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Valor dentro dos cards */
.fatura-container strong {
    font-size: 20px;
    color: #333;
    display: block;
}

/* Ajustando a largura do bloco do slider */
.economia-valor-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Estilização do slider */
.slider-container {
    width: 100%;
    padding: 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #049bdc; /* cor do Economiluz */
    cursor: pointer;
}

/* Destaque no hover do thumb */
.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(4, 155, 220, 0.2);
    transition: box-shadow 0.2s ease;
}

/* Rótulos do slider */
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
}

/* Legenda acima do slider */
.slider-label-legend {
    display: block;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.destaque-slider {
  border: 3px solid #049bdc;
  border-radius: 8px;
  animation: piscarBorda 0.5s ease-in-out 2;
}

@keyframes piscarBorda {
  0%   { box-shadow: 0 0 0px rgba(4, 155, 220, 0); }
  50%  { box-shadow: 0 0 10px 4px rgba(4, 155, 220, 0.6); }
  100% { box-shadow: 0 0 0px rgba(4, 155, 220, 0); }
}

/* Botão */
.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f9ae27, #ff7c00);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7c00, #d16500);
}

.mes {
    font-size: 12px;
    color: #666;
}

/* Responsividade geral */
@media (max-width: 768px) {
    .simulador-container {
        padding: 20px;
    }

    .simulador-imagem img {
        max-width: 100%;
    }

    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* Responsividade para telas pequenas */
@media (max-width: 400px) {
    .economia-valor {
        flex-direction: column;
        align-items: center;
    }

    .fatura-container {
        width: 100%;
    }
}
