.loan-calculator {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 4px;
}

.loan-calculator h2, .loan-calculator h3 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.summary-table th,
.summary-table td {
    padding: 10px;
    text-align: left;
}

.summary-table th {
    width: 25%;
    font-weight: bold;
}

.summary-table td {
    width: 25%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
    padding: 10px;
    text-align: center;
}

.schedule-table th {
    font-weight: bold;
}

.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1),
.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    text-align: left;
}

.credit-line {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.credit-line a {
    text-decoration: none;
}

.credit-line a:hover {
    text-decoration: underline;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.schedule-buttons button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
#loan-schedule td, #loan-schedule th {padding: 5px; font-size: 10px; line-height: 1;}
.summary-table td, .summary-table th {padding: 5px; font-size: 12px; line-height: 1;}
}

@media screen and (max-width: 800px) {
#loan-schedule td, #loan-schedule th {padding: 5px; font-size: 8px; line-height: 1;}
.summary-table td, .summary-table th {padding: 5px; font-size: 10px; line-height: 1;}
}