.calculator-holder {
    padding: 80px 0;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    justify-content: space-between;
}

.col_calculator {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.calculator-holder .dosage_range_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.calculator-holder .dosage_range_container label {
    width: 100%;
    color: #333;
    font-weight: bold;
}


.calulator-inputs, .partial_results {
    width: 100%;
    max-width: 660px;
    padding:  60px 20px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-primary);
    position: relative;
}

.calulator-inputs .step_title, .partial_results .step_title {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-primary);
    position: absolute;
    top: -15px;
    left: -20px;
    background-color: var(--color-bg-primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: flex-start;
}

.calulator-inputs form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}

.rangeWrap {
    width: 100%;
}

.rangeWrap h1,
.rangeWrap h2,
.rangeWrap h3,
.rangeWrap h4,
.rangeWrap h5,
.rangeWrap h6 {
    margin: 0;
}

.rangeWrap h1 {
    color: #333;
    font-weight: 500;
}

.rangeWrap h3 {
    color: #aaa;
    font-weight: 500;
}

.rangeWrap h4 {
    color: #999;
    font-weight: 500;
}

.rangeWrap input[type=range] {
    outline: 0;
    border: 0;
    border-radius: 500px;
    width: 100%;
    max-width: 100%;
    transition: box-shadow 0.2s ease-in-out;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .rangeWrap input[type=range] {
        overflow: hidden;
        height: 20px;
        -webkit-appearance: none;
        background-color: #ddd;
        -webkit-box-shadow: inset 1px 1px 3px 0px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: inset 1px 1px 3px 0px rgba(0, 0, 0, 0.75);
        box-shadow: inset 1px 1px 3px 0px rgba(0, 0, 0, 0.75);
    }

    .rangeWrap input[type=range]::-webkit-slider-runnable-track {
        height: 20px;
        -webkit-appearance: none;
        color: #444;
        -webkit-transition: box-shadow 0.2s ease-in-out;
        transition: box-shadow 0.2s ease-in-out;
    }

    .rangeWrap input[type=range]::-webkit-slider-thumb {
        width: 20px;
        -webkit-appearance: none;
        height: 20px;
        cursor: ew-resize;
        background: #fff;
        box-shadow: -340px 0 0 320px #1597ff, inset 0 0 0 40px #1597ff;
        border-radius: 0 50% 50% 0;
        -webkit-transition: box-shadow 0.2s ease-in-out;
        transition: box-shadow 0.2s ease-in-out;
        position: relative;
    }

    .rangeWrap input[type=range]:active::-webkit-slider-thumb {
        background: #fff;
        border-radius: 50%;
        box-shadow: -340px 0 0 330px #1597ff, inset 0 0 0 3px #1597ff;
    }
}

.rangeWrap input[type=range]::-moz-range-progress {
    background-color: #43e5f7;

}

.rangeWrap input[type=range]::-moz-range-track {
    background-color: #9a905d;
}

.rangeWrap input[type=range]::-ms-fill-lower {
    background-color: #43e5f7;
}

.rangeWrap input[type=range]::-ms-fill-upper {
    background-color: #9a905d;
}

.h4-container {
    width: 400px;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.h4-container .h4-subcontainer {
    width: 100%;
    position: relative;
}

.h4-container .h4-subcontainer h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    color: #fff !important;
    font-size: 12px;
    transform-origin: center -10px;
    transform: translateX(-50%);
    transition: margin-top 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.h4-container .h4-subcontainer h4 span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #1597ff;
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    z-index: -1;
}

input:not(:active)+.h4-container h4 {
    opacity: 0;
    margin-top: -50px;
    pointer-events: none;
}

.input_number {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 277px;
}

.input_number .btn_minus {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff;
    border: 0 none;
    border-radius: 50%;
}

.input_number .btn_plus {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #fff;
    border: 0 none;
    border-radius: 50%;
}

.input_number input {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #757575;
    outline: none;
}

.input_inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.input_inline label {
    width: 100%;
    color: #333;
    font-weight: bold;
}

.input_inline select {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #757575;
    outline: none;
    width: 100%;
    max-width: 277px;
}

.result_grid {
    display: flex;
    flex-direction: column;
}

.result_grid .result_item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 16px 10px;
    border-bottom: 1px solid #ccc;
}

.result_grid .result_item .result_value {
    text-align: right;
    font-weight: bolder;
    color: var(--color-primary);
}

.result_grid .result_item:nth-child(2n) {
    background-color: rgba(0,0,0,.05);
}

@media screen and (max-width: 768px) {
    .calculator-holder {
        flex-direction: column;
    }
    .calulator-inputs .step_title, .partial_results .step_title {
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}