body {
    margin: 0px;
    font-family: Arial, sans-serif;
    background-color: whitesmoke;
    color: rgb(1, 26, 58);
}



.navbar {
    background-color: rgb(1, 26, 58);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    max-width: 50%;
    height: auto;
}

.navbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}

.navbar-links li {
    margin-left: 20px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.navbar-links a:hover {
    padding: 10px;
    border: solid 2px #41c6e7;
    border-radius: 12px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}



.button-container {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    
    
}

.pre-approved{
    background-color: #41c6e7;
    color: rgb(1, 26, 58);
    height: 40px;
    width:200px;
    border-radius: 8px;
    font-size: large;
    border:none
}
.pre-approved:hover{
    background-color: #8edcf0;
    
}




/* Hover effect for text input fields */
input[type="text"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover {
    border-color: #41c6e7;
}

option,
select{
    font-size: 14px;
    padding: 10px;
    border: 2px solid rgb(1, 26, 58);
    border-radius: 8px;
    background-color: #fff;
    color: rgb(1, 26, 58);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    width: 18%; /* Makes input fields full width */
    box-sizing: border-box; /* Ensures padding doesn't exceed the container's width */
}
option:hover,
select:hover{
    border-color: #41c6e7;
}



/* Ensure the body and html take up the full height of the page */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Flex container that wraps the main content */
main {
    flex: 1; /* This will make the main content take up the remaining space */
    padding-bottom: 20px; /* Add padding if needed */
}






/* General Mobile Optimizations */
@media (max-width: 768px) {

    .pre-approved{
        
        width:250px;
        
    }
    
    
    .navbar {
        
        align-items: right;
    }

   

    .navbar-links {
        display: none;
        position: absolute;
        right: 0;
        top: 60px;
        width: 100%;
        background-color: #41c6e7;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px 0;
    }
    .navbar-links.open {
        display: flex;
    }

    .navbar-links li {
        margin: 10px 0;
    }
    .navbar-links a {
        color: white;
        padding: 10px 20px;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 4px 0;
        transition: 0.3s;
    }
    .navbar-logo img {
        width: 100%; /* Full width for small screens */
        height: auto;
    }

   

   

    /* Adjust input fields */
    input[type="text"],
    input[type="date"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    select {
        width: 80%;
        font-size: 16px;
        padding: 8px;
    }

   

    /* Adjust the footer for smaller screens */
    footer {
        font-size: 14px;
        padding: 15px;
    }

    /* Handle the custom radio buttons */
    .radio-label, .radio-label2 {
        width: 80%;
        text-align: center;
        font-size: 16px;
        padding: 10px;
        margin: 5px 0;
    }

    #loanAmount, #loanDuration {
        width: 50%;
        font-size: 16px; /* Increase font size for better readability */
        padding: 10px;
        margin-bottom: 20px;
        text-align: center;
    }

    .pageEnd {
        background-color: rgb(1, 26, 58);
        color: white;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        width: 100%; /* Ensures full width */
        box-sizing: border-box; /* Include padding in the width calculation */
        margin: 0; /* Remove any default margins */
    }
    
    .footer-section {
        flex: 1;
        min-width: 150px;
        margin: 10px;
        text-align: left;
    }
    
    
    
    .footer-section a {
        color: white;
        text-decoration: none;
        display: block;
        margin-bottom: 8px;
        font-size: medium;
    }
    
    .footer-section a:hover {
        color: #41c6e7;
    }
    
    .footer-logo {
        text-align: center;
       
    }
    
    
    
    .footer-security {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5%;
        margin-top: 2%;
    }
    
    .footer-security img {
        width: 90px;
        transition: transform 0.3s ease;
    }
    
    .footer-security img:hover {
        transform: scale(1.1);
    }
}

/* For very small screens (like phones) */
@media (max-width: 480px) {
    

    

    .navbar-links {
        flex-direction: column;
    }

   

    input[type="text"],
    input[type="date"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    select {
        font-size: 14px;
        padding: 6px;
    }

  
    footer {
        font-size: 12px;
    }
}



/* Styling for screens 480px wide or less */
@media (max-width: 768px) {
    .navbar .navbar-logo img {
        width: 40%; /* Adjust this for very small screens */
        height: auto;
    }
}










/* Footer styles */
footer {
    background-color: #41c6e7;
    text-align: center;
    color: white;
    padding: 10px;
    font-style: italic;
}





.calculator-form {
    padding: 30px;
    flex: 1;
    min-width: 300px;
}

.calculator-result {
    padding: 30px;
    background-color: rgb(221, 250, 255);
    border: solid 1px rgb(1, 26, 58);
    border-radius: 8px;
    margin-top: 10px;
    flex: 1;
    margin-left: 0.5%;
    margin-right: 0.5%;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 28px;
    color: rgb(1, 26, 58);
}

p {
    margin-bottom: 20px;
    color: #666;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: rgb(1, 26, 58);
}

input[type="number"], select {
    width: 20%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.credit-rating {
    display: flex;
    justify-content: center;
    gap: 10%;
}

.rating-button {
    background-color: #41c6e7;
    border: none;
    border-radius: 8px;
    height: 40px;
    width: 80px;
    color: rgb(1, 26, 58);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rating-button:hover {
    background-color: #8fe0f5;
}

.rating-button.active {
    border: solid 2px rgb(1, 26, 58);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}




.calculator-result h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#monthlyPayment {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
}

.additional-info {
    display: flex;
    justify-content: center;
    gap: 10%;
    margin: 20px 0;
    color: rgb(1, 26, 58);
    font-size: larger;
}

.additional-info p {
    margin: 0;
}

.disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

main{
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 5%;
    margin-bottom: 5%;
    
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    text-align: center;
}

.pageEnd {
    background-color: rgb(1, 26, 58);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%; /* Ensures full width */
    box-sizing: border-box; /* Include padding in the width calculation */
    margin: 0; /* Remove any default margins */
}

.footer-section {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    text-align: left;
}



.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: medium;
}

.footer-section a:hover {
    color: #41c6e7;
}

.footer-logo {
    text-align: center;
   
}



.footer-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5%;
    margin-top: 2%;
}

.footer-security img {
    width: 90px;
    transition: transform 0.3s ease;
}

.footer-security img:hover {
    transform: scale(1.1);
}