:root {
    --options: 4;
}

.total-price {
    position: absolute;
    display: flex;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.total-price-ab {
    font-size: 24px;
    font-family: 'Quicksand';
}

.total-price-value {
    font-size: 64px;
    font-family: 'Montserrat';
}

.option-button:nth-child(5) {
    left: calc(100% / var(--options) * 2);
    transform: scale(1);
}

.option-button:nth-child(7) {
    left: calc(100% / var(--options) * 3);
    transform: scale(1);
}

.option-button:nth-child(9) {
    left: 0;
    top: 200%;
}

.option-button:nth-child(11) {
    top: 200%;
    left: calc(100% / var(--options) * 3);
}

.option-button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: calc(100% / var(--options));
    border-radius: 50%;
    border: 3px solid #3cc7ad;
    width: 60px;
    height: 60px;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    transition: 200ms ease-in-out;
    color: #3cc7ad;
}

.option-button:nth-child(3) {
    transform: scale(1);
}

.option-button-visible {
    transform: scale(1);
}

.option-button:hover {
    transform: scale(1.08);
}

.option-button:active {
    transform: scale(0.9);
}

.option-button img {
    width: 45px;
    height: 45px;
    filter: invert(62%) sepia(33%) saturate(734%) hue-rotate(119deg) brightness(101%) contrast(91%);
    animation: buttonAnim 200ms ease-in-out forwards;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.option-button-selected {
    background-color: #3cc7ad;
}

.option-button-selected img {
    filter: invert(1);
    animation: buttonAnim 200ms ease-in-out forwards;
}

.price-options {
    display: flex;
    align-items: center;
    position: absolute;
    overflow: visible;
    left: 52%;
    top: 55%;
    transform: translateX(-50%);
    height: 80px;
    width: 100%;
}

.option-name {
    position: absolute;
    top: 100%;
    font-size: 14px;
    text-align: center;
    left: calc(100% / var(--options));
    transition: 200ms ease-in-out;
    transform: scale(0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.option-name:nth-child(4) {
    transform: scale(1);
}

.option-name:nth-child(6) {
    left: calc(100% / var(--options) * 2);
    transform: scale(1);
}

.option-name:nth-child(8) {
    left: calc(100% / var(--options) * 3 - 5px);
    transform: scale(1);
}

.option-name:nth-child(10) {
    left: 0;
    top: 290%;
}

.option-name:nth-child(12) {
    left: calc(100% / var(--options) * 3 + 15px);
    top: 290%;
}

.option-name-visible {
    transform: scale(1);
}

.gender-button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #3cc7ad;
    width: 60px;
    height: 60px;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: 200ms ease-in-out;
}

.gender-name {
    position: absolute;
    top: 100%;
    font-size: 14px;
    left: 4%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gender-button:hover {
    transform: scale(1.08);
}

.gender-button:active {
    transform: scale(0.9);
}

.gender-button img {
    position: absolute;
    width: 40px;
    height: 40px;
    filter: invert(62%) sepia(33%) saturate(734%) hue-rotate(119deg) brightness(101%) contrast(91%);
    transition: transform 200ms ease-in-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.gender-button-selected {
    transition: 500ms;
}

.gender-button img:first-child {
    transform: scale(1);
}

.gender-button img:last-child {
    transform: scale(0);
}

.gender-button-selected img:first-child {
    transform: scale(0);
}

.gender-button-selected img:last-child {
    transform: scale(1);
}

.range {
    position: absolute;
    display: grid;
    left: 50%;
    top: 46%;
    place-items: center;
    text-align: center;
    height: 80px;
    width: 380px;
    background: #fff;
    border-radius: 10px;
    transform: translate(-50%, -50%);
    padding: 0 65px 0 45px;
    overflow: visible;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.2);
}

.range-name {
    position: absolute;
    left: 50%;
    top: 53%;
    transform: translateX(-50%);
}

.range-name span {
    font-family: Quicksand;
}

.range .sliderValue {
    position: absolute;
}

.range .sliderValue span {
    overflow: visible;
    position: fixed;
    height: 45px;
    width: 45px;
    color: #fff;
    font-weight: 500;
    top: -40px;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom;
    transition: transform 0.3s ease-in-out;
    line-height: 55px;
    z-index: 2;
}

.range .sliderValue span.show {
    transform: translateX(-50%) scale(1);
}

.range .sliderValue span:after {
    content: '';
    overflow: visible;
    position: fixed;
    height: 45px;
    width: 45px;
    left: 50%;
    background: #3cc7ad;
    transform: translateX(-50%) rotate(45deg);
    border: 3px solid #000;
    z-index: -1;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.range .field {
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 50%;
}

.range .field .value.left {
    left: -22px;
}

.range .field .value.right {
    right: -70px;
}

.range .field .value {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #3cc7ad;
}

.range .field input {
    -webkit-appearance: none;
    overflow: visible;
    height: 3px;
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    border: none;
}

.range .field input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: #3cc7ad;
    border-radius: 50%;
    border: 1px solid #3cc7ad;
    cursor: pointer;
}

.range .field input::-moz-range-progress {
    background: #3cc7ad;
}

.fees {
    overflow: hidden;
    background-color: #fff;
    position: absolute;
    display: flex;
    top: 185vh;
    width: 100%;
    height: 70vh;
    left: 50%;
    transform: translateX(-50%) scale(1);
    box-shadow: 0px 0px 50px 15px rgba(0,0,0,0.3);
    transition: 500ms;
}

.fees:hover {
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0px 0px 50px 15px #000;
    border-radius: 25px;
}

.fees-title {
    position: absolute;
    font-size: 64px;
    left: 50%;
    top: 25%;
    font-family: 'Quicksand';
    transform: translateX(-50%);
    z-index: -1;
    transition: 2000ms cubic-bezier(0.37, 0.68, 0.28, 0.91);
}

.fees-bg {
    width: 100%;
    height: 25%;
    object-fit: cover;
}

@media (max-height: 740px) {
    .fees-title {
        top: 15%;
        font-size: 50px;
    }

    .fees-bg {
        height: 15%;
    }

    .range {
        height: 40px;
        top: 38%;
    }

    .range-name {
        top: 44%;
    }

    .price-options {
        top: 48%;
    }

    .total-price {
        bottom: -10px;
    }

    .total-price-value {
        font-size: 50px;
    }

    .option-name {
        font-size: 12px;
    }
}

@media (min-width:720px) {
    :root {
        --options: 3;
    }

    .price-options {
        width: 60%;
        left: 45%;
    }
}

@media (min-width:1080px) {
    .price-options {
        width: 40%;
        left: 47%;
    }
}

@media (min-width:1600px) {
    .price-options {
        width: 30%;
        left: 47%;
    }
}