/* General Reset */
* {
    margin: 10;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Main Container */
.calculator-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: auto;
    gap: 20px;
}

/* Form & Graph Columns */
.form-column {
    width: 45%;
}

.graph-column {
    width: 50%;
    text-align: center;
}

/* Section Titles */
h2 {
    text-align: left;
    color: #003b49;
    margin-bottom: 20px;
}

h3 {
    color: #003b49;
    margin-bottom: 10px;
}

/* Form Input Sections */
.input-section, .extra-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 7px;
}

/* Labels */
label {
    width: 50%;
    font-weight: bold;
    text-align: left;
}

/* Input Fields */
input, select {
    width: 48%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Results Section */
.results {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 5px;
}

.results p {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
    color:#FF8D48;
}

/* Chart Section */
.chart-section {
    text-align: center;
}

#repaymentChart {
    max-width: 100%;
    height: 400px;
}

/* Buttons */
.button-group {
    margin-top: 15px;
    text-align: center;
}

.button-group button {
    margin: 5px;
    padding: 8px 12px;
    background: #FF8D48;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button-group button:hover {
    background: #000000;
}

/* 📌 Mobile View: Stack Form Above & Chart Below */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
        align-items: center;
    }

    .form-column, .graph-column {
        width: 100%;
    }
}

/* Note Section */
.calculator-note {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #555;
}

.calculator-note {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    color: #555;
    max-width: 90%;
    margin: 20px auto;
}
