/* Basic structure adapted */
.calcufacil-student_loan_repayment_calculator.calcufacil-container {
    max-width: 950px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    font-family: 'Arial', sans-serif;
}

.calcufacil-student_loan_repayment_calculator .calcufacil-left,
.calcufacil-student_loan_repayment_calculator .calcufacil-right {
    flex: 1;
    min-width: 300px;
}

.calcufacil-student_loan_repayment_calculator .calculator-form h2 {
    font-size: 22px;
    color: #8e44ad; /* Student loan theme color (purple) */
    margin-bottom: 15px;
    text-align: center;
}

.calcufacil-student_loan_repayment_calculator .input-group {
    margin-bottom: 12px;
}

.calcufacil-student_loan_repayment_calculator .input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.calcufacil-student_loan_repayment_calculator .input-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #f9f9f9;
}

.calcufacil-student_loan_repayment_calculator button {
    background: #8e44ad; /* Student loan theme color */
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

.calcufacil-student_loan_repayment_calculator button:hover {
    background: #7d3c98;
}

.calcufacil-student_loan_repayment_calculator .form-note {
    font-size: 12px;
    color: #555;
    margin-top: 15px;
    background: #f4ecf7;
    padding: 8px;
    border-radius: 4px;
    line-height: 1.4;
}


.calcufacil-student_loan_repayment_calculator .results {
    background: #f4ecf7; /* Light purple background */
    padding: 20px;
    border-radius: 8px;
}

.calcufacil-student_loan_repayment_calculator .results-header h2 {
    font-size: 24px;
    color: #8e44ad;
    text-align: center;
    margin-bottom: 15px;
}

.calcufacil-student_loan_repayment_calculator .result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    margin-bottom: 8px;
    border-bottom: 1px dotted #eee;
    font-size: 14px;
    background: #fff; /* Add white bg to items */
    border-radius: 3px;
}
.calcufacil-student_loan_repayment_calculator .result-item:first-child { /* Top item spacing */
    margin-top: 10px;
}
.calcufacil-student_loan_repayment_calculator .scenario-card .result-item {
    background: transparent; /* Remove bg inside cards */
    border-bottom-style: dashed;
    padding: 6px 0;
}
.calcufacil-student_loan_repayment_calculator .scenario-card .result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}


.calcufacil-student_loan_repayment_calculator .result-item span {
    color: #333;
    flex-basis: 60%;
    padding-right: 10px;
}

.calcufacil-student_loan_repayment_calculator .result-item strong {
    font-weight: 600;
    text-align: right;
    flex-basis: 40%;
    color: #7d3c98; /* Darker purple */
}

.calcufacil-student_loan_repayment_calculator .repayment-comparison {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.calcufacil-student_loan_repayment_calculator .scenario-card {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    border-top: 4px solid;
}
.calcufacil-student_loan_repayment_calculator .scenario-card.standard {
    border-color: #e74c3c; /* Red for standard (longer/more interest) */
}
.calcufacil-student_loan_repayment_calculator .scenario-card.extra {
    border-color: #2ecc71; /* Green for extra payment (faster/less interest) */
}

.calcufacil-student_loan_repayment_calculator .scenario-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}
.calcufacil-student_loan_repayment_calculator .scenario-card.standard h4 { color: #c0392b; }
.calcufacil-student_loan_repayment_calculator .scenario-card.extra h4 { color: #27ae60; }


.calcufacil-student_loan_repayment_calculator .savings-summary {
    margin-top: 20px;
    padding: 15px;
    background: #e8f8f5;
    border: 1px solid #d1f2eb;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
    text-align: center;
}
.calcufacil-student_loan_repayment_calculator .savings-summary.neutral {
     background: #fdf8e3;
     border-color: #fcf3cf;
     border-left-color: #f39c12;
}

.calcufacil-student_loan_repayment_calculator .savings-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #1e8449;
}
.calcufacil-student_loan_repayment_calculator .savings-summary.neutral h4 {
    color: #d35400;
}

.calcufacil-student_loan_repayment_calculator .savings-summary p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.calcufacil-student_loan_repayment_calculator .savings-summary strong {
     color: #1e8449;
     font-weight: bold;
}
.calcufacil-student_loan_repayment_calculator .savings-summary.neutral strong {
    color: #d35400;
}

.calcufacil-student_loan_repayment_calculator .errors {
    color: #d32f2f;
    font-size: 14px;
    background: #ffcdd2;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
}

@media (max-width: 768px) {
    .calcufacil-student_loan_repayment_calculator.calcufacil-container {
        flex-direction: column;
        padding: 15px;
    }
     .calcufacil-student_loan_repayment_calculator .repayment-comparison {
        flex-direction: column;
    }
     .calcufacil-student_loan_repayment_calculator .result-item {
        font-size: 13px;
    }
}