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

.form__fieldset {
    width: 100%;
}

@media (min-width: 768px) {
    .form {
        gap: 40px;
    }

    .form__fieldset--calculator {
        width: calc(40% - 20px);
    }

    .form__fieldset--results {
        width: calc(60% - 20px);
    }
}

@media (min-width: 1280px) {
    .form {
        gap: 80px;
    }

    .form__fieldset--calculator {
        width: calc(40% - 40px);
    }

    .form__fieldset--results {
        width: calc(60% - 40px);
    }
}


.form__legend {
    margin-bottom: 10px;
}
.form__cell {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 480px) and (max-width: 767px), (min-width: 1024px) {
    .form__fieldset--calculator .form__cell {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 20px;
    }
}

/*@media (min-width: 960px) {*/
/*    .form__cell {*/
/*        -ms-flex-direction: row;*/
/*        flex-direction: row;*/
/*        -ms-flex-align: center;*/
/*        align-items: center;*/
/*        margin-bottom: 10px;*/
/*    }*/
/*}*/
.form__cell.form__cell--buttons {
    align-items: center;
    grid-template-columns: 1fr 1fr;
    padding-top: 15px;
    /*display: flex;*/
    gap: 10px;
}
.form__cell.form__cell--stacked {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: start;
    align-items: flex-start;
}
.form__label {
    margin-bottom: 5px;
}
@media (min-width: 480px) and (max-width: 767px), (min-width: 1024px) {
    .form__label {
        margin-bottom: 0;
    }
}
.form__cell--stacked .form__label {
    width: auto;
    margin-bottom: 5px;
}
.form__control,
input[type="text"].form__control,
input[type="email"].form__control,
select.form__control {
    box-sizing: border-box;
    float: none;
    margin: 0;
    width: 100%;
}
.form__cell--stacked .form__control,
.form__cell--stacked input[type="text"].form__control,
.form__cell--stacked select.form__control {
    max-width: none;
}
.form__button,
input[type="submit"].form__button {
    padding: clamp(12px,.9em,18px) clamp(24px,1.9em,26px);
    border: 1px solid rgba(139,139,139,0.6) !important;
    border-radius: 8px;
    transition: 0.3s;
    transition-property: background-color, border-color;
    outline: none;
    cursor: pointer;
    text-align: center;
    color: #fff;
    background-color: #005B8C;
    line-height: 1 !important;
    width: 100%;
}

.form__button--outline {
    background-color: transparent;
    border: 1px solid #005B8C;
    color: #005B8C;
}
.form__button:hover,
input[type="submit"].form__button:hover {
    background-color: #fff;
    border-color: #005B8C !important;
    color: #005B8C;
}

.form__button--outline:hover {
    background-color: #005B8C;
    color: #fff;

}
.form__button:disabled,
input[type="submit"].form__button:disabled {
    color: #999;
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    cursor: default;
}
.table-wrapper {
    overflow-x: auto;
}
.table--results {
    border: 1px solid #f7f7f7;
    border-spacing: 0;
    width: 100%;
    margin: 0 0 1.41575em;
    border-collapse: separate;
}
.table--results .table__row:nth-child(even) {
    background: #f7f7f7;
}

.table--results  td, .table--results th {
    padding: 1em 1.41575em;
    text-align: left;
    vertical-align: top;
}

@media (max-width: 768px) {
    .table--results td,
    .table--results th {
        white-space: nowrap;
    }
}


.table--results tr:last-child th {
    background: none;
}



.form__fieldset--form .form__cell {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form__fieldset--form {
        display: flex;
        flex-wrap: wrap;
        column-gap: 40px;
        row-gap: 20px;
    }

    .form__fieldset--form .one_half {
        width: calc(50% - 20px);
    }
}

.form__fieldset--form .form__cell--buttons {
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.form__fieldset--form input[type="submit"] {
    width: auto;
}