/* ===========================================
    Retirement Calculator - Tool Specific Styles
    =========================================== */

/* Tool Layout */
.rc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Form Styling */
.rc-form {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rc-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #007bff; /* Primary Blue */
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.rc-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.rc-input-group label {
    font-weight: 500;
    color: #495057;
    flex: 1;
    padding-right: 15px;
}

.rc-input-group input {
    width: 150px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.rc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 30px;
    background-color: #28a745; /* Green for GO/Calculate */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rc-calculate-btn:hover {
    background-color: #1e7e34;
}

/* Results Display */
.rc-results {
    margin-top: 40px;
    padding: 30px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #eaf5ff; /* Light Blue background */
    text-align: center;
}

.rc-results-title {
    color: #0056b3;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.rc-result-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 25px;
}

.rc-data-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.rc-data-segment {
    background: #ffffff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px 10px;
    width: 45%;
    min-width: 150px;
}

.rc-data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #007bff;
    line-height: 1.1;
}

.rc-data-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

.rc-recalculate-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rc-recalculate-btn:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .rc-form {
        padding: 20px;
    }
    .rc-input-group label, .rc-input-group input {
        width: 45%;
    }
    .rc-data-segment {
        width: 100%;
    }
}