/* ===========================================
    401(k) Savings Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.c401k-box { /* RENAMED */
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.c401k-form { /* RENAMED */
    padding: 25px; 
    border: 1px solid #757575; /* Gray Border */
    border-radius: 8px;
    background-color: #FAFAFA; /* Very Light Gray Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.c401k-section-title { /* RENAMED */
    font-size: 1.3rem;
    font-weight: 600;
    color: #424242; /* Dark Gray */
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.c401k-input-grid { /* RENAMED */
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.c401k-input-group { /* RENAMED */
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.c401k-input-group label { /* RENAMED */
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.c401k-input-group input, .c401k-input-group select { /* RENAMED */
    padding: 12px;
    border: 1px solid #BDBDBD;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

/* Specific Input Styling for Rates/Percentages */
.c401k-input-group input[type="number"].percent-input { /* RENAMED */
    text-align: right;
    width: calc(100% - 30px); /* Make room for the % sign */
    padding-right: 35px;
}

/* Button Styles */
.c401k-calculate-btn { /* RENAMED */
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #FBC02D; /* Primary Gold/Amber */
    color: #424242;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.c401k-calculate-btn:hover { /* RENAMED */
    background-color: #FFB300;
}

/* --- Results Display --- */
.c401k-results { /* RENAMED */
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #FBC02D; 
    border-radius: 8px;
    background-color: #FFFDE7; /* Light Yellow */
    text-align: center;
}

.c401k-results-title { /* RENAMED */
    color: #FBC02D;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFF59D;
    padding-bottom: 5px;
}

/* Results Table */
.c401k-results-table { /* RENAMED */
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.c401k-results-table th, .c401k-results-table td { /* RENAMED */
    padding: 12px 10px;
    border-bottom: 1px solid #FFF59D;
    text-align: left;
}
.c401k-results-table th { /* RENAMED */
    background-color: #FAFAFA; 
    color: #424242;
    font-weight: 600;
    width: 55%;
}

/* Key Value Styling */
.c401k-results-table td { /* RENAMED */
    font-size: 1.1rem;
    font-weight: 700;
    color: #00897B; /* Teal for money values */
}

/* Final Balance Highlight */
.c401k-results-table tr.final-balance td { /* RENAMED */
    font-size: 1.6rem;
    color: #1E88E5; /* Blue for key result */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .c401k-input-group { /* RENAMED */
        flex-basis: 100%;
    }
}