:root {
    --main-color: #00abda;
    --step-size: 1.719em;
    --progress-position: 12px;
    --border-radius: 4px;
    --calc-blocks-gap: 1em;
    --form-width: 700px;
    --radio-size-dot: 0.65em;
    --radio-size: 1.15em;
    --form-control-color: #00abda;
    --selector-label-font-size: 12px;
    --form-label-font-size: 1em;
    --sku-font-size: 1.8rem;
    --disabled-font-color: #94a3b8;
    --disabled-background: #f1f5f9;
    --disabled-border-color: #e2e8f0;
    --step-card-background: #f0f4f8;
    --icon-size: 2em;
    /* medium sizes */
    --form-width-m: 600px;
    --step-size-m: 22px;

    /* small sizes */
    --form-width-s: 380px;
    --step-size-s: 18px;

}

.calc {
    display: flex;
    gap: 1em;
    font-size: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 3em;
    /*min-height: 100vh;*/
    /*min-width: 100vw;*/
    /*padding-bottom: 3em;*/
    flex-direction: column;
    /* https://grabient.com/HQdgLAbANKkwnPAzFAtABmAJnQRhruumpocRsGDiZVtBZGDOgKwsw4g1ZVA?style=linearGradient&steps=5&angle=45 */

    /*background: linear-gradient(45deg, rgba(142, 197, 252, 1.000) 0.000%, rgba(141, 211, 255, 1.000) 25.000%, rgba(161, 216, 255, 1.000) 50.000%, rgba(193, 210, 255, 1.000) 75.000%, rgba(224, 195, 255, 1.000) 100.000%)*/
}

.calcResult {
    display: flex;
    font-size: var(--sku-font-size);
    font-weight: bold;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#formFields:disabled {

}

#formFields {
    border: none;
    padding: 0;
}

#calcProcess {
    position: relative;
    display: inline-flex;
    padding-left: 1.4em;
}

#calcProcess:before {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -0.5em;
    width: 1em;
    height: 1em;
    opacity: 1;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    -webkit-animation: spin 0.2s linear infinite;
    animation: spin 0.2s linear infinite;
    display: inline-block;
    background-image: none !important;
}

#calcProcess.loading:before {
    content: '';
}

.calc h2 {
    font-size: 2em;
}

.stepSelector:before,
.stepSelector .calcProgress,
.stepSelector:after {
    content: '';
    position: absolute;
    top: calc((var(--step-size) / 2) - 3px);
    left: 5%;
    border-bottom: 2px solid var(--step-card-background);
    width: 90%;
    z-index: 1;
}

.stepSelector .calcProgress {
    z-index: 2;
    width: 0;
    border-bottom: 2px solid var(--main-color);
    transition: width 0.3s ease;
}

.stepSelector {
    pointer-events: none !important;
    display: flex;
    padding: 0;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
    min-width: 100%;
}

.stepSelector label.active .count,
.stepSelector input:checked + label .count {
    background: var(--main-color);
    color: #fff;
}

.stepSelector input:disabled + label {
    cursor: not-allowed;

}

.stepSelector input:disabled + label .count {
    background: var(--disabled-background);
    color: var(--disabled-font-color);
}

.stepSelector input {
    display: none;
}

.stepSelector input:disabled + label .label {
    color: var(--disabled-font-color);
}

.formGroup {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--calc-blocks-gap);
}

#productResultList .eb_viewall {
    display: none;
}

#productResultList h2 {
    margin-bottom: 0.5em;
}

#productResultList .result-element {
    display: flex;
    gap: 1em;
    padding-bottom: 1em;
    margin-bottom: 1em;
}

#productResultList {
    width: var(--form-width)
}

#brpForm {
    display: none;
    justify-content: center;
}

.formControl input[type=number]:disabled {
    border-color: var(--disabled-border-color);
    cursor: not-allowed;
    background: var(--disabled-background);
}

.formControl input[type=number]:disabled::placeholder {
    color: var(--disabled-font-color);
}

.formControl input[type=number] {
    max-width: 100%;
    width: 100%;
    border: 2px solid var(--main-color);
    border-radius: 4px;
    outline: none;
    box-shadow: none;
    padding: 0.4em 0.8em;
    font-size: 1rem;
}

.stepSelector label {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-basis: 10%;
    cursor: pointer;
    gap: 3px;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                     supported by Chrome, Edge, Opera and Firefox */

}

.stepSelector .label {
    font-size: var(--selector-label-font-size)
}

.stepSelector .count {
    display: inline-flex;
    font-size: 0.8em;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #e0f2fe;
    color: #0369a1;
    width: var(--step-size);
    height: var(--step-size);
    border-radius: var(--border-radius);
}

