#header1,
#header2 {
    text-align: center;
    margin: 40px;
}

#header2 {
    font-weight: 200;
    font-style: italic;
}

.calculator {
    display: flex;
    width: 100%;
    gap: 25px;
    justify-content: center;
    width: auto;
    box-sizing: border-box;
    margin: 10px 20px;
    text-align: center;
}

.form-slider {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 40%;
    max-width: 50%;
    text-align: center;
    background: rgb(219, 219, 219);
    padding: 10px;
}

.range-wrap {
    position: relative;
    margin: 30px 10px 15px;
}

.bubble {
    min-width: 22px;
    background: red;
    color: white;
    padding: 2px 4px;
    position: absolute;
    border-radius: 4px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

.bubble::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 6px;
    background: red;
    top: -6px;
    left: 50%;
}

.form-fields {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 40%;
    max-width: 50%;
    background: rgb(219, 219, 219);
    padding: 10px;
}

input[type=text],
input[type=date] {
    background-color: rgb(255, 255, 255);
    border-radius: 3px;
    border: solid 1px rgb(255, 255, 255);
    color: #2b2f32;
    font-weight: 200;
    width: 90%;
    height: 40px;
    display: block;
    margin: 10px auto;
    padding: 3px;
}

.btn {
    background: rgb(136, 136, 136);
    border: 1px solid rgb(136, 136, 136);
    border-radius: 10px;
    font-weight: bold;
    margin: 1rem auto;
    padding: 5px;
    width: 10rem;
}


.btn:hover {
    opacity: 0.7;
    cursor: pointer;
}

.range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: repeating-linear-gradient(-45deg, #bd8112, #2b2f32 30px);
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.range::before,
.range::after {
    position: absolute;
    top: -30px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(12, 12, 129);
}

.range::before {
    content: "0";
}

.range1::after,
.range3::after {
    content: "10 м";
    right: 0;
}

.range2::after {
    content: "30 м";
    right: 0;
}

.range4::after {
    content: "150 тонн";
    right: 0;
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: red;
    cursor: pointer;
}

.range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: red;
    cursor: pointer;
}

.range:hover {
    opacity: 1;
}

.slider-value {
    margin-top: 20px;
    font-style: italic;
    color: rgb(12, 12, 129);
}

#success {
    display: none;
    color: green;
    text-align: center;
    margin: 10% auto;
}

@media screen and (max-width: 768px) {
    .calculator {
        flex-direction: column;
    }

    .form-slider,
    .form-fields {
        max-width: 100%;
    }
}