/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

small a {
    text-decoration: underline !important;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}

#calc_app {
    .form, .radio-input__wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .form-field {
        position: relative;
    }

    .form-radio__wrapper {
        display: flex;
        align-items: center;
        height: 100%;
        justify-content: flex-end;
        flex-direction: row-reverse;
    }

    .form__radio {
        cursor: pointer;
    }

    .form__btn {
        color: #ffffff;
        font-size: 18px;
        font-family: 'Roboto', Arial, sans-serif;
        line-height: 1.2;
        font-weight: 700;
        text-transform: uppercase;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        background-image: linear-gradient(45deg, rgba(255, 192, 43, 1) 0%, rgba(249, 152, 42, 1) 100%);
        border-color: transparent;
        border-style: solid;
        transition: background-color 0.7s ease-in-out, color 0.7s ease-in-out, border-color 0.7s ease-in-out;
        box-shadow: 0px 7px 20px 0px rgb(0 0 0 / 20%);
        cursor: pointer;
        padding: 10px;
        border-width: 2px;
    }

    .form__btn:hover {
        opacity: 0.8;
    }

    @container (max-width: 720px) {
        .radio-input__wrapper {
            flex-direction: row;
            gap: 20px;
        }

        .form__btn {
            font-size: 14px;
        }
    }

    @container (max-width: 520px) {
        .radio-input__wrapper {
            justify-content: space-between;
        }
    }
}
#calc_app {
    .form__label {
        font-size: 20px;
        display: grid;
        grid-template-columns: 5fr 6fr 3fr;
        align-items: flex-end;
        gap: 15px;

        .label__tip {
            display: none;
        }
    }

    .form__input {
        height: 24px;
        font-size: 16px;
        border: 1px solid #333333;
        outline: none;
    }

    .form__input_disabled {
        border: 1px solid #a9a9a9;
        color: #a9a9a9;
    }

    .form-input__wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .form-label__last_mobile {
        display: none;
    }

    @container (max-width: 720px) {
        .form__label {
            font-size: 16px;
            display: grid;
            grid-template-columns: 2fr 4fr 1fr;
            align-items: flex-end;
            gap: 10px;

            .label__tip {
                display: inline;
            }
        }

        .form__label_type-radio {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            gap: 0;
        }

        .form__input {
            height: 32px;
            font-size: 16px;
            width: 90%;
        }

        .form-label__last_tablet {
            display: inline-block;
            min-width: 80px;
        }

        .form-input__wrapper {
            justify-content: left;
        }

        .form__tip {
            display: none;
        }
    }

    @container (max-width: 520px) {
        .form__label {
            align-items: center;
            gap: 5px;
        }

        .form__label_type-radio {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            gap: 0;
        }

        .form__input {
            width: 80%;
        }

        .form-label__last_tablet {
            display: none;
        }

        .form-label__last_mobile {
            display: inline;
            min-width: 32px;
        }

        .label__name {
            min-width: 80px;
        }
    }
}
#calc_app {
    .form__input_info {
        outline: 1px solid rgba(249, 152, 42, 1);
        border: 1px solid rgba(249, 152, 42, 1);
    }

    .form-input__info {
        margin-left: 5px;
        width: 24px;
        height: 24px;
        border: 1px solid rgba(249, 152, 42, 1);
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
        color: rgba(249, 152, 42, 1);
        position: relative;
        cursor: pointer;
    }

    .form-input__info:after {
        content: "!";
        font-size: 20px;
        margin-left: 8px;
        font-weight: 700;
        color: #ff4400;
    }

    .form-input-info__popup {
        position: absolute;
        display: none;
        width: 180px;
        border: 1px solid rgba(249, 152, 42, 1);
        color: rgba(249, 152, 42, 1);
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        top: -10px;
        left: 50%;
        transform: translate(-50%, -100%);
        background-color: white;
        padding: 5px 10px;
        font-size: 14px;
    }

    .form-input__info:hover > .form-input-info__popup {
        display: block;
    }

    .form-input__info_animate {
        animation-duration: 0.8s;
        animation-iteration-count: infinite;
        animation-name: wider;
    }

    @keyframes wider {
        from {
            outline: none;
        }
        to {
            outline: 1px solid rgba(249, 152, 42, 1);
        }
    }

    @container (max-width: 720px) {
        .form-input-info__popup {
            width: 145px;
        }
    }
}
#calc_app {
    .radio-container-item__input {
        opacity: 0;
        cursor: pointer;
    }

    .radio-container-item__checkmark {
        position: relative;
        top: 0;
        left: 0;
        height: 25px;
        width: 25px;
        background-color: #dcdcdc;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        cursor: pointer;
    }

    .radio-container__item:hover .radio-container-item__input ~ .radio-container-item__checkmark {
        background-color: #c5c5c5;
    }

    .radio-container__item .radio-container-item__input:checked ~ .radio-container-item__checkmark {
        background-color: rgba(249, 152, 42, 1);
    }

    .radio-container-item__checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }

    .radio-container__item .radio-container-item__input:checked ~ .radio-container-item__checkmark:after {
        display: block;
    }

    .radio-container__item .radio-container-item__checkmark:after {
        top: 8px;
        left: 8px;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        background: white;
    }
}
#calc_app {
    .form-field__warning {
        position: absolute;
        width: 200px;
        top: -400%;
        right: -215px;
    }

    .warning__bubble {
        width: 100%;
        background-image: linear-gradient(45deg, rgba(255, 192, 43, 1) 0%, rgba(249, 152, 42, 1) 100%);
        border-color: transparent;
        color: white;
        border-radius: 10px 10px 10px 0;
        -webkit-border-radius: 10px 10px 10px 0;
        -moz-border-radius: 10px 10px 10px 0;
        padding: 10px;
    }

    .warning__triangle {
        content: " ";
        display: block;
        width: 0;
        height: 0;
        border-right: 0 solid transparent;
        border-left: 20px solid transparent;
        position: relative;
        border-bottom: 20px solid rgb(255, 192, 43);
        top: -20px;
        left: -20px;
    }
}
#calc_app {
    .message__text {
        font-size: 18px;
        text-align: center;
        margin-top: 30px;
    }

    .message__wrapper {
        width: 100%;
        margin: 0 auto;
        min-height: 50px;
    }

    @container (max-width: 520px) {
        .message__text {
            font-size: 16px;
            margin-top: 20px;
        }

        .message__wrapper {
            min-height: 40px;
        }
    }
}
#calc_app {
    & table, & td, & th {
        border: 2px solid rgba(249, 152, 42, 1);
        border-collapse: collapse;
    }

    .table {
        width: 100%;
    }

    .table__cell, .table__head {
        padding: 5px;
        text-align: center;
    }

    .table__cell:first-child {
        font-weight: 700;
        text-align: right;
        width: 20%;
    }

    .table__head {
        /*background-image: linear-gradient(0deg, rgba(255,192,43,1) 0%, rgba(249,152,42,1) 100%);*/
        background-color: rgba(255, 192, 43, 1);
        color: #ffffff;
        padding: 10px 5px;
        position: relative;
    }

    & th.table__head:not(:last-of-type):after {
        display: block;
        content: "";
        position: absolute;
        top: 0;
        right: -2px;
        height: 100%;
        width: 2px;
        background-color: rgba(249, 152, 42, 1);
    }

    & td.cell_no-border {
        border: none;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    @container (max-width: 720px) {
        .table {
            font-size: 16px;
        }

        td, th {
            min-width: 100px;
        }

        .table__row .table__cell:first-child {
            position: sticky;
            z-index: 1;
            left: 1px;
            background-color: white;
        }

        .table__row .table__cell:first-child:after, .table__row .table__cell:first-child:before {
            display: block;
            content: "";
            position: absolute;
            top: 0;
            height: 100%;
            width: 2px;
            background-color: rgba(249, 152, 42, 1);
            z-index: 2;
        }

        .table__row .table__cell:first-child:after {
            right: -2px;
        }

        .table__row .table__cell:first-child:before {
            left: -2px;
        }
    }
}
* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Arial", "sans-serif";
}

#calc_app {
    container-type: inline-size;

    h4, .title {
        text-align: center;
    }

    .title {
        margin-bottom: 40px;
    }

    .content {
        width: 100%;
        padding: 40px;
    }

    .form__container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px;
    }

    .table__container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hidden {
        display: none;
    }

    @container (max-width: 720px) {
        .content {
            padding: 40px 20px;
        }

        .form__container {
            margin: 0 auto 30px;
        }

        .title {
            font-size: 32px;
            margin-bottom: 30px;
        }
    }

    @container (max-width: 520px) {
        .content {
            padding: 30px 12px;
        }

        .form__container {
            margin: 0 auto 20px;
        }

        .title {
            font-size: 24px;
            margin-bottom: 24px;
        }
    }

}
