/* Styles for Early Mortgage/Loan Repayment Impact Simulator */
.calcufacil-early_repayment_simulator.calcufacil-container.enhanced-earlyrepay-calc {
    max-width: 1050px;
    margin: 25px auto;
    background: #f4f8fb; /* Light calming blue */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 25px;
    font-family: 'Arial', sans-serif;
}

.calcufacil-early_repayment_simulator .calcufacil-left.calculator-form {
    flex: 1 1 40%;
    min-width: 320px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.calcufacil-early_repayment_simulator .calcufacil-right.results.enhanced-earlyrepay-results {
    flex: 1 1 60%;
    min-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dfe9f2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.calcufacil-early_repayment_simulator .calculator-form h3 {
    font-size: 20px; color: #2c5d88; margin-top:0; margin-bottom: 10px; font-weight: 600;
}
.calcufacil-early_repayment_simulator .calculator-form .description {
    font-size: 14px; color: #4a6b82; margin-bottom: 15px; line-height: 1.5;
}
.calcufacil-early_repayment_simulator .calculator-form fieldset {
    border: 1px solid #cce0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.calcufacil-early_repayment_simulator .calculator-form legend {
    font-weight: 600; color: #2a7aaf; padding: 0 8px; font-size: 1.1em;
    display: flex; align-items: center; gap: 8px;
}
.calcufacil-early_repayment_simulator .calculator-form legend i { color: #5ba5dd; }

.calcufacil-early_repayment_simulator .input-group { margin-bottom: 12px; display: flex; flex-direction: column; }
.calcufacil-early_repayment_simulator .input-group label {
    font-weight: 500; color: #335d80; margin-bottom: 5px; font-size: 13px;
}
.calcufacil-early_repayment_simulator .input-group input[type="text"],
.calcufacil-early_repayment_simulator .input-group input[type="number"] {
    width: 100%; padding: 9px; border: 1px solid #b0c4de; border-radius: 4px;
    font-size: 14px; box-sizing: border-box;
}

.calcufacil-early_repayment_simulator button[type="submit"] {
    background: #2a7aaf; color: #fff; padding: 10px 20px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 16px; width: 100%; margin-top: 10px; font-weight: bold;
}
.calcufacil-early_repayment_simulator button[type="submit"]:hover { background: #1e5277; }

/* Results Area Styling */
.calcufacil-early_repayment_simulator .results.enhanced-earlyrepay-results h2 {
    font-size: 20px; color: #2c5d88; text-align: center; margin-top:0; margin-bottom: 15px;
}
.calcufacil-early_repayment_simulator .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for original vs accelerated */
    gap: 20px;
    margin-bottom: 20px;
}
.calcufacil-early_repayment_simulator .result-item {
    padding: 15px;
    border-radius: 6px;
    background-color: #eaf6ff;
    border: 1px solid #cce0f0;
}
.calcufacil-early_repayment_simulator .result-item.accelerated {
    background-color: #dff0d8; /* Light green for positive outcome */
    border-color: #c3e6cb;
}
.calcufacil-early_repayment_simulator .result-item h4 {
    margin-top: 0;
    font-size: 1.1em;
    color: #2a7aaf;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.calcufacil-early_repayment_simulator .result-item.accelerated h4 { color: #38761d; }
.calcufacil-early_repayment_simulator .result-item ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    font-size: 0.9em;
}
.calcufacil-early_repayment_simulator .result-item ul li {
    margin-bottom: 6px;
    color: #335d80;
}
.calcufacil-early_repayment_simulator .result-item.accelerated ul li { color: #2e6122; }
.calcufacil-early_repayment_simulator .result-item strong { font-weight: 600; }

.calcufacil-early_repayment_simulator .savings-summary {
    text-align: center;
    padding: 15px;
    background-color: #fff8e1; /* Light yellow for summary */
    border: 1px solid #ffecb3;
    border-radius: 6px;
    margin-bottom: 20px;
}
.calcufacil-early_repayment_simulator .savings-summary h3 {
    margin-top: 0;
    color: #8d6e00;
    font-size: 1.3em;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.calcufacil-early_repayment_simulator .savings-summary p {
    font-size: 1.05em;
    margin-bottom: 8px;
    color: #544200;
}
.calcufacil-early_repayment_simulator .savings-summary .highlight-savings {
    font-weight: bold;
    color: #c00; /* Or a strong green */
    font-size: 1.2em;
}
.calcufacil-early_repayment_simulator .savings-summary small {
    display: block; font-size:0.85em; color: #777; margin-top:3px;
}


.calcufacil-early_repayment_simulator .chart-container-earlyrepay {
    width: 100%; height: 300px; position: relative; margin: 10px auto 20px auto;
    padding: 10px; background-color: #fdfdff; border-radius: 4px; border: 1px solid #e4eaf2; box-sizing: border-box;
}
.calcufacil-early_repayment_simulator .chart-container-earlyrepay canvas {
    max-width: 100%; max-height: 100%; display: block;
}

.calcufacil-early_repayment_simulator .disclaimer-box.earlyrepay-disclaimer {
    margin-top: 20px; padding: 12px; background-color: #f0f4f7;
    border: 1px solid #d1dce5; border-left: 3px solid #6c757d; border-radius: 4px; font-size: 0.85em;
}
.calcufacil-early_repayment_simulator .disclaimer-box h4 { margin-top: 0; margin-bottom: 8px; color: #495057; }
.calcufacil-early_repayment_simulator .disclaimer-box ul { list-style: disc; margin-left: 18px; padding-left: 0; color: #5a6268; line-height: 1.5; }


.calcufacil-early_repayment_simulator .errors.main-error {
    color: #721c24; background-color: #f8d7da; border-color: #f5c6cb;
    padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem;
}
.calcufacil-early_repayment_simulator .initial-message {
    text-align: center; padding: 20px; background-color: #e9f0f4;
    border: 1px dashed #c2d4e0; border-radius: 5px; margin-top: 15px; color: #4a6b82;
}

@media (max-width: 900px) {
    .calcufacil-early_repayment_simulator.calcufacil-container.enhanced-earlyrepay-calc {
        flex-direction: column;
    }
    .calcufacil-early_repayment_simulator .calcufacil-left.calculator-form,
    .calcufacil-early_repayment_simulator .calcufacil-right.results.enhanced-earlyrepay-results {
        flex-basis: 100%; min-width: 100%; margin-bottom: 20px;
    }
    .calcufacil-early_repayment_simulator .calcufacil-right.results.enhanced-earlyrepay-results { margin-bottom: 0; }
}
@media (max-width: 700px) {
    .calcufacil-early_repayment_simulator .results-grid {
        grid-template-columns: 1fr; /* Stack results on smaller screens */
    }
}