body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 80%;
    max-width: 450px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.section-title {
    background: #084288;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 15px 0 10px 0;
    font-weight: bold;
    text-align: center;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.input-container label {
    width: 45%;
    text-align: right;
    margin-right: 4%;
}

.input-container input, .input-container select {
    width: 46%;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
    margin-right: 10%;
}

.input-container input::placeholder {
    font-size: 0.8em;
}

#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    padding: 10px 20px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
}

#button-container button:hover {
    background-color: #434c6d;
}

#result {
    margin-top: 20px;
}

#result h3 {
    text-align: center;
    color: #084288;
    margin-bottom: 15px;
}

.result-highlight {
    background: linear-gradient(135deg, #084288, #0a5cb8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.result-highlight .big-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.result-highlight .label {
    font-size: 0.9em;
    opacity: 0.9;
}

.result-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.result-summary h4 {
    color: #084288;
    margin: 0 0 10px 0;
    text-align: center;
}

.result-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.result-summary strong {
    color: #084288;
}

.contribution-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.contribution-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.contribution-box.employer {
    background: #d4edda;
}

.contribution-box h5 {
    color: #084288;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.contribution-box .amount {
    font-size: 1.4em;
    font-weight: bold;
    color: #084288;
}

.contribution-box .period {
    font-size: 0.8em;
    color: #666;
}

.milestone-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.milestone-table th, .milestone-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 0.85em;
}

.milestone-table th {
    background: #084288;
    color: white;
}

.milestone-table tr:nth-child(even) {
    background: #f9f9f9;
}

.milestone-table tr:hover {
    background: #e9e9e9;
}

.tip-box {
    background: #e8f4fc;
    border-left: 4px solid #084288;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.tip-box p {
    margin: 0;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .contribution-breakdown {
        grid-template-columns: 1fr;
    }
}
