.calculator-sp {
    .calculator-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        flex-wrap: wrap;
        margin-top: 40px;

        .calculator-left {
            display: flex;
            flex-direction: column;
            gap: 20px;
            .field {
                label {
                    display: block;
                    font-size: 22px;
                    font-weight: 600;
                    margin-bottom: 8px;
                }

                input[type="range"] {
                    width: 100%;
                    appearance: none;
                    height: 8px;
                    background: transparent;
                    border-radius: 4px;
                    outline: none;
                    position: relative;

                    &::-webkit-slider-runnable-track {
                        height: 8px;
                        background: #f49577;
                        border-radius: 4px;
                    }
                    &::-webkit-slider-thumb {
                        -webkit-appearance: none;
                        height: 20px;
                        width: 20px;
                        background-color: white;
                        border: 4px solid #f44336;
                        border-radius: 50%;
                        margin-top: -6px; /* Align thumb with track */
                        cursor: pointer;
                        position: relative;
                        z-index: 2;
                    }
                    &::-moz-range-track {
                        height: 8px;
                        background: #f443361a;
                        border-radius: 4px;
                    }

                    &::-moz-range-progress {
                        height: 8px;
                        background: #f44336;
                        border-radius: 4px;
                    }

                    &::-moz-range-thumb {
                        height: 20px;
                        width: 20px;
                        background-color: white;
                        border: 4px solid #f44336;
                        border-radius: 50%;
                        cursor: pointer;
                    }

                    &::-ms-fill-lower {
                        background: #f44336;
                    }

                    &::-ms-fill-upper {
                        background: #f443361a;
                    }

                    &::-ms-thumb {
                        height: 20px;
                        width: 20px;
                        background-color: white;
                        border: 4px solid #f44336;
                        border-radius: 50%;
                    }
                }

                .range-labels {
                    display: flex;
                    justify-content: space-between;
                    font-size: 14px;
                    margin-top: 5px;

                    span {
                        color: #767676;

                        &.active {
                            color: var(--secondary);
                        }
                    }
                }

                select {
                    width: 100%;
                    padding: 10px;
                    border: 1px solid var(--border);
                    border-radius: 10px;
                    font-size: 18px;
                    height: 70px;
                    appearance: none; 
                    -webkit-appearance: none;
                    -moz-appearance: none;
                    position: relative;
                    background-image: url(../../../public/images/arrow-orange.svg);
                    background-repeat: no-repeat;
                    background-position: right 16px center;
                    background-size: 16px;
                    cursor: pointer;

                    &:focus-visible {
                        outline: none;
                    }

                    // &::before {
                    //     content: "›";
                    //     position: absolute;
                    //     top: 50%;
                    //     right: 20px;
                    //     font-size: 15px;
                    //     font-weight: 700;
                    // }
                }
            }
        }

        .calculator-right {
            background: var(--third);
            padding: 24px;
            border-radius: 16px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            .right-title {
                font-size: 36px;
                font-weight: 700;
                color: var(--primary);
                text-align: center;
            }

            .score-ring {
                position: relative;
                width: 220px;
                height: 220px;
                margin: 0 auto;

                svg {
                    position: absolute;
                    top: 0;
                    left: 0;

                    .circle-1{
                        opacity: 0.3;
                    }
                }

                .score-text {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    text-align: center;

                    .score-value {
                        font-size: 36px;
                        font-weight: bold;
                        color: #1b1b1b;
                        line-height: 0.8;
                    }
                }
            }

            .score-label {
                margin-top: 24px;
                font-size: 24px;
                background-color: var(--white);
                border-radius: 7px;
                max-width: 400px;
                margin-inline: auto;
                padding: 10px 36px;
            }
        }
    }
}

@media only screen and (max-width: 991px) {
    .calculator-sp {
        .calculator-titles {
            grid-template-columns: repeat(1, 1fr);
            gap: 10px;
        }
        .calculator-wrap {
            grid-template-columns: repeat(1, 1fr);
            gap: 40px;

            .calculator-left {
                flex-direction: column;
                gap: 20px;
                .field {
                    label {
                        font-size: 18px;
                        margin-bottom: 3px;
                    }

                    select {
                        font-size: 16px;
                        height: 50px;
                        margin-top: 10px;
                    }
                }
            }

            .calculator-right {
                gap: 20px;

                .right-title {
                    font-size: 26px;
                }

                .score-label {
                    margin-top: 0px;
                    font-size: 20px;
                }
            }
        }
    }
}

@media only screen and (max-width: 350px) {
    .calculator-sp {
        .calculator-wrap {
            .calculator-left {
                display: flex;
                flex-direction: column;
                gap: 30px;
                .field {
                    .range-labels {
                        font-size: 10px;
                    }
                }

                .cta {
                    font-size: 12px;
                    padding: 10px;
                }
            }

            .calculator-right {
                .right-title {
                    font-size: 24px;
                    font-weight: 700;
                    color: var(--primary);
                    text-align: center;
                }

                .score-label {
                    font-size: 18px;
                }
            }
        }
    }
}
