/* Basic structure adapted */
.calcufacil-college_savings_calculator.calcufacil-container {
    max-width: 1000px;
    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-college_savings_calculator .calcufacil-left,
.calcufacil-college_savings_calculator .calcufacil-right {
    flex: 1;
    min-width: 300px;
}

.calcufacil-college_savings_calculator .calculator-form h2 {
    font-size: 22px;
    color: #8e44ad; /* College theme color (purple) */
    margin-bottom: 15px;
    text-align: center;
}

.calcufacil-college_savings_calculator .input-group {
    margin-bottom: 12px;
}

.calcufacil-college_savings_calculator .input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.calcufacil-college_savings_calculator .input-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #f9f9f9;
}

.calcufacil-college_savings_calculator button {
    background: #8e44ad; /* College 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-college_savings_calculator button:hover {
    background: #7d3c98;
}

.calcufacil-college_savings_calculator .results {
    background: #f4ecf7; /* Light purple background */
    padding: 20px;
    border-radius: 8px;
}

.calcufacil-college_savings_calculator .results-header h2 {
    font-size: 24px;
    color: #8e44ad;
    text-align: center;
    margin-bottom: 15px;
}

.calcufacil-college_savings_calculator .result-item {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    background: #fff;
    margin-bottom: 9px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 14px; /* Slightly smaller */
}

.calcufacil-college_savings_calculator .result-item span {
    color: #333;
    flex-basis: 65%;
    padding-right: 10px;
}

.calcufacil-college_savings_calculator .result-item strong {
    font-weight: 600;
    text-align: right;
    flex-basis: 35%;
    color: #7d3c98; /* Darker purple */
}

.calcufacil-college_savings_calculator .result-item.result-total-cost strong,
.calcufacil-college_savings_calculator .result-item.result-projected strong {
    font-size: 1.1em;
}

.calcufacil-college_savings_calculator .result-item.result-shortfall.shortfall strong {
    color: #c0392b; /* Red for shortfall */
}
.calcufacil-college_savings_calculator .result-item.result-shortfall.surplus strong {
    color: #27ae60; /* Green for surplus */
}


.calcufacil-college_savings_calculator .disclaimer {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    background: #fef9e7; /* Light yellow */
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #f1c40f; /* Yellow border */
}

/* Progress Bar Styles */
.calcufacil-college_savings_calculator .college-funding-progress {
    margin: 25px 0;
    text-align: center;
}

.calcufacil-college_savings_calculator .college-funding-progress h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.calcufacil-college_savings_calculator .progress-bar-container {
    width: 100%;
    height: 30px;
    background: #ddd;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.calcufacil-college_savings_calculator .progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #af7ac5, #8e44ad); /* Purple gradient */
    border-radius: 5px 0 0 5px;
    transition: width 0.5s ease-in-out;
}
.calcufacil-college_savings_calculator .progress-bar-container[style*="width: 100%"] .progress-bar-fill {
     border-radius: 5px;
}

.calcufacil-college_savings_calculator .progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    white-space: nowrap;
}

/* Feedback Box Styles */
.calcufacil-college_savings_calculator .feedback {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}
.calcufacil-college_savings_calculator .feedback p { margin: 0; }

.calcufacil-college_savings_calculator .feedback.on-track {
    background-color: #e8f5e9; /* Light green */
    border: 1px solid #c8e6c9;
    color: #2e7d32; /* Dark green text */
}

.calcufacil-college_savings_calculator .feedback.off-track {
    background-color: #ffebee; /* Light red */
    border: 1px solid #ffcdd2;
    color: #c62828; /* Dark red text */
}


.calcufacil-college_savings_calculator .errors {
    color: #d32f2f;
    font-size: 14px;
    background: #ffcdd2;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
}

@media (max-width: 768px) {
    .calcufacil-college_savings_calculator.calcufacil-container {
        flex-direction: column;
        padding: 15px;
    }
      .calcufacil-college_savings_calculator .result-item {
         /* Keep flex row */
         text-align: left;
     }
     .calcufacil-college_savings_calculator .result-item span {
        flex-basis: 60%;
    }
    .calcufacil-college_savings_calculator .result-item strong {
        flex-basis: 40%;
    }
}