/* General calculator wrapper styles */
.credit-calculator-wrapper {
    max-width: 600px; /* Max width as requested */
    margin: 0 auto 20px 0; /* Align left, with some bottom margin */
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Section styling */
.calculator-section {
    margin-bottom: 20px;
}

/* Input fields layout */
.calculator-section.input-fields > div {
    margin-bottom: 15px;
}

.calculator-section.input-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

.credit-calculator-wrapper input[type="number"],
.credit-calculator-wrapper input[type="range"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.credit-calculator-wrapper input[type="number"] {
    margin-bottom: 10px; /* Space between number input and range slider */
    font-size: 1em;
}

/* Radio button group */
.radio-group {
    display: flex; /* Arrange radio buttons horizontally */
    justify-content: flex-start; /* Align to start */
    gap: 20px; /* Space between radio buttons */
    margin-top: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal; /* Override bold from general label style */
    font-size: 1em;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto; /* Reset width for radio buttons */
    margin-right: 8px;
    vertical-align: middle;
}

/* Results section */
.calculator-section.results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0693e3; /* Vivid Cyan Blue from your theme palette */
    font-size: 1.3em;
}

.calculator-section.results > div > div {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.calculator-section.results span {
    font-weight: bold;
    color: #32373c; /* A darker color for emphasis */
}

/* Button styling */
.credit-calculator-wrapper button {
    display: block; /* Make button take full width */
    width: 100%;
    padding: 12px 15px;
    background-color: #9BC232; /* Green from your theme */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Space above button */
}

.credit-calculator-wrapper button:hover {
    background-color: #799a27; /* Darker green on hover */
}

/* Schedule table */
.schedule-table-container {
    margin-top: 25px;
}

.schedule-table-container h4 {
    margin-bottom: 15px;
    color: #0693e3; /* Vivid Cyan Blue */
    font-size: 1.2em;
}

.schedule-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
}

.schedule-table-container th,
.schedule-table-container td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.95em;
}

.schedule-table-container th {
    background-color: #eceeed; /* Light background from your theme */
    font-weight: bold;
    color: #32373c;
}

/* Responsive table for smaller screens */
.table-responsive {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
    -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS */
}

@

/** START OLD CALC **/
.calculator-card {
            max-width: 600px;
            margin: 2rem auto;
            background-color: #ffffff;
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .range-slider-container {
            position: relative;
            height: 24px;
        }
        .range-slider-container input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            background: #e0e7ff;
            outline: none;
            border-radius: 9999px;
            cursor: pointer;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        .range-slider-container input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #4f46e5;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 10;
        }
        .range-slider-container input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #4f46e5;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        #schedule_table_container {
            display: none;
        }
        .loan-type-label {
            transition: all 0.2s ease-in-out;
            cursor: pointer;
        }
        .loan-type-label:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .loan-type-input:checked + .loan-type-label {
            background-color: #eef2ff;
            border-color: #4f46e5;
            box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.2);
        }