body{
    font-family:Arial;
    margin:0;
    background:#f4f7f9;
    background:linear-gradient(to bottom,#f8f9fa,#e9ecef);
}
header{
    background:#2563EB;
    padding:10px;
    color:white;
}
nav a{
    color:white;
    margin-right:20px;
    text-decoration:none;
    font-weight:bold;
    transition: all 0.3s ease;
}
.cards{
    display: flex;
    gap: 50px; 
    justify-content: center;
    padding: 0 80px; /*afasta das laterais*/
}
.card{
    background:white;
    padding: 15px; /* era 20px ou 30px*/
    width: 250px; /*define ma largura menor */
    border-radius:10px;
    flex:0 0 250px; /*impede que aumente demasiado */
    min-width: 300px;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
    text-align:center;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
button{
    background:#2563EB;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
    transition: 0.3s;
}
button:hover {
    background: #2563eb;
    transform: scale(1.1);
}
table{
    width:90%;
    border-collapse:collapse;
    margin: 30px auto;
    background: white;
}
th{
    background:#2563EB;
    color:white;
    padding:12px;
}
td{
    padding:10px;
    border:1px solid #ddd;
    text-align:center;
}
tr:nth-child(even){
    background:#f5f5f5;
}
footer{
    background:#333;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:50px;
}
.resultado-area{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    margin:30px auto;
    flex-wrap:wrap;   /* Em telemóveis fica um por baixo do outro */
}
.resultado{
    width:550px;
    background:#fff;
    padding:25px;
    border-left:5px solid #38bdf8;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.resultado h3{
    margin:0 0 20px;
    color:#2563EB;
}

.resultado p{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:15px 0;
    font-size:18px;
}

.resultado span{
    display:inline;
    margin:0;
    font-weight:bold;
}
.resultado .taxa{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:15px;
    border-top:1px solid #ddd;
}

.resultado .taxa span{
    font-size:22px;
    font-weight:bold;
}

.linha{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.linha:last-child{
    border-bottom:none;
}

.linha span{
    font-weight:600;
}

.linha strong{
    font-size:20px;
}

.titulo{
    font-weight:600;
    color:#333;
}

.valor{
    font-weight:bold;
    font-size:20px;
}
.img {
    width: 100px; /* Largura da imagem*/
    height:100px; /* Altura da imagem */
    object-fit: cover; /* Ajusta a imagem ao tamanho definido */
    display: block;
    margin-left: auto;  /* Empurra a imagem para a direita */
    margin-right: 0;
    margin-top: 0;
}
p{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin-left: 40px;
    margin-right: 40px;
}
h2{
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 30px;
    font-weight: bold;
    text-align: left;
    background:#ddd;
    padding:15px;
    color:#2563EB;
    text-align: left;
    margin-top: 30px;
    margin-left: 30px;
}
h1{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: #1e3a8a;
    font-size: 28px;
    

}
.sobre {
    margin: 30px 0 30px 20px;
}

.sobre h2 {
    color: #2563EB;
    font-size: 36px;
    font-weight: bold;
    border-left: 5px solid #38bdf8;
    padding-left: 15px;
    margin: 0;
    margin-right: 15px;
}
label{
    font-family: Arial, Helvetica, sans-serif;
    Font-size: 15px;
    margin-left: 10px;
    margin-right: 10px;
}
.topo {
    background: linear-gradient(135deg, #2563EB, #06B6D4, #14B8A6);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 30px;
}
.topo h1 {
    color: white;
    font-size: 50px;
}

.logo {
    width: 90px; /* aumenta o tamanho */
    height: auto;
}
.conteudo-esquerda h1 {
    color: white;
    font-size: 50px;
    margin: 0 0 10px 0;
}
.conteudo-esquerda {
    display:flex;
    flex-direction:column;
    margin-left: -15px;
}
nav a:hover {
    color: #ffd700;      /* muda para dourado */
    transform: scale(1.1); /* aumenta 10% */
}
.btn-voltar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #38bdf8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.btn-voltar:hover {
    background-color: #38bdf8;
    transform: scale(1.05);
}  

.apresentacao{
    background: white;
    width: 80%;
    margin: 30px auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.apresentacao h2{
    color: #2563EB;
}
.banner{
    color: rgb(255, 255, 255);
    padding: 15px;
    font-size: 15px;
    margin-top: -15px;
    margin-left: -15px;
}
.rodape {
   
    background:linear-gradient(to bottom,#f8f9fa,#e9ecef);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    margin-right: -600px;
}
.rodape p {
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.rodape1 {
   
    background:linear-gradient(to bottom,#f8f9fa,#e9ecef);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
.rodape1 p {
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.titulo-sobre{
   font-family: Arial, Helvetica, sans-serif;
    margin-left: 30px;
    font-weight: bold;
    text-align: left;
    background:#f1f1f1;
    padding:15px;
    color: #2563eb;
}
.caixa-sobre{
    background:#ffffff;
    margin:30px;
    padding:20px;
    border-radius:15px;
    text-align: left;
    display: flex;
    justify-content: center;
    margin-right: -500px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cartao {
    width: 100%;
    min-height:350px;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 0;
    box-sizing: border-box;
}
.cartao h3 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 20px;
}

.cartao p {
    text-align: justify;
    line-height: 1.8;
    font-size: 18px;
}
.subtitulo {
    color: white;
    font-size: 18px;
    font-weight: normal;
    margin-top: -5px;
    margin-left: -0px;
    font-family: Arial, Helvetica, sans-serif;
}
.formulario{
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    font-family: Arial, Helvetica, sans-serif;
}
.formulario h2{
    text-align: left;
    color: #38bdf8;
    text-align: left;
    margin-bottom: 30px;
    font-size: 28px;
}
.formulario form {
    display: flex;
   flex-direction: column;
}
.formulario label{
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: 600px;
    color: #34495e;
}
.formulario input{
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px ;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.formulario input:focus{
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba (0,150,136,0.3);
}
.formulario button{
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.formulario button:hover{
    background: #256325;        
    opacity: 0.95;
    transform: translate(0);
}
.formulario button:active{
    transform: translate(0);
}
.info{
    flex: 1;
    background:white;
    width:80%;
    margin:30px auto;
    padding:25px;
    border-radius:20px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}
.info h2{
    margin-top:0;
    color:#2563EB;
}

/* vantagens do site (inicio)*/
.vantagens{
    display:flex;
    justify-content:space-around;
    margin:30px 0;
    font-weight:bold;

}
.vantagem{
    background:white;
    padding:15px;
    border-radius:10px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}
.resumo{
    display:flex;
    justify-content:space-around;
    margin:40px 0;
    font-weight:bold;
}
.resumos{
    background:white;
    padding:15px;
    border-radius:10px;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}
a.logout {
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
}

a.logout:hover {
    background: #bb2d3b;
}

/* Caixa do login */
.login-container{
    width:400px;
    margin:80px auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.15);
}

/* Título */
.login-container h2{
    text-align:center;
    color:#2563EB;
    margin-bottom:25px;
}

/* Campos */
.login-container input{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
    box-sizing:border-box;
    font-size:15px;
}

/* Campo ativo */
.login-container input:focus{
    outline:none;
    border-color:#2563EB;
}

/* Botão */
.login-container button{
    width:100%;
    padding:12px;
    background:#2563EB;
    color:white;
    border:none;
    border-radius:5px;
    font-size:16px;
    cursor:pointer;
}

.login-container button:hover{
    background:#2563EB;
}

/* Texto inferior */
.login-container p{
    text-align:center;
    margin-top:20px;
}

/* Link de registo */
.login-container a{
    color:#2563EB;
    text-decoration:none;
    font-weight:bold;
}

.login-container a:hover{
    text-decoration:underline;
}
.hero{
    background: linear-gradient(135deg, #2563EB, #06B6D4, #14B8A6);
    color:white;
    text-align:center;
    padding:60px 20px;
}

.hero h7{
    font-size:42px;
    margin-bottom:15px;

}
.titulo-simulador {
    background-color: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    margin-left: -20px;
}

.titulo-simulador h2 {
    margin: 0;
    color: #1e3a8a;
    font-size: 28px;
}
h7{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    text-align: center;
}   
.hero p{
    font: size 30px;
}

.caixa-principal {
    width: 90%;
    max-width: 1200px;

    margin: 30px auto;
    padding: 30px;

    background-color: white;

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.perfil{
    max-width:700px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.perfil h2{
    color:#2563EB;
    margin-bottom:20px;
}

.perfil p{
    font-size:18px;
    margin-bottom:15px;
}
.btn-perfil,
.btn-password{
    display:inline-block;
    padding:10px 18px;
    margin-top:10px;
    margin-right:10px;
    border-radius:8px;
    text-decoration:none;
    color:white;
    font-weight:bold;
}

.btn-perfil{
    background:#2563EB;
}

.btn-perfil:hover{
    background:#2563eb;
}

.btn-password{
    background:#455a64;
}

.btn-password:hover{
    background:#263238;
}
.perfil form{
    margin-top:20px;
}

.perfil label{
    display:block;
    margin-bottom:5px;
    font-weight:bold;
}

.perfil input{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
}

.perfil button{
    background:#2563EB;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    cursor:pointer;
}

.perfil button:hover{
    background:#2563eb;
}
.btn-apagar{
    background:#e53935;
    color:white;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
    font-weight:bold;
}

.btn-apagar:hover{
    background:#c62828;
}
.painel-utilizador{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:30px;
    flex-wrap:wrap;
}

.caixa-perfil{
    width:600px;
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.caixa-definicoes{
    width:280px;
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.caixa-perfil h2,
.caixa-definicoes h2{
    color:#2563eb;
    margin-bottom:20px;
}

.caixa-perfil p{
    margin-bottom:15px;
}

.btn-def{
    display:block;
    text-align:left;
    text-decoration:none;
    background:#2563EB;
    color:white;
    padding:12px;
    border-radius:8px;
    margin-bottom:12px;
    font-weight:bold;
}

.btn-def:hover{
    background:#2563EB;
}

.btn-def-password{
    display:block;
    text-align:left;
    text-decoration:none;
    background:#455a64;
    color:white;
    padding:12px;
    border-radius:8px;
    margin-top:10px;
    font-weight:bold;
}

.btn-def-password:hover{
    background:#263238;
}

.btn-sair{
    display:block;
    text-align:left;
    text-decoration:none;
    background:#e53935;
    color:white;
    padding:12px;
    border-radius:8px;
    font-weight:bold;
}

.btn-sair:hover{
    background:#c62828;
}
.titulo-secao{
    background:#f4f4f4;
    color:#2563EB;
    padding:15px;
    border-radius:8px;
    font-size:24px;
    font-weight:bold;
    margin-bottom:20px;
    margin-top: -10px;
  
}
h5{
    background:#f4f4f4;
    color:#2563EB;
    padding:15px;
    border-left:5px solid #2563EB;
    border-radius:8px;
    font-size:28px;
    font-weight:bold;
    margin-bottom:25px;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
    margin-left: 60px;
    margin-right: 60px;
}

.erro-login{
    width:400px;
    margin:20px auto;
    padding:15px;
    background:#ffebee;
    border:1px solid #e57373;
    color:#c62828;
    text-align:center;
    border-radius:8px;
    font-weight:bold;
    margin-bottom: -50px;
}
.cookie-banner{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#2563EB;
    color:white;
    padding:15px;
    text-align:center;
    z-index:9999;
}

.btn-cookie{
    padding:10px 20px;
    margin:5px;
    text-decoration:none;
    color:white;
    border-radius:5px;
}

.aceitar{
    background:green;
}

.recusar{
    background:red;
}
.container{
    max-width:1200px;
    display:flex;
    gap:40px;
}
.historico {
    background-color: #ffffff;
    border-left:5px solid #2563EB;
    padding: 15px 20px;
    border-radius: 8px;
    margin-left: 50px;
    margin-right:50px;
    margin-top: 20px;
}

.historico h2 {
    margin-left: 100px;
    margin-right:100px ;
    color: #1e3a8a;
    font-size: px;
}
.informacoes-credito{
    display:flex;
    flex-direction:row;
    justify-content:center;
    gap:25px;
    margin:30px auto;
    width:90%;
}

.coluna{
    flex:1;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    margin-left: 70px;
    margin-right: 70px;
}

.coluna h3{
    text-align:center;
    margin-bottom:15px;
}

.coluna ul{
    padding-left:20px;
}
/* Secção Comparação de Simulações */
.comparacao-simulacoes{
    max-width:1000px;
    margin:40px auto;
    padding:35px;
    background:#ffffff;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.comparacao-simulacoes h2{
    color:#2563eb;
    margin-bottom:15px;
    font-size:2rem;
}

.descricao-comparacao{
    color:#555;
    line-height:1.7;
    margin-bottom:30px;
}

.comparacao-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.beneficio{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:25px;
    text-align:center;
    transition:all .3s ease;
}

.beneficio:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.08);
}

.beneficio h3{
    color:#2563eb;
    margin-bottom:10px;
    font-size:1.1rem;
}

.beneficio p{
    color:#666;
    line-height:1.5;
    font-size:0.95rem;
}
.area-simulador{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    margin-top:30px;
}

.area-simulador{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:30px;
    margin-top:30px;
}
.imgpng{
    width:300px;
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.12);

    display:flex;
    justify-content:center;
    align-items:center;
}

.imgpng img{
    width:300px;
    max-width:none;
    height:auto;
}