.treatment_calculator {
    padding: 80px 0;
}

.treatment-calc {
    width: 100%;
    max-width: 920px;
    background-color: #E4EFE6;
    border-radius: 30px;
    border-bottom-right-radius: 0;
    padding: 60px;
    margin: 0 auto;
    display: block;
    position: relative;
}

.treatment-calc__heading {
    text-align: center;
    margin: 0 0 30px;
    font-size: 30px;
}

.treatment-calc__main {
    margin: 0 0 60px;
}

.treatment-calc__form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.treatment-calc__form .field-group {
    height: 78px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    border: 2px solid #fff;
}

.treatment-calc__form .field-group--50 {
    width: calc(50% - 10px);
}

.treatment-calc__form .field-group label {
    display: flex;
    align-items: center;
    width: 280px;
    flex-shrink: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, .4);
    color: #0F302A;
    font-size: 20px;
    padding: 0 20px 0 30px;
    gap: 5px;
}

.treatment-calc__form .field-group input {
    flex-shrink: 1;
    width: 100%;
    line-height: 74px;
    padding: 10px 20px 10px 50px;
    font-size: 30px;
    color: #0F302A;
    border-radius: 10px;
}

.treatment-calc__form .field-group label + input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.treatment-calc__form .field-group input:focus {
    outline: 2px solid #BBDB6E;
    outline-offset: -2px;
}

.treatment-calc__form .field-group--50 input {
    font-size: 18px;
    padding-left: 30px;
}

.treatment-calc__form .field-group .tooltip {
    display: inline-block;
    height: 30px;
    width: 30px;
    background-image: url("/wp-content/themes/fieldernutrition/assets/icon--tooltip.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.treatment-calc__form .field-group .tooltip:hover .tooltip__popup,
.treatment-calc__form .field-group .tooltip:focus .tooltip__popup,
.treatment-calc__form .field-group .tooltip:focus-within .tooltip__popup {
    opacity: 1;
    pointer-events: initial;
}

.treatment-calc__form .field-group .tooltip__popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0px 15px 22px 0px rgba(0, 0, 0, .3);
    width: 250px;
    height: auto;
    padding: 10px 20px;
    color: #fff;
    background-color: #0F302A;
    opacity: 0;
    pointer-events: none;
    transition: .3s all;
    font-size: 14px;
    margin-bottom: 10px;
}

.treatment-calc__form .field-group .tooltip__popup:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 24px;
}

.treatment-calc__form .field-group .tooltip__popup:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: 30px;
    height: 30px;
    transform: translate(-50%, 50%) rotate(-45deg);
    z-index: -1;
    background-color: #0F302A;

}

.treatment-calc__form .field-group .tooltip__popup a {
    color: #83BE42;
    text-decoration: underline;
}

.treatment-calc__results {
    flex-direction: column;
    align-items: center;
    margin: -10px 0 20px;
    opacity: 0;
    display: none;
    visibility: hidden;
    transition: .5s all;
}

.treatment-calc__results.active {
    opacity: 1;
    display: flex;
    visibility: visible;
}

.treatment-calc__results__group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 0;
    margin: 0 0 40px;
}

.treatment-calc__results__group__item {
    width: 33.333%;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(15, 48, 42, 0.15);
}

.treatment-calc__results__group__item:nth-child(1) {
    border-left: 1px solid rgba(15, 48, 42, 0.15);
}

.treatment-calc__results__group__item--highlight {
    width: 40%;
    border-radius: 10px;
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, .4);
    padding: 20px 30px;
}

.treatment-calc__results__group__item h3 {
    font-size: 50px;
    font-weight: 700;
    margin: 0 0 10px;
}

.treatment-calc__results__group__item h3 small {
    font-size: .5em;
    margin-left: 2px;
}

.treatment-calc__results__group__item p {
    margin: 0;
    font-size: 16px;
}

.treatment-calc__results__group__item p strong {
    font-weight: inherit;
    font-size: 22px;
    display: block;
}

.treatment-calc__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.treatment-calc__footer .btn {
    width: 100%;
    color: #83BE42;
    display: none;
    visibility: none;
}

.treatment-calc__footer .btn:hover,
.treatment-calc__footer .btn:focus {
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    color: #fff;
}

.treatment-calc__footer .btn.active {
    display: block;
    visibility: visible;
}

@media (max-width: 639px) {

    .treatment_calculator {
        padding: 65px 0;
    }

    .treatment-calc {
        padding: 40px 30px 60px;
    }

    .treatment-calc__main {
        margin: 0 0 30px;
    }

    .treatment-calc__heading {
        font-size: 20px;
        margin: 0 0 20px;
    }

    .treatment-calc__form {
        gap: 10px;
    }

    .treatment-calc__form .field-group {
        height: 42px;
    }

    .treatment-calc__form .field-group--50 {
        width: 100%;
    }

    .treatment-calc__form .field-group label {
        width: 50%;
        background-color: rgba(255, 255, 255, .4);
        font-size: 14px;
        padding: 0 15px;
        gap: 5px;
    }

    .treatment-calc__form .field-group input {
        line-height: 38px;
        padding: 0 15px;
        font-size: 14px;
    }

    .treatment-calc__form .field-group label + input {
        font-size: 18px;
    }

    .treatment-calc__results__group {
        gap: 0;
        margin: 0 0 30px;
    }

    .treatment-calc__results__group__item {
        width: 100%;
        padding: 15px 0;
        text-align: left;
        border: none;
        border-top: 1px solid rgba(15, 48, 42, 0.15);
    }

    .treatment-calc__results__group__item:nth-child(1) {
        border-left: 0;
    }

    .treatment-calc__results__group__item h3 {
        font-size: 40px;
    }

    .treatment-calc__results__group__item p {
        font-size: 16px;
    }

    .treatment-calc__results__group__item p strong {
        font-size: 16px;
        font-weight: 700;
        display: initial;
    }

    .treatment-calc__results__group__item--highlight {
        width: auto;
        padding: 15px;
        margin-top: 20px;
        text-align: center;
        border: 1px solid #fff;
    }
}

@media (max-width: 420px) {

    .treatment_calculator {
        padding: 30px 0;
    }

    .treatment-calc {
        padding: 30px 20px 60px;
    }

    .treatment-calc__form .field-group label {
        padding: 0 10px;
        width: 62%;
    }

    .treatment-calc__form .field-group input {
        padding: 0 10px;
    }
}