.calc form {
    display: flex;
    flex-direction: column;
    gap: var(--calc-blocks-gap);
    justify-content: center;
    width: var(--form-width);

}

.stepCard h3 {
    margin-bottom: 0.5em;
    font-size: 1.17em;
    font-weight: bold;
}

.stepCard {
    /*background-color: darkgrey;*/
}
.stepCard fieldset {
    width: 100%;
    display: flex;
    padding: 1em 2em;
    background: var(--step-card-background);
    border-radius: var(--border-radius);
    flex-direction: column;
    gap: 0.5em;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04),
    0 2px 2px rgba(0, 0, 0, 0.04),
    0 4px 4px rgba(0, 0, 0, 0.04),
    0 8px 8px rgba(0, 0, 0, 0.04);
}
.stepCard {
    display: none;

}

.stepCard.active {
    display: flex;
}

.stepCard .description {
    /*margin: 1em 0;*/
    color: gray;
}

.stepCard .formControl {
    display: flex;
    /*grid-template-columns: 1em auto;*/
    /*gap: 1em;*/
    align-items: baseline;
    font-size: 1.2em;
    margin-bottom: 1em;
    position: relative;
}

.stepCard input[type='radio']:disabled {
    border-color: var(--disabled-border-color);
}

.stepCard input[type='radio']:disabled + label {
    background: var(--disabled-background);
    color: var(--disabled-font-color);
    cursor: not-allowed;
}

.stepCard input[type='radio'] {
    position: absolute;
    left: 1em;
    top: 50%;
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    appearance: none;
    /* For iOS < 15 to remove gradient background */
    background-color: #fff;
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    width: var(--radio-size);
    height: var(--radio-size);
    border: 0.15em solid currentColor;
    border-radius: 50%;
    transform: translateY(calc(-1 * 1.15em / 2));
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    content: "";
    width: var(--radio-size-dot);
    height: var(--radio-size-dot);
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}


.stepElements > div {
    flex: 50% 1 1;
}

.stepElements label:hover {
    background: rgba(0, 171, 218, 0.1);
}

.stepElements label img {
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: var(--border-radius);
    left:0.65em;
    position: absolute;
    top: calc(50% - var(--icon-size) / 2);
    box-shadow: 0 0 1px 0 var(--main-color);
}

.stepElements label {
    cursor: pointer;
    padding: 0.6em 2em 0.6em 3em;
    border-radius: var(--border-radius);
    flex-basis: 100%;
    font-size: var(--form-label-font-size);
    display: flex;
}

.stepElements input[type="radio"]:checked + label {
    background: var(--main-color);
    color: white;
}

.stepElements {
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
}

.calcButtons {
    display: flex;
    justify-content: space-between;
}

.calcButtons button:disabled {
    display: none;
}

.calcButtons button {
    padding: 0.5em 1.2em;
    border-radius: var(--border-radius);
    border: none;
    outline: none;
}

.calcButtons #formReset,
.calcButtons #prev {
    /*color: gray;*/
    /*background: #efefef;*/
    background-color: #e2e8f0; /* Светлый серо-голубой */
    color: #475569; /* Серо-синий текст */
}

.calcButtons #next {
    color: white;
    background: var(--main-color);
}

@media (max-width: 768px) {
    .calc form {
        max-width: 95%;
    }

    .calc h2, .calcResult {
        font-size: calc(var(--sku-font-size) * 0.9);
    }

    .calc {
        font-size: 0.9rem;
    }


}

@media (max-width: 600px) {
    .calc h2, .calcResult {
        font-size: calc(var(--sku-font-size) * 0.9);
    }

    .calc {
        font-size: 0.85rem;
    }


}

@media (max-width: 500px) {
    .calc {
        font-size: 0.8rem;
    }

    .stepCard input[type='radio'] {
        left: 0.5em;
    }

    input[type="radio"]::before {
        width: calc(var(--radio-size-dot) * 0.8);
        height: calc(var(--radio-size-dot) * 0.8);
    }

    .stepElements label {
        padding: 0.4em 1.5em 0.4em 2em;
    }
}

@media (max-width: 390px) {
    .calc {
        font-size: 0.8rem;
    }

    .stepSelector .count {
        width: var(--step-size-s);
        height: var(--step-size-s);
    }

    .calc form {
        width: var(--form-width-s);
    }

    .stepSelector .label {
        font-size: calc(var(--selector-label-font-size) * 0.9)
    }

    .calc h2 {
        font-size: calc(var(--sku-font-size) * 0.7);
    }

    .calcResult {
        font-size: calc(var(--sku-font-size) * 0.5);
    }
}
