.gmp-calc-wrap {
    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%);
}

.gmp-calc-wrap h2 {
    text-align: center;
    color: #333;
}

.gmp-calc-wrap .calculator {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.gmp-calc-wrap .left,
.gmp-calc-wrap .right {
    width: 30%;
}

.gmp-calc-wrap .chart-container {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gmp-calc-wrap canvas {
    width: 200px;
    height: 200px;
}

.gmp-calc-wrap h3 {
    margin-bottom: 10px;
    color: #273158;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
}

.gmp-calc-wrap .left p {
    font-size: 20px;
    font-weight: bold;
    color: #2EB24C;
    font-family: "Nunito", sans-serif;
}

.gmp-calc-wrap .negative {
    color: #dc2626 !important;
}

.gmp-calc-wrap .left p.negative {
    color: #dc2626;
}

.gmp-calc-wrap label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-family: "Nunito", sans-serif;
}

.gmp-calc-wrap input[type="range"] {
    width: 100%;
}

.gmp-calc-wrap input[type="text"] {
    width: 40%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: lightblue;
}

.gmp-calc-wrap .total {
    text-align: center;
    margin-top: 20px;
}

.gmp-calc-wrap .total h3 {
    color: #273158;
}

.gmp-calc-wrap .total p {
    color: #2EB24C;
    font-family: "Nunito", sans-serif;
}

.gmp-calc-wrap .total p.negative {
    color: #dc2626;
}

/* Range slider styling - same look as the EMI calculator */
.gmp-calc-wrap input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.gmp-calc-wrap input[type="range"]:hover {
    opacity: 1;
}

.gmp-calc-wrap input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #273158 0%, #2EB24C 100%);
    border-radius: 5px;
}

.gmp-calc-wrap input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #273158 0%, #2EB24C 100%);
    border-radius: 5px;
}

.gmp-calc-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    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);
}

.gmp-calc-wrap 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);
}

@media (max-width: 732px) {
    .gmp-calc-wrap h1, .gmp-calc-wrap h2 {
        font-size: 24px;
    }
    .gmp-calc-wrap .calculator {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        flex-direction: column;
    }
    .gmp-calc-wrap .calculator .left {
        order: 2 !important;
    }
    .gmp-calc-wrap .calculator .left .results {
        display: flex;
        justify-content: space-between;
    }
    .gmp-calc-wrap .calculator .left .results h3 {
        font-size: 14px;
    }
    .gmp-calc-wrap .calculator .left .results p {
        font-size: 13px;
    }
    .gmp-calc-wrap .chart-container {
        order: 3 !important;
    }
    .gmp-calc-wrap .right {
        order: 1 !important;
    }
    .gmp-calc-wrap .left,
    .gmp-calc-wrap .right,
    .gmp-calc-wrap .chart-container {
        width: 100% !important;
    }
    .gmp-calc-wrap .total h3 {
        font-size: 20px;
    }
}
