.calculator-container, .result-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* max-width: 400px; */
    box-sizing: border-box;
}

.calculator-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.default-values {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.default-values span {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.default-values span:hover {
    background-color: #e0e0e0;
}

button {
 
    padding: 10px;
    background-color: #273158;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}


.result h2 {
    color: #333;
}

#emiChart {
    margin-top: 20px;
}

#emi-details {
    margin-top: 20px;
    text-align: left;
    color: #555;
}
#emiChart{
height: 300px !important;
width: 300px !important;
}

#emi-details {
    background: #e9f9ff;
    padding: 30px;
}
/* Responsive design */
@media (min-width: 768px) {
    .container {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
    }
    
    .calculator-container, .result-container {
        /* width: 45%; */
    }
}

@media (max-width: 732px) {
    .calculator-container h1 {
        font-size: 24px;
    }
    
    .result h2 {
        font-size: 16px;
    }
    
    #emi-details {
        font-size: 14px;
    }
    .calculator {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        flex-direction: column;
    }
    .calculator .left{
        order: 2 !important;
    }
    .calculator .left .results{
        display: flex;
    justify-content: space-between;
    }
    .calculator .left .results h3 {
       
        font-size: 14px;
    }
    .calculator .left .results p{
font-size: 13px;
    }
    .chart-container{
        order: 3 !important;
    }
    .right{
        order: 1 !important;
    }
    .left, .right, .chart-container{
        width: 100% !important;
    }
    .total h3 {
        font-size: 20px;
    }
}




.form-v4-content{
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #f0fbfc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 45%);
}

h1, h2 {
    text-align: center;
    color: #333;
}

.calculator {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.left, .right {
    width: 30%;
}

.chart-container {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    width: 200px;
    height: 200px;
}

h3 {
    margin-bottom: 10px;
    color: #273158;
    font-weight: 700;
    font-family: sans-serif;
}

.calc-label {
	font-size: 1.50rem;
    margin-bottom: 10px;
    color: #273158;
    font-weight: 700;
    font-family: sans-serif;
}

.left p {
    font-size: 20px;
    font-weight: bold;
    color: #2EB24C;
    font-family: "Nunito",sans-serif;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-family: "Nunito",sans-serif;
}

input[type="range"] {
    width: 100%;
}

input[type="text"] {
    width: 40%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #add8e67a;
}

.total {
    text-align: center;
    margin-top: 20px;
}

.total h3 {
    /* color: #273158; */
    color: #273158;
}
.total p{
    color: #2EB24C;
    font-family: "Nunito",sans-serif;
}
/* Common styles for all browsers */
input[type="range"] {
    -webkit-appearance: none; /* Override default style */
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1; /* Add hover effect */
}

/* Track (background) */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #273158 0%, #2EB24C 100%); /* Track color (gradient from blue to green) */
    border-radius: 5px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #273158 0%, #2EB24C 100%);
    border-radius: 5px;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent; /* Hides the track so we can style it */
    border-color: transparent;
    color: transparent;
}

/* Thumb (the draggable circle) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2EB24C; /* Thumb color (green) */
    cursor: pointer;
    border: 2px solid #fff; /* Optional border around the thumb */
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for thumb */
}

input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2EB24C;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-ms-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2EB24C;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.page-content {
   
    background: #ffffff;
}