* {
    box-sizing: border-box;
    max-width: 100%;
}




body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content:space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8); /* Fundo translúcido */
    backdrop-filter: blur(10px); /* Efeito Glassmorphism */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
    box-sizing:border-box;
}


header img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-size: 16px;
    font-weight: bold;
    margin-right:30px;
}

#faturaContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    max-width: 300px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 18px;
    color: #005a1f;
}

#mensagem-fatura {
    color: #005a1f;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.remove-btn {
    background: none;  /* Remove qualquer fundo */
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #d9534f;
    transition: color 0.3s ease, transform 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: #c9302c; /* Apenas muda a cor no hover */
    transform: scale(1.2); /* Dá um leve efeito ao passar o mouse */
    background: none; /* Garante que nenhum fundo será aplicado */
}




/* Adicionando efeito de linha ao passar o mouse no menu */
.nav-links a {
    text-decoration: none;
    color: #333;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover{
    color:#004f18;
}

/* Criando a linha */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; /* Distância da linha para o texto */
    width: 0;
    height: 2px;
    background-color: #004f18; /* Cor da linha */
    transition: width 0.3s ease-in-out;
}

/* Ao passar o mouse, a linha cresce */
.nav-links a:hover::after {
    width: 100%;
}


.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    background: url('/Imagens/2024\ -\ FOTO\ AEREA\ USINAS\ 01.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    box-sizing: border-box;
    margin-top:70px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.hero-text {
    color: white;
    max-width: 45%;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.hero-text p{
    font-size:18px;
}

.form-section {
    background: white;
    padding: 25px;
    width: 30%;
    border-radius: 12px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 2;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-section h2{
    color:#004f18;
    margin:10px;
}

.form-section p{
    font-size:12px;
    color:#000;
}

.phone-input,
.nome-input{
    display: flex;
    gap: 10px;


}.phone-input .tel{
    width: 80%;
}

.phone-input .ddd{
    width: 20%;
}

input, button {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
}

input[type="file"] {
    display: none;
}

input:focus {
    border-color: #008837;
    outline:none;
}

/* Melhorar os placeholders */
input::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

/* Botão "Anexar Fatura" */
.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #A8E6A2; /* Verde suave */
    color: #000;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.file-upload:hover {
    background-color: #94D48D; /* Mudança sutil para um tom mais escuro */
}

/* Botão "Quero Economizar" */
button {
    background-color: #62C66A; /* Verde principal */
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 14px;
    border-radius: 8px;
}

button:hover {
    background-color: #52B85A; /* Mudança de tom mais sutil */
}


footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
    font-size: 14px;
    margin-top: 40px;
}


.como-funciona {
    text-align: center;
    padding: 80px 10%;
    background: #fff;
}

.como-funciona h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.processo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.etapas {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
}


/* Melhorando os cartões */
.etapa {
    width: 22%;
    max-height:260px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ícones dentro dos cartões */
.etapa img {
    width: 60px;
    margin-bottom: 8px;
}

/* Títulos dentro dos cartões */
.etapa h3 {
    font-size: 20px;
    color: #004f18;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Texto explicativo */
.etapa p {
    font-size: 16px;
    color: #555;
    max-width: 90%;
    text-align: center;
}


.etapa:hover {
    transform: scale(1.05);
}

.vantagens {
    text-align: center;
    padding: 80px 10%;
    background: #e8f5e9;
}

.vantagens h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.beneficios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.beneficio {
    width: 250px; /* Divide em 3 colunas */
    min-width: 150px;
    max-height:280px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.beneficio:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}


.beneficio img {
    width: 60px;
    margin-bottom: 8px;
}

.beneficio h3 {
    font-size: 20px;
    color: #004f18;
    margin-bottom: 10px;
}

.beneficio p {
    font-size: 16px;
    color: #555;
}

.como-aderir {
    text-align: center;
    padding: 80px 10%;
    background: #fff;
}

.como-aderir h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.simulacao {
    text-align: center;
    padding: 40px 10%;
    background: #f8f8f8;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.input-container span {
    font-size: 18px;
    font-weight: bold;
    color: #008837;
    margin-right: 8px;
}

.simulacao {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
}

.simulação input:focus {
    border-color: #008837;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    transition: border-color 0.3s ease-in-out;
    width:80%;
    margin: 15px auto;
}

.input-container span {
    font-size: 18px;
    font-weight: bold;
    color: #008837;
    margin-right: 8px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-top: 15px;
    position: relative;
}

.progress-bar {
    height: 10px;
    width: 0%;
    background: linear-gradient(to right, #008837, #62c66a);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.economia-text {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
}

.resultado {
    font-size: 24px;
    font-weight: bold;
    color: #008837;
}




.faq-container {
    width: 90%;
    margin-left:5%;
    margin-top:70px;;
}

.faq-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-item.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    color: #004f18;
    padding: 15px;
    border-bottom: 2px solid #eee;
    transition: background 0.3s ease-in-out;
}

.faq-question:hover {
    background: #e8f5e9;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    transition: max-height 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    display: block;
}





@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 40px 5%;
    }
    .hero-text {
        max-width: 100%;
        font-size: 20px;
    }
    .form-section {
        width: 90%;
        max-width: 100%;
        position: relative;
        top: unset;
        right: unset;
        transform: none;
        margin-top: 20px;
    }
    .processo {
        flex-direction: column;
    }
    .etapa {
        width: 90%;
    }

    .beneficios {
        flex-direction: column;
        align-items: center;
    }
    .beneficio {
        width: 80%;
    }
}

@media (max-width: 1024px) {
    .beneficio {
        width: calc(50% - 30px); /* Duas colunas */
    }
}

@media (max-width: 768px) {
    .beneficio {
        width: 100%; /* Uma coluna */
    }
}

/* Responsividade do Header */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Esconde o menu inicialmente */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex; /* Exibe o menu quando o ícone é clicado */
    }

    .nav-links a {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: #004f18;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Oculta o botão do menu em telas grandes */
    }
}

