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;
}

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

.input-container label {
    width: 50%;
    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: 5%;
}

.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;
}

.yield-display {
    background: linear-gradient(135deg, #084288, #434c6d);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.yield-display .yield-value {
    font-size: 3em;
    font-weight: bold;
}

.yield-display .yield-label {
    font-size: 1.1em;
    opacity: 0.9;
}

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

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

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

.income-box {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.income-box h4 {
    color: #2e7d32;
    margin: 0 0 15px 0;
    text-align: center;
}

.income-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.income-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.income-item .label {
    font-size: 0.85em;
    color: #666;
}

.income-item .value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2e7d32;
}

.yield-rating {
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.yield-rating.high {
    background: #fff3e0;
    color: #e65100;
}

.yield-rating.moderate {
    background: #e8f5e9;
    color: #2e7d32;
}

.yield-rating.low {
    background: #e3f2fd;
    color: #1565c0;
}

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

@media (max-width: 400px) {
    .income-grid {
        grid-template-columns: 1fr;
    }
}
