/* =============================================
   GMP CALCULATOR - gmp-cal.css
   All layout styles scoped under .gmp-calculator-wrap
   to prevent affecting navbar, footer, and other pages.
   ============================================= */

.page-content {
    background: #fff;
}

.form-v4-content {
    width: 100%;
    margin: 0 auto;
    background-color: #f4fbfb;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    height: fit-content !important;
    min-height: auto !important;
}

/* ---- Calculator 3-column layout ---- */
.gmp-calculator-wrap .calculator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gmp-calculator-wrap .left,
.gmp-calculator-wrap .right {
    flex: 1;
    min-width: 200px;
}

.gmp-calculator-wrap .chart-container {
    flex: 1.2;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Canvas / Doughnut Chart ---- */
.gmp-calculator-wrap .chart-container canvas {
    width: 250px !important;
    height: 250px !important;
}

/* ---- Left: Result labels ---- */
.gmp-calculator-wrap .left .results h3 {
    margin-bottom: 4px;
    color: #273158;
    font-weight: 700;
    font-size: 15px;
    font-family: "Nunito", sans-serif;
}

.gmp-calculator-wrap .left .results p {
    font-size: 22px;
    font-weight: bold;
    color: #2EB24C;
    font-family: "Nunito", sans-serif;
    margin-bottom: 18px;
    margin-top: 0;
}

/* ---- Center: Chart heading ---- */
.gmp-calculator-wrap .chart-container h3 {
    margin-bottom: 10px;
    color: #273158;
    font-weight: 700;
    font-size: 15px;
    font-family: "Nunito", sans-serif;
}

/* ---- Right: Input labels ---- */
.gmp-calculator-wrap .right label {
    display: block;
    margin-bottom: 5px;
    color: #273158;
    font-size: 15px;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
}

/* ---- Range sliders ---- */
.gmp-calculator-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-calculator-wrap input[type="range"]:hover {
    opacity: 1;
}

.gmp-calculator-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-calculator-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-calculator-wrap input[type="range"]::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.gmp-calculator-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #2EB24C;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    margin-top: -5px;
}

.gmp-calculator-wrap input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #2EB24C;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

.gmp-calculator-wrap input[type="range"]::-ms-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #2EB24C;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
}

/* ---- Text value inputs ---- */
.gmp-calculator-wrap input[type="text"] {
    width: 100%;
    max-width: 140px;
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 24px;
    border: none;
    border-radius: 6px;
    background-color: rgba(173, 216, 230, 0.45);
    font-weight: 600;
    color: #333;
    font-size: 15px;
    font-family: "Nunito", sans-serif;
}

/* ---- Estimated Listing Price total row ---- */
.gmp-calculator-wrap .total {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0f0f5;
}

.gmp-calculator-wrap .total h3 {
    color: #273158;
    font-size: 18px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    margin-bottom: 6px;
}

.gmp-calculator-wrap .total p.listing-price {
    font-size: 26px;
    font-weight: bold;
    color: #2EB24C;
    font-family: "Nunito", sans-serif;
    margin-bottom: 8px;
}

.gmp-calculator-wrap .total p.disclaimer {
    font-size: 12px;
    font-weight: normal;
    color: #888;
}

/* ---- Responsive: mobile stacking ---- */
@media (max-width: 768px) {
    .form-v4-content {
        padding: 20px 16px;
    }

    .gmp-calculator-wrap .calculator {
        flex-direction: column;
        gap: 10px;
    }

    .gmp-calculator-wrap .right {
        order: 1;
        width: 100%;
        min-width: 100%;
    }

    .gmp-calculator-wrap .chart-container {
        order: 2;
        width: 100%;
        min-width: 100%;
    }

    .gmp-calculator-wrap .left {
        order: 3;
        width: 100%;
        min-width: 100%;
    }

    .gmp-calculator-wrap .left .results {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gmp-calculator-wrap .left .results h3 {
        font-size: 13px;
    }

    .gmp-calculator-wrap .left .results p {
        font-size: 16px;
        margin-bottom: 0;
    }

    .gmp-calculator-wrap .chart-container canvas {
        width: 200px !important;
        height: 200px !important;
    }
}
