body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

header {
    background-color: #fff;
    border-bottom: 2px solid #dadada;
}

.ocultar {
    font-size: 0px;
    color: rgb(255, 255, 255);
}

.nav-bar {
    margin: 10px 100px;
    display: flex;
    justify-content: space-between;
}

#valorEmprestimoSelecionado {
    font-size: 18px;
    margin-bottom: 20px;
    color: #007bff;
    margin-left: 5px;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 100px;
}

.simular {
    font-size: 10px;
    font-weight: 300;
    color: #656565;
}

.titulo {
    font-size: 20px;
    color: #0056b3;
}

.avisos, .avisos2, .avisos3 {
    font-size: 12px;
    text-align: center;
    color: #656565;
}

.avisos3 {
    padding: 30px;
}

.ajuda2 {
    width: 250px;
    background-color: #ffffff;
    color: rgb(76, 76, 76);
    border: none;   
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    align-items: center;
    margin-bottom: 15px;
}

.ver-termo {
    width: 250px;
    background-color: #ffffff;
    color: rgb(76, 76, 76);
    border: none;   
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    align-items: center;
    margin-bottom: 15px;
}

.main-container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 20px;
}

.form-container {
    display: flex;
    align-items: center; 
    flex-direction: row; 
}

.image-container {
    flex: 1;
    max-width: 800px;
    max-height: 750px;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 8px 0 0 8px;
    border-color: #0056b3;
}

.container {
    flex: 2;
    max-width: 500px;
    background: #fff;
    padding: 20px 30px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

input, select {
    width: 100%;
    padding: 12px; /* Padding ajustado para consistência */
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #dadada; /* Alterado para uma cor de borda consistente */
    box-sizing: border-box; /* Garante que o padding não afete a largura total */
    background-color: #edf0ef;
    border-radius: 20px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 20px auto;
}

#alertaValor {
    color: red;
    font-size: 14px;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ffffff;
}

th, td {
    padding: 10px;
    text-align: center;
}

#novaSimulacao {
    background-color: transparent;
    color: black;
    border: 1px solid #007bff;
}

#novaSimulacao:hover {
    background-color: #007bff;
    color: white;
}

/* Estilos para responsividade */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column; 
        align-items: center; 
    }

    .image-container {
        margin-bottom: 20px; 
    }

    input, select {
        font-size: 16px; 
        padding: 15px; 
    }

    button {
        font-size: 16px; 
        padding: 12px; 
    }
}

input[type="range"] {
    -webkit-appearance: none; 
    width: 100%;
    height: 8px; 
    background: #edf0ef; 
    border-radius: 5px; 
    outline: none; 
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none; 
    width: 20px; 
    height: 20px; 
    background: #007bff; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: background 0.3s; 
}

input[type="range"]::-moz-range-thumb {
    width: 20px; 
    height: 20px; 
    background: #007bff; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: background 0.3s; 
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: #0056b3; 
}

input[type="range"]:hover::-moz-range-thumb {
    background: #0056b3; 
}

input[type="date"], select {
    width: 100%;
    height: 50px; 
    padding: 12px 10px; 
    margin-top: 5px; 
    margin-bottom: 10px; 
    border: 1px solid #dadada; 
    background-color: #edf0ef; 
    border-radius: 20px; 
    font-size: 16px; 
    box-sizing: border-box; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
}

/* Estilo específico para Safari */
@media not all and (min-resolution: 0.001dpcm) { 
    input[type="date"], select {
        width: 100%; 
        height: 50px; 
        padding: 12px 10px; 
        margin-top: 5px; 
        margin-bottom: 10px; 
        border: 1px solid #dadada; 
        background-color: #edf0ef; 
        border-radius: 20px; 
        font-size: 16px; 
        box-sizing: border-box; 
    }
}
