:root {
    --bg-color: #ffffff;
    --surface-color: #ffffff;
    --primary-color: #e0e0e0;
    --secondary-color: #a0a0a0;
    --accent-color: #ff7900;
    --border-color: #d3d3d3;
}
.calculator-wrapper { display: flex; flex-wrap: wrap; gap: 40px; background-color: var(--surface-color); padding: 30px; border-radius: 8px; margin-bottom: 40px; }
.calculator-content { flex: 1; min-width: 300px; }
.calculator-image { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 300px; }
.calculator-image img { max-width: 250px; filter: invert(1); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.input-group span { display: block; font-size: 0.8rem; color: var(--secondary-color); margin-top: 5px; }
.input-wrapper { position: relative; }
.input-wrapper .input-sufix { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--secondary-color); pointer-events: none; }
input[type="number"], select { width: 100%; padding: 12px; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 4px; color: var(--primary-color); font-size: 1rem; }
input[type="number"] { padding-right: 50px; }
input:focus, select:focus { outline: none; border-color: var(--accent-color); }
.btn { width: 100%; padding: 12px; border: none; border-radius: 4px; background-color: var(--accent-color); color: #fff; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
.btn:hover { background-color: #0069d9; }
.btn--secondary { background-color: #666; margin-top: 10px; }
.btn--secondary:hover { background-color: #777; }
.hidden { display: none; }
.calculator-results { opacity: 0; transition: opacity 0.5s, max-height 0.5s ease-in-out; max-height: 0; overflow: hidden; }
.calculator-results:not(.hidden) { opacity: 1; max-height: 15000px; }
.results-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.calculator-results-charts { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.calculator-summary { background-color: var(--surface-color); padding: 20px; border-radius: 8px; flex: 1; min-width: 300px; max-width: 500px; text-align: center; }
.calculator-summary.full-width { max-width: none; }
.calculator-summary-inner h2 { margin-top: 0; font-size: 1.5rem;}
.calculator-summary-detail { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid var(--border-color); }
.calculator-summary-detail span { color: var(--secondary-color); text-align: left; }
.calculator-summary-detail div { font-weight: bold; text-align: right; }
#costs-summary-basic, #costs-summary-with-overpayment { list-style: none; padding: 0; margin-top: 20px; }
#costs-summary-basic li, #costs-summary-with-overpayment li { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#costs-summary-basic li div, #costs-summary-with-overpayment li div { width: 15px; height: 15px; border-radius: 50%; margin-right: 10px; flex-shrink: 0;}
#costs-summary-basic li span:first-of-type, #costs-summary-with-overpayment li span:first-of-type { margin-right: auto; }
.table-wrapper { overflow-x: auto; background-color: var(--surface-color); padding: 20px; border-radius: 8px; }
#installments { width: 100%; border-collapse: collapse; margin-top: 20px; }
#installments thead { background-color: var(--bg-color); }
#installments th, #installments td { padding: 12px 15px; border: 1px solid var(--border-color); text-align: right; font-size:12px}
#installments td:first-child, #installments th:first-child { text-align: center; font-weight: bold; }
#installments tbody tr:nth-child(even) { background-color: #ececec; }
@media (max-width: 768px) { .calculator-wrapper, .calculator-results-charts { flex-direction: column; } h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } }
button#calculate {
    background: #ff7900;
    color: white;
}
button#overpayment-reset {
    display: none!important;
}