/* Mortgage Calculator Container */
.calculator {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Labels for Input Fields */
.label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    width: 100%; /* Consistent width for alignment */
    box-sizing: border-box; /* Include padding and margin in width calculation */
}

/* Input Fields Styling */
.input {
    width: 100%; /* Ensures all inputs are the same width */
    padding: 10px;
    margin-bottom: 15px; /* Provide spacing between fields */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Prevents overflow due to padding */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

/* Button Styling */
button {
    width: 100%; /* Same width as inputs */
    padding: 10px;
    font-size: 1.2rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px; /* Consistent spacing */
}

button:hover {
    background-color: #0056b3; /* Darker blue for hover effect */
}

button:active {
    background-color: #003d80; /* Even darker blue for active state */
}

/* Result Box Styling */
.result-box {
    width: 100%; /* Match width of input fields and button */
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    box-sizing: border-box; /* Maintain consistent width */
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator {
        width: 100%; /* Ensures form adjusts to smaller screens */
        margin: 20px auto;
    }

    .label,
    .input,
    button,
    .result-box {
        width: 100%; /* Maintain consistent full-width elements on smaller screens */
    }
}
.amortization-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #007bff;
}

#amortization-table {
    width: 100%;
    border-collapse: collapse;
}

#amortization-table th, #amortization-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

#amortization-table th {
    background-color: #007bff;
    color: white;
}

#amortization-table tr:nth-child(even) {
    background-color: #f9f9f9;
}