/* Melhorando a Responsividade da Seção de Vantagens */
@media (max-width: 1024px) {
    .beneficios {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .beneficio {
        width: calc(50% - 20px); /* Mantém duas colunas em telas médias */
    }
}

@media (max-width: 768px) {
    .beneficios {
        flex-direction: column;
        align-items: center;
    }

    .beneficio {
        width: 90%; /* Mantém os cards mais centralizados e menores */
        max-width: 400px; /* Evita que fiquem muito largos */
        margin: 0 auto; /* Centraliza os cards */
    }
}

/* Ajuste na Responsividade da Seção "Como Aderir" */
@media (max-width: 1024px) {
    .etapas {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .etapa {
        width: calc(50% - 20px); /* Mantém duas colunas em telas médias */
        max-width: 300px; /* Limita o tamanho máximo */
        margin: 0 auto; /* Centraliza os elementos */
    }
}

@media (max-width: 768px) {
    .etapas {
        flex-direction: column;
        align-items: center;
    }

    .etapa {
        width: 90%; /* Mantém os cards menores e bem organizados */
        max-width: 400px; /* Evita que fiquem muito largos */
        margin: 0 auto; /* Centraliza os cards */
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px; /* Expande para telas ultrawide */
    }
}

/* Em telas grandes, aumentar um pouco a fonte */
@media (min-width: 1600px) {
    body {
        font-size: 18px;
    }
    h1 {
        font-size: 42px;
    }
    h2 {
        font-size: 34px;
    }
}

/* Em telas menores, reduzir um pouco */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}



/* Estiliza a barra de rolagem */
::-webkit-scrollbar {
    width: 10px; /* Largura da barra */
}

/* Estiliza a trilha (fundo da barra de rolagem) */
::-webkit-scrollbar-track {
    background: #e8f5e9; /* Cor suave combinando com o site */
    border-radius: 10px;
}

/* Estiliza o "thumb" (a parte que se move na rolagem) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #004f18, #008837);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

/* Efeito ao passar o mouse na barra de rolagem */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #008837, #00a04a);
}

/* Ajusta os campos de input e textarea para manter um alinhamento uniforme */
input, textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border 0.3s ease-in-out;
}

/* Ajusta a altura do campo de mensagem para manter consistência */
textarea {
    height: 70px; /* Ajuste conforme necessário */
    resize: none;
}

/* Para garantir que o padding interno fique uniforme */
.formulario-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre os campos */
}

/* Melhorando o botão de anexar fatura */
.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c3f0c6;
    color: #000;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background-color: #008837;
    color: white;
}

/* Ajustando os botões para ficarem bem alinhados */
button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .formulario-container {
        width: 90%;
    }
}

