/* Font Families */
body {
    font-family: 'Merriweather', 'Playfair Display', serif;
    margin: 20px;
}

h1 {
    font-size: 35px;
    color: #0d7dd4;
    margin-bottom: 20px;
    letter-spacing: 0;
}

h2 {
    color: #0d7dd4;
    margin-bottom: 20px;
}

div {
    margin-bottom: 15px;
}

label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

label {
    color: #000000;
}

input#autoPrice, input#loanTermYears, input#interestRate, 
input#cashIncentives, input#downPayment, input#tradeInValue, 
input#amountOwed, input#salesTax, input#otherFees {
    border: 1px solid #0d7dd4;
    border-radius: 50px;
    padding: 14px;
}

/* Placeholder styling */
input::placeholder {
    color: #0d7dd4;
    font-weight: bold;
}

button {
    cursor: pointer;
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
}

button:hover {
    background-color: #0a65a8;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

button:focus, button:focus-visible {
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
    outline: none;
}

input:focus, select:focus, button:focus {
    border-color: #0d7dd4;
    outline: none;
}

input:hover, select:hover {
    border-color: #0d7dd4;
}

#results {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f0fdf9;
    border: 2px solid #0d7dd4;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

#results.show {
    opacity: 1;
    transform: scale(1);
}

#results h2 {
    margin-bottom: 15px;
}

#results p {
    margin: 5px 0;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.term-container {
    display: flex;
    gap: 10px;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
}

/* Highlight the Monthly Pay */
#monthlyPay {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c; /* Eye-catching red color */
    text-align: center; /* Center the text */
    margin-top: 20px;
    padding: 10px;
    background-color: #f9ecec; /* Subtle background color to make it stand out */
    border-radius: 10px;
    border: 2px solid #e74c3c;
    box-shadow: 0px 4px 15px rgba(231, 76, 60, 0.2);
}
