/* Corpo (body) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
}

/* Cabeçalho (header) */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffffff;
    padding: 5px 20px;
    width: 100%;
    top: 0;
}

.logo {
    margin-right: 20px;
}

/* Estilos para o título no topo */
.titulo {
    text-align: center; 
    color: #339de3;
    font-size: x-large;
    margin-top: 5px;
    
}

/* Estilos para o menu (nav) */
nav.menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    background-color: #333;
    color: #fff;
    width: 200px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
}

nav.menu h1 {
    margin: 0;
    padding: 10px;
}

nav.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.menu li {
    margin: 10px 0;
}

nav.menu a {
    text-decoration: none;
    color: #fff;
}

/* Estilos para a seção principal */
.emprestimo-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin: 15px;
}

/* Estilos para as informações de empréstimo (pessoal e consignado) */
.emprestimo-info {
    display: flex;
    flex-direction: column;
    width: 50%; 
    margin-right: 15px;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px; 
}

/* Estilos para as caixas de Empréstimo Pessoal e Empréstimo Consignado */
.emprestimo-info .emprestimo {
    margin-bottom: 15px; /* Espaço entre as caixas */
}

/* Estilos para as caixas de Empréstimo Pessoal e Empréstimo Consignado */
.emprestimo.pessoal,
.emprestimo.consignado {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 50px; 
    margin-left: 200px;
    margin-right: 150px;
    padding: 20px;
}

/* Estilos para o simulador de empréstimo */
.emprestimo.simulador {
    width: 120%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 10px; 
    padding: 10px;
    position: relative;
    float: left; 
}
.emprestimo.simulador a {
    text-decoration: none;
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #d97911;
    padding-inline-start: 70px;
}

.emprestimo.simulador form {
    display: flex;
    flex-direction: column; /* Alterado para empilhar os elementos verticalmente */
    align-items: flex-start; /* Alterado para alinhar à esquerda */
    margin-top: 10px; /* Espaço entre o título e o formulário */
}

.simulador-esquerda label,
.simulador-esquerda input,
.simulador-esquerda select {
    margin-bottom: 30px;
}

.emprestimo.simulador input[type="number"] {
    width: 60%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 145px;
   
}

.simulador-direita button {
    margin-bottom: 10px;
}
 
/* Botão Simular*/
.emprestimo.simulador button[type="submit"] {
    background-color: #339de3;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    float: right ;/*não funciona. Botãonão vai para a dfireita*/

}

.simulador-direita {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Estilos para as perguntas frequentes */
.emprestimo.perguntas {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 300px; 
    padding: 100px;
    display: flex;
    flex-direction: column; 
    
}

/* Estilos para ocultar as respostas das perguntas frequentes */
.emprestimo.perguntas input {
    display: none;
}

/* Estilos para mostrar as respostas quando a pergunta é clicada */
.emprestimo.perguntas input:checked ~ p,
.emprestimo.perguntas input:checked ~ ul.respostas {
    display: block;
}

/* Ocultar a lista de respostas por padrão */
.emprestimo.perguntas ul.respostas {
    display: none;
} 

/* Estilos para mostrar as respostas quando o título da pergunta é clicado */
.emprestimo.perguntas h3 {
    cursor: pointer;
    color: #2683d5;
}

.emprestimo.perguntas h3::after {
    content: " ➜"; /* Adicione uma seta ao título */
}

/* Estilos para as perguntas frequentes */
.perguntas {
    flex: 1;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Estilos para os títulos */
h2 {
    font-weight: bold;
    font-size: 24px;
    color: #333;
    margin-top: 0;
}

/* Estilos para os parágrafos */
p {
    font-size: 18px;
    color: #666;
}

/* Estilos para o rodapé (footer) */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    color: #ffffff;
    padding: 5px 20px;
    width: 100%;
    position: fixed;
    bottom: 0;
}

.rodapé-links {
    display: flex;
    justify-content: flex-start;
}

.rodapé-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rodapé-links li {
    margin: 0 10px;
}

.rodapé-links a {
    text-decoration: none;
    color: #2683d5;
}

.rodapé-social {
    display: flex;
    justify-content: flex-end;
}

.rodapé-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rodapé-social li {
    margin: 0 10px;
}

.rodapé-social a {
    text-decoration: none;
    color: #fff;
}