#peptide-calculator-container {
    display: grid;
    gap: 56px;
    @media (max-width: 768.9px) {
        gap: 15px;
    }
}

.peptide-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    @media (max-width: 1080px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (max-width: 768.9px) {
        gap: 15px;
        grid-template-columns: 1fr;
    }
}

.peptide-form-group {
    background: #ECF8F9;
    padding: 39px 15px 20px;
    border-radius: 15px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 25px;
    justify-content: center;
    @media (max-width: 768.9px) {
        padding: 20px 10px;
        gap: 16px;
        grid-template-rows: unset;
    }
}

.peptide-form-group--top {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    justify-content: center;
    height: fit-content;
    @media (max-width: 768.9px) {
        gap: 16px;
        grid-template-rows: auto auto;
    }
}

.peptide-form-group--bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
    @media (max-width: 768.9px) {
        gap: 10px;
        margin-top: 0;
    }
}

.peptide-form-group label {
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    display: flex;
    max-width: 300px;
    gap: 2px;
    flex-direction: column;
    @media (max-width: 768.9px) {
        font-size: 16px;
    }
}

.peptide-form-group label span {
    font-style: italic;
}


.peptide-form-group--options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.peptide-form-group--options label {
    position: relative;
    border: 1px solid #00485680;
    background: #FFFFFF4D;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    padding: 0 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.9px;
    transition: all 0.3s ease-in-out;
}

.peptide-form-group--options label:has(input:checked) {
    background: #004856;
    color: #FFFFFF;
}

.peptide-form-group--options label input {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.peptide-form-group .other {
    display: flex;
    gap: 4px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    flex-direction: revert;
    justify-content: center;
}

.peptide-form-group .other input {
    background: white;
    border: 0;
    border-bottom: 1px solid #004856;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 1px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 53px;
}

.peptide-form-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background: #639CA1;
    border-radius: 30px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 0;
    width: 94px;
    margin: auto;
}

.peptide-form-group button:hover {
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .6);
}

/* Results */

.peptide-results {
    background: var(--wp--preset--color--midnight-green);
    border-radius: 15px;
    padding: 38px 16px;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    @media (max-width: 768.9px) {
        padding: 20px 17px;
    }
}

.peptide-results h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 0 27px;
    text-align: center;
    @media (max-width: 768.9px) {
        font-size: 14px;
        margin: 0 0 16px;
    }
}

.peptide-results p {
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0 0 20px;
    @media (max-width: 768.9px) {
        font-size: 14px;
        margin: 0 0 16px;
    }
}

.peptide-results p span {
    color: #A8D8DC;
    text-decoration: underline;
    font-weight: 500;
}

.peptide-results--bottom {
    display: flex;
    justify-content: center;
    gap: 47px;
    @media (max-width: 768.9px) {
        gap: 42px;
    }
}

.peptide-result--bottom_item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    @media (max-width: 768.9px) {
        gap: 10px;
    }
}

.peptide-result--bottom_item p {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    @media (max-width: 768.9px) {
        font-size: 14px;
    }
}

.peptide-result--bottom_item span {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    color: #A8D8DC;
    @media (max-width: 768.9px) {
        font-size: 14px;
    }
}

.peptide-results--progress {
    position: relative;
    /*padding-left: 10px;*/
    /*padding-right: 10px;*/
    background-color: #f0f0f0;
    border-radius: 5px;
    max-width: 774px;
    margin: 0 auto 38px;
    width: 100%;
}

.peptide-results--progress img {
    position: absolute;
    top: -14px;
    left: 10px;
    transition: left 0.3s ease-in-out;
    z-index: 3;
    @media (max-width: 768.9px) {
        top: -10px;
    }
}

.peptide-results--parent-bar {
    border-radius: 5px;
    overflow: hidden;
    /*margin-left: -10px;*/
    /*margin-right: -10px;*/
}

.peptide-results--bar {
    height: 53px;
    position: relative;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    @media (max-width: 768.9px) {
        height: 42px;
    }
}

.peptide-results--bar::before {
    content: '';
    display: block;
    height: 100%;
    width: var(--syringe-fill-width, 0%);
    background-color: #639CA1;
    transition: width 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

}

.peptide-results--bar::after {
    content: '';
    position: absolute;
    top: 0;
    /*left: 10px;*/
    /*width: calc(100% - 20px);*/
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: url("/wp-content/plugins/peptide-calculator/assets/img/Isolation_Mode.svg") no-repeat center center;
    @media (max-width: 850px) {
        background: url("/wp-content/plugins/peptide-calculator/assets/img/Isolation_Mode_mobile.svg") no-repeat center center;
        background-size: 100%;
        background-position: 50% 80%;
    }
}


.syringe-labels {
    position: absolute;
    bottom: -8px;
    /*left: 10px;*/
    /*width: calc(100% - 20px);*/
    width: 100%;
    font-weight: 400;
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: nowrap;
    @media (max-width: 768.9px) {
        bottom: -2px;
    }
}

.syringe-labels span {
    position: absolute;
    transform: translateX(-50%);
}

.syringe-labels span:nth-child(1) {
    left: 0%;
    transform: translateX(0%);
}

.syringe-labels span:nth-child(2) {
    left: 10%;
}

.syringe-labels span:nth-child(3) {
    left: 20%;
}

.syringe-labels span:nth-child(4) {
    left: 30%;
}

.syringe-labels span:nth-child(5) {
    left: 40%;
}

.syringe-labels span:nth-child(6) {
    left: 50%;
}

.syringe-labels span:nth-child(7) {
    left: 60%;
}

.syringe-labels span:nth-child(8) {
    left: 70%;
}

.syringe-labels span:nth-child(9) {
    left: 80%;
}

.syringe-labels span:nth-child(10) {
    left: 90%;
}

.syringe-labels span:nth-child(11) {
    left: 100%;
    transform: translateX(-100%);
}

.dosage-info {
    display: none;
    @media (max-width: 768.9px) {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        border-radius: 30px;
        background: #FFFFFF4D;
        font-weight: 700;
        font-size: 14px;
        line-height: 0;
        letter-spacing: 1px;
        color: white;
        max-width: 227px;
        border: 0;
        transition: all 0.3s ease;
        margin: 0 auto;
        width: 100%;
    }
}
.dosage-info:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}