/* Investment Calculator Styling */
.investment-calculator-container {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.investment-calculator {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 0 0;
    display: block;
}

.result-box {
    flex: 1;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.4;
    overflow-y: auto;
    background-color: #fff; /* White background by default */
    color: #000; /* Black text by default */
}

.result-box.populated {
    background-color: #007549; /* Green background when populated */
    color: #fff; /* White text when populated */
}

.result-box h3 {
    font-size: 18px; /* Slightly larger font for headings if any */
    margin-bottom: 10px;
}

.result-box ul {
    padding-left: 20px; /* Reduce left padding of the list */
    margin-bottom: 15px;
}

.result-box li {
    margin-bottom: 8px; /* Add some space between list items */
}

.result-box p {
    margin: 0 0 10px 0;
    text-align: left; /* Left-align text in result box paragraphs */
}

.investment-calculator h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #fff;
}

.investment-calculator form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding: 25px;
    margin: 0 !important;
    background-color: #c18b31;
    border-radius: 8px;
}

.investment-calculator label {
    display: block;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 500;
    border-color: #000000 !important;
}

.investment-calculator input[type="number"],
.investment-calculator select {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    color: #000; /* Set input and select text color to #000 */
}

.investment-calculator button {
    padding: 8px;
    margin: 5px 0 0 0;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.investment-calculator button:hover {
    background-color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .investment-calculator-container {
        flex-direction: column;
    }

    .investment-calculator,
    .result-box {
        width: 100%; /* Full width on mobile */
        margin-right: 0;
        height: auto; /* Remove fixed height on mobile */
    }

    .result-box {
        margin-top: 20px;
    }

    /* Remove these rules as they're now redundant */
    /* .result-box {
        background-color: #fff;
        color: #000;
    }

    .result-box.populated {
        background-color: #007549;
        color: #fff;
    } */
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px; /* Adjust track height */
    background: #000; /* Change track color to black */
    border-radius: 5px;
    outline: none;
    margin: 5px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px; /* Increase thumb width */
    height: 24px; /* Increase thumb height */
    background: #fff; /* Thumb color */
    border: 2px solid #000; /* Thumb border */
    border-radius: 50%;
    cursor: pointer;
    /* Remove transform and use box-shadow for better alignment */
    box-shadow: 0 0 0 2px #000;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
    /* Remove transform and use box-shadow for better alignment */
    box-shadow: 0 0 0 2px #000;
}

/* Optional: Remove default focus outline */
input[type="range"]:focus {
    outline: none;
}

/* Optional: Add hover effect for better UX */
input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-moz-range-thumb:hover {
    background: #e0e0e0;
}

#investment_amount_display {
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 20px;
    margin: 0;
}

.form-group {
    flex: 1;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    background-color: #ff00c8;
    margin-top: 5px;
}

/* Remove background from labels but keep it for dropdowns */
.form-group label {
    background: transparent !important;
    padding: 0;
}

.form-group select {
    background-color: #fff;
    padding: 10px;
}
