/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.c-matter--article .c-matter__body {
    width: 1000px;
}
@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        width: 100%;
    }
}

.retirement-calc-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 20px; */
}

/* Header Styles */
/* header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
} */

/* Calculator Wrapper */
.retirement-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.retirement-calc-intro {
    text-align: center;
}

/* Input Section */
.retirement-calc-input-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.input-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}

.retirement-calc-form-group {
    margin-bottom: 20px;
}

.retirement-calc-label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
}

.retirement-calc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.retirement-calc-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.retirement-calc-input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.retirement-calc-currency-symbol {
    position: absolute;
    left: 12px;
    color: #7f8c8d;
    z-index: 1;
}

.retirement-calc-input-with-symbol .retirement-calc-input {
    padding-left: 30px;
}

.input-with-symbol:has(.currency-symbol:last-child) input {
    padding-right: 30px;
}

.retirement-calc-currency-symbol:last-child {
    right: 12px;
    left: auto;
}

.retirement-calc-button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.retirement-calc-calculate-btn {
    flex: 1;
    /* padding: 14px 20px; */
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s ease;
}

.retirement-calc-reset-btn {
    flex: 1;
    /* padding: 14px 20px; */
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Results Section */
.retirement-calc-results-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
}

/* Initial message styling */
.retirement-calc-initial-message {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.initial-message p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* Calculation results styling */
.retirement-calc-calculation-results {
    animation: fadeInUp 0.6s ease-out;
}

/* Chart styling */
.retirement-calc-chart-container {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.chart-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.retirement-calc-chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

#retirement-calc-savings-chart {
    max-height: 400px;
}

.retirement-calc-summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.retirement-calc-summary-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.retirement-calc-summary-label {
    color: #6c757d;
    margin-bottom: 8px;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.5px; */
}

.retirement-calc-summary-value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 24px;
}

/* Download Section */
.retirement-calc-download-section {
    text-align: center;
    margin: 30px 0;
}

/* See More Section */
.retirement-calc-see-more-section {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
}

.retirement-calc-see-more-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retirement-calc-see-more-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.retirement-calc-see-more-btn:active {
    background: #e9ecef;
}

.retirement-calc-summary-message {
    /* padding-bottom: 25px; */
}

.projection-table-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.retirement-calc-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.retirement-calc-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.retirement-calc-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retirement-calc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

#projection-table tr:hover {
    background-color: #f8f9fa;
}

#projection-table tr:last-child td {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .retirement-calc-container {
        padding: 15px;
    }


    .retirement-calc-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .input-section,
    .retirement-calc-results-section {
        padding: 20px;
    }

    .retirement-calc-summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

@media (max-width: 480px) {
    .retirement-calc-container {
        padding: 10px;
    }



    .input-section,
    .retirement-calc-results-section {
        padding: 15px;
    }

    .retirement-calc-input {
        padding: 10px 14px;
    }

    .retirement-calc-button-group {
        flex-direction: column;
        gap: 10px;
    }

    .calculate-btn,
    .retirement-calc-reset-btn {
        padding: 12px 16px;
    }


    .retirement-calc-chart-wrapper {
        height: 300px;
    }


    #projection-table th,
    .retirement-calc-table td {
        padding: 8px 12px;
    }
}

/* Animation for results */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.retirement-calc-results-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

.calculating .retirement-calc-calculate-btn {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Number formatting */
.value {
    font-variant-numeric: tabular-nums;
}

