@font-face {
    font-family: 'Amalia';
    src: url('fonts/Amalia-Bold.woff2') format('woff2'),
         url('fonts/Amalia-Bold.woff') format('woff'),
         url('fonts/Amalia-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Amalia';
    src: url('fonts/Amalia-Regular.woff2') format('woff2'),
         url('fonts/Amalia-Regular.woff') format('woff'),
         url('fonts/Amalia-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Amalia';
    src: url('fonts/Amalia-Medium.woff2') format('woff2'),
         url('fonts/Amalia-Medium.woff') format('woff'),
         url('fonts/Amalia-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Amalia';
    src: url('fonts/Amalia-Light.woff2') format('woff2'),
         url('fonts/Amalia-Light.woff') format('woff'),
         url('fonts/Amalia-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

body {
    color: #373737;
    font-family: 'Amalia';
    font-size: 18px;
    font-weight: 300;
    background: #F4F4F4;
}

hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: solid 1px #FFFFFF;
}

table { width: 100%; }
.balra { text-align: left; }
.jobbra { text-align: right; }
.kozepre { text-align: center; }
.tavtarto1 { height: 5px; }
.tavtarto10 { height: 10px; }
.tavtarto15 { height: 15px; }
.tavtarto30 { height: 30px; }

.tooltip-inner {
    z-index: 9000000;
    max-width: 350px;
    font-size: 11px;
}

.link {
    display: inline;
    padding: 0;
    color: #808185 !important;
    text-align: left;
    text-decoration: underline !important;
    text-decoration-color: #fbf315;
    background: none;
    border: 0;
}

.link:hover {
    color: #808185 !important;
    text-decoration: underline !important;
}

.btn-primary {
    padding-right: 30px;
    padding-left: 30px;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    background: #FEE600;
    border: none;
    border-radius: 5px !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #000000;
    background: #FEE600;
}

.form-control {
    padding: 10px;
    color: #353535;
    background: #FFFFFF;
    border: none;
    box-shadow: none !important;
}

.kalk_cont {
    padding: 10px;
    font-size: 18px;
    background-color: #FFFFFF;
    border: solid 1px #373737;
    border-radius: 10px;
}

.kalk_label {
    font-weight: 300;
    border: none;
}

.kalk_textbox1 {
    display: inline-block;
    width: calc(100% - 30px);
    padding: 5px;
    color: #373737;
    font-size: 18px;
    font-weight: 700;
    text-align: center !important;
    background: #f4f4f4;
    border: solid 1px #dbdbdb;
    border-radius: 5px;
    box-shadow: none !important;
}

.kalk_utolabel { margin-left: 5px; }

.kalk_jov_button {
    width: 100%;
    padding: 5px;
    font-size: 18px;
    font-weight: 300;
    background: #f4f4f4;
    border: solid 1px #dbdbdb;
    border-radius: 5px;
}

.kalk_jov_buttonakt,
.kalk_jov_buttonakt:active,
.kalk_jov_buttonakt:focus {
    background: #d2d2d2 !important;
    border: solid 1px #d2d2d2 !important;
    outline: none !important;
}

.btn-kalk,
.btn-kalk:hover {
    padding: 2px 15px;
    color: #373737;
    font-weight: 700;
    background: #d2d2d2;
    border: none;
    border-radius: 5px !important;
}

.kalk_slidercont {
    width: calc(100% - 20px);
    margin-top: 10px;
}

.ui-widget-content {
    background: #d2d2d2 !important;
    border: none !important;
}

.ui-widget-header { background: #F6F6F6 !important; }
.ui-slider { height: 9px !important; border: none; }
.ui-state-active { background: #d2d2d2 !important; }

.ui-slider-handle {
    top: -6px !important;
    width: 22px !important;
    height: 22px !important;
    background: #373737 !important;
    border: none;
    border-radius: 15px !important;
}

.ui-slider-handle:active { border-radius: 0; }
.kalk_kisbetu { font-size: 16px; }
.kalk_jobb { text-align: center; }

.kalk_jobb_head {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 300;
    text-align: left;
}

.kalk_jobb_ertek {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: right;
}

.kalk_jobb_ertek2 {
    color: #373737;
    font-size: 30px;
    font-weight: 700;
}

.sporolos {
    padding: 10px;
    color: #373737 !important;
    background: #fefcbf;
    border-radius: 5px;
}

.sporolszov {
    font-size: 24px;
    font-weight: 700;
}

@media all and (min-width: 100px) and (max-width: 767px) {
    body { font-size: 16px; }
    .desktop { display: none; }
    .kalk_cont { font-size: 15px; }
    .kalk_jobb_head { margin-top: 0; margin-bottom: 0; font-size: 15px; }
    .kalk_jobb_ertek { margin-top: 0; margin-bottom: 0; font-size: 18px; }
    .kalk_jobb_ertek2 { font-size: 18px; }
    .kalk_jov_button { color: #373737 !important; font-size: 16px; }
    .kalk_textbox1 { font-size: 16px; }
    .kalk_kisbetu { font-size: 12px; }
    .mobiljobbra { text-align: right; }
    .mobilbalra { text-align: left; }
    .mobilsporol { width: 100px; }
    .sporolszov { font-size: 17px; }
}

@media all and (min-width: 768px) and (max-width: 1199px) {
    .desktop,
    .mobil { display: none; }
    .kalk_jobb { padding-left: 50px; }
}

@media all and (min-width: 1200px) {
    .mobil { display: none; }
}

/* Figma: desktop, unchecked state (node 1:4129) */
@media all and (min-width: 768px) {
    body {
        color: #2B2D33;
        font-size: 18px;
        font-weight: 400;
        background: #FFFFFF;
    }

    #kalkvivi.container {
        width: 100%;
        max-width: 1368px;
        
    }

    .kalk_cont {
        padding: 16px;
        font-size: 18px;
		border:solid 1px rgba(0,0,0,0.16);
        background: #FFFFFF;
    }

    .kalk_cont > .row {
        margin: 0;
        gap: 40px;
        align-items: flex-start;
    }

    .kalk_cont > .row > .col-md-6 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding: 0;
    }

    .kalk_cont > .row > .col-md-6:first-child {
        padding-top: 16px;
    }

    #kalk_halvanyito1 > .kalk_label {
        display: block;
        margin: 0 0 24px;
        padding: 0;
        color: #000000;
        line-height: 24px;
    }

    #kalk_halvanyito1 > .kalk_label strong {
        font-weight: 400;
    }

    #kalk_halvanyito1 > table:first-of-type {
        margin-bottom: 20px;
    }

    #kalk_halvanyito1 > table:first-of-type,
    #kalk_halvanyito1 > table:first-of-type tbody,
    #kalk_halvanyito1 > table:first-of-type tr {
        display: block;
    }

    #kalk_halvanyito1 > table:first-of-type tr {
        display: flex;
        gap: 32px;
    }

    #kalk_halvanyito1 > table:first-of-type td {
        display: block;
        width: auto !important;
        padding: 0 !important;
    }

    .kalk_jov_button {
        position: relative;
        width: auto;
        padding: 0 0 0 40px;
        color: #000000;
        font-size: 18px;
        font-weight: 400;
        line-height: 24px;
        white-space: nowrap;
        text-align: left;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .kalk_jov_button br { display: none; }

    .kalk_jov_button::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        content: '';
        background: #FFFFFF;
        border: 2px solid #808185;
        border-radius: 50%;
    }

    .kalk_jov_buttonakt,
    .kalk_jov_buttonakt:active,
    .kalk_jov_buttonakt:focus {
        background: transparent !important;
        border: 0 !important;
    }

    .kalk_jov_buttonakt::before {
        background: #118DB8;
        border: 4px solid #FFFFFF;
        outline: 2px solid #118DB8;
        outline-offset: -2px;
    }

    #kalk_halvanyito1 > .tavtarto10,
    #kalk_halvanyito1 > .tavtarto30 {
        display: none;
    }

    #kalk_halvanyito1 > .form-group {
        display: block;
        margin: 0 !important;
    }

    #kalk_halvanyito1 > .form-group .col-6 {
        width: 100%;
        max-width: none;
        padding: 0;
        text-align: left;
    }

    #kalk_halvanyito1 > .form-group .kalk_label {
        display: block;
        margin: 0 0 2px;
        padding: 0;
        color: #55575C;
        line-height: 24px;
    }

    #kalk_halvanyito1 > .form-group .kalk_label strong {
        font-weight: 400;
    }

    #kalk_halvanyito1 > .form-group .jobbra {
        position: relative;
    }

    .kalk_textbox1 {
        width: 100%;
        height: 48px;
        padding: 12px 48px 12px 16px;
        color: #2B2D33;
        font-size: 18px;
        font-weight: 500;
        line-height: 24px;
        text-align: left !important;
        background: rgba(255, 255, 255, .7);
        border: 1px solid rgba(43, 45, 51, .54);
        border-radius: 8px;
    }

    .kalk_utolabel {
        position: absolute;
        top: 12px;
        right: 16px;
        margin: 0;
        line-height: 24px;
    }

    label[for='futamidoszep'] + .jobbra .kalk_utolabel {
        font-size: 0;
    }

    label[for='futamidoszep'] + .jobbra .kalk_utolabel::after {
        font-size: 18px;
        content: 'hónap';
    }

    #kalk_halvanyito1 > table:not(:first-of-type) {
        margin-top: 24px;
        margin-bottom: 20px;
    }

    #kalk_halvanyito1 > table:not(:first-of-type) td:first-child,
    #kalk_halvanyito1 > table:not(:first-of-type) td:last-child {
        width: 32px !important;
        vertical-align: top;
    }

    #kalk_halvanyito1 > table:not(:first-of-type) td:nth-child(2) {
        padding: 0 19px;
    }

    .btn-kalk,
    .btn-kalk:hover {
        width: 36px;
        height: 36px;
        padding: 0;
        color: #2B2D33;
        font-family: Arial, sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 32px;
        background: #FFFFFF;
        border: 1.5px solid #8D8E91;
        border-radius: 8px !important;
    }

    .kalk_slidercont {
        width: 100%;
        margin-top: 16px;
    }

    .ui-slider {
        height: 4px !important;
        margin-top: 10px;
        background: rgba(43, 45, 51, .08) !important;
    }

    .ui-widget-header { background: #68A9B3 !important; }

    .ui-slider-handle {
        top: -14px !important;
        z-index: 3;
        width: 32px !important;
        height: 32px !important;
        background: #037080 !important;
        border-radius: 50% !important;
        box-shadow: 0 0 4px -1px rgba(0, 0, 0, .6);
    }

    .kalk_kisbetu {
        margin-top: 24px !important;
        color: #55575C;
        font-size: 16px;
        line-height: 16px;
    }

    #futamidokicsi2 {
        width: 100%;
        table-layout: fixed;
    }

    #futamidokicsi2 td {
        width: 25%;
        padding: 0;
        text-align: center;
    }

    #futamidokicsi2 td:first-child,
    #futamidokicsi2 td:last-child {
        width: 12.5%;
    }

    #futamidokicsi2 td:first-child { text-align: left; }
    #futamidokicsi2 td:last-child { text-align: right; }

    #slider2 .slider-stop {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 10px;
        height: 10px;
        pointer-events: none;
        background: #E9EAEA;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    #slider2 .slider-stop.active { background: #68A9B3; }
    #slider2 .slider-stop:nth-of-type(1) { left: 0; }
    #slider2 .slider-stop:nth-of-type(2) { left: 25%; }
    #slider2 .slider-stop:nth-of-type(3) { left: 50%; }
    #slider2 .slider-stop:nth-of-type(4) { left: 75%; }
    #slider2 .slider-stop:nth-of-type(5) { left: 100%; }

    #minosszeg::first-line,
    #maxosszeg::first-line { text-transform: none; }

    .kalk_jobb {
        min-height: 440px;
        padding: 48px;
        text-align: left;
        background: #FFFFFF;
        border: 1px solid rgba(43, 45, 51, .16);
        border-radius: 8px;
    }

    .kalk_eredmeny_cim {
        margin-bottom: 16px;
        color: #55575C;
        font-size: 20px;
        font-weight: 500;
        line-height: 24px;
        text-transform: uppercase;
    }

    .kalk_jobb > .row {
        display: block;
        margin: 0 0 16px;
    }

    .kalk_jobb > .row > [class*='col-'] {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .kalk_jobb_head,
    .kalk_jobb_ertek {
        margin: 0;
        color: #2B2D33 !important;
        font-size: 18px;
        line-height: 24px;
        text-align: left;
    }

    .kalk_jobb_head { font-weight: 400; }
    .kalk_jobb_ertek { font-weight: 700; }
    .kalk_jobb hr { display: none; }

    .sporolos {
        width: calc((100% - 40px) / 2);
        margin-top: 2px;
        padding: 0;
        background: rgba(156, 150, 127, .1);
        border: 2px solid transparent;
        border-radius: 8px;
        transition: background-color .2s ease, border-color .2s ease;
    }

    .sporolos.checked {
        background: #E5F5FB;
        border-color: #0099CC;
    }

    .sporolos table,
    .sporolos tbody,
    .sporolos tr {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .sporolos tr { min-height: 68px; padding: 6px 10px; }
    .sporolos td:first-child { width: 50px; }
    .sporolos td:nth-child(2) { flex: 1; }
    .sporolos td:last-child { width: auto; }

    .pipa_cont {
        width: 36px !important;
        height: 36px !important;
        padding: 10px;
        cursor: pointer;
        background: none !important;
    }

    .pipa_cont::before {
        display: block;
        width: 16px;
        height: 16px;
        content: '';
        background: #FFFFFF;
        border: 1px solid rgba(156, 150, 127, .24);
        border-radius: 4px;
    }

    .pipa_cont.checked::before {
        color: #FFFFFF;
        font-size: 13px;
        line-height: 14px;
        text-align: center;
        content: '\2713';
        background: #118DB8;
        border-color: #118DB8;
    }

    #pipa_pipa { display: none !important; }

    .sporolszov,
    .kalk_jobb_ertek2 {
        color: #2B2D34 !important;
        font-size: 18px;
        font-weight: 500;
        line-height: 20px;
    }

    .kalk_jobb_ertek2 { white-space: nowrap; }

    .kalk_disclaimer { display: none; }
}

/* Figma: mobile calculator */
@media all and (max-width: 767px) {
    body {
        color: #2B2D33;
        font-size: 16px;
        font-weight: 400;
        background: #FFFFFF;
    }

    #kalkvivi.container {
        width: 100%;
        max-width: 414px;
        padding: 16px 9px 32px;
    }

    .kalk_cont {
        padding: 10;
        font-size: 16px;
        background: #FFFFFF;
        border:solid 1px rgba(0,0,0,0.16);
        border-radius: 10;
    }

    .kalk_cont > .row {
        display: block;
        margin: 0;
    }

    .kalk_cont > .row > .col-md-6 {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    #kalk_halvanyito1 > .kalk_label {
        display: block;
        margin: 0 0 24px;
        padding: 0;
        color: #000000;
        line-height: 24px;
    }

    #kalk_halvanyito1 > .kalk_label strong,
    #kalk_halvanyito1 > .form-group .kalk_label strong {
        font-weight: 400;
    }

    #kalk_halvanyito1 > table:first-of-type,
    #kalk_halvanyito1 > table:first-of-type tbody,
    #kalk_halvanyito1 > table:first-of-type tr,
    #kalk_halvanyito1 > table:first-of-type td {
        display: block;
        width: 100% !important;
        padding: 0 !important;
    }

    #kalk_halvanyito1 > table:first-of-type {
        margin-bottom: 20px;
    }

    #kalk_halvanyito1 > table:first-of-type td + td {
        margin-top: 16px;
    }

    .kalk_jov_button {
        position: relative;
        width: auto;
        padding: 0 0 0 40px;
        color: #000000 !important;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0;
    }

    .kalk_jov_button::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 24px;
        height: 24px;
        content: '';
        background: #FFFFFF;
        border: 2px solid #808185;
        border-radius: 50%;
    }

    .kalk_jov_buttonakt::before {
        background: #118DB8;
        border: 4px solid #FFFFFF;
        outline: 2px solid #118DB8;
        outline-offset: -2px;
    }

    #kalk_halvanyito1 > .tavtarto10,
    #kalk_halvanyito1 > .tavtarto30 {
        display: none;
    }

    #kalk_halvanyito1 > .form-group {
        display: block;
        margin: 0 !important;
    }

    #kalk_halvanyito1 > .form-group .col-6 {
        width: 100%;
        max-width: none;
        padding: 0;
        text-align: left;
    }

    #kalk_halvanyito1 > .form-group .kalk_label {
        display: block;
        margin: 0 0 2px;
        padding: 0;
        color: #55575C;
        line-height: 24px;
    }

    #kalk_halvanyito1 > .form-group .jobbra {
        position: relative;
    }

    .kalk_textbox1 {
        width: 100%;
        height: 48px;
        padding: 12px 56px 12px 16px;
        color: #2B2D33;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        text-align: left !important;
        background: rgba(255, 255, 255, .7);
        border: 1px solid rgba(43, 45, 51, .54);
        border-radius: 8px;
    }

    .kalk_utolabel {
        position: absolute;
        top: 12px;
        right: 16px;
        margin: 0;
        line-height: 24px;
    }

    label[for='futamidoszep'] + .jobbra .kalk_utolabel {
        font-size: 0;
    }

    label[for='futamidoszep'] + .jobbra .kalk_utolabel::after {
        font-size: 16px;
        content: 'hónap';
    }

    #kalk_halvanyito1 > table:not(:first-of-type) {
        margin-top: 24px;
        margin-bottom: 40px;
    }

    #kalk_halvanyito1 > table:not(:first-of-type) td:first-child,
    #kalk_halvanyito1 > table:not(:first-of-type) td:last-child {
        width: 32px !important;
        vertical-align: top;
    }

    #kalk_halvanyito1 > table:not(:first-of-type) td:nth-child(2) {
        padding: 0 19px;
    }

    .btn-kalk,
    .btn-kalk:hover {
        width: 32px;
        height: 32px;
        padding: 0;
        color: #2B2D33;
        font-family: Arial, sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 28px;
        background: #FFFFFF;
        border: 1.5px solid #8D8E91;
        border-radius: 8px !important;
    }

    .kalk_slidercont {
        width: 100%;
        margin-top: 16px;
    }

    .ui-slider {
        height: 4px !important;
        margin-top: 10px;
        background: rgba(43, 45, 51, .08) !important;
        border: 0;
    }

    .ui-widget-header { background: #68A9B3 !important; }

    .ui-slider-handle {
        top: -12px !important;
        z-index: 3;
        width: 28px !important;
        height: 28px !important;
        background: #037080 !important;
        border: 0;
        border-radius: 50% !important;
        box-shadow: 0 0 4px -1px rgba(0, 0, 0, .6);
    }

    .kalk_kisbetu {
        margin-top: 24px !important;
        color: #55575C;
        font-size: 14px;
        line-height: 16px;
    }

    #futamidokicsi2 {
        width: 100%;
        table-layout: fixed;
    }

    #futamidokicsi2 td {
        width: 25%;
        padding: 0;
        text-align: center;
    }

    #futamidokicsi2 td:first-child,
    #futamidokicsi2 td:last-child { width: 12.5%; }
    #futamidokicsi2 td:first-child { text-align: left; }
    #futamidokicsi2 td:last-child { text-align: right; }

    #slider2 .slider-stop {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 10px;
        height: 10px;
        pointer-events: none;
        background: #E9EAEA;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    #slider2 .slider-stop.active { background: #68A9B3; }
    #slider2 .slider-stop:nth-of-type(1) { left: 0; }
    #slider2 .slider-stop:nth-of-type(2) { left: 25%; }
    #slider2 .slider-stop:nth-of-type(3) { left: 50%; }
    #slider2 .slider-stop:nth-of-type(4) { left: 75%; }
    #slider2 .slider-stop:nth-of-type(5) { left: 100%; }

    .kalk_jobb {
        min-height: 0;
        margin-top: 0px;
        text-align: left;
        background: #FFFFFF;
        border-radius: 8px;
    }

    .kalk_eredmeny_cim {
        margin-bottom: 24px;
        color: #55575C;
        font-size: 18px;
        font-weight: 500;
        line-height: 24px;
        text-transform: uppercase;
    }

    .kalk_jobb > .row {
        display: block;
        margin: 0 0 16px;
    }

    .kalk_jobb > .row > [class*='col-'] {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .kalk_jobb_head,
    .kalk_jobb_ertek {
        margin: 0;
        color: #2B2D33 !important;
        font-size: 16px;
        line-height: 24px;
        text-align: left;
    }

    .kalk_jobb_head { font-weight: 400; }
    .kalk_jobb_ertek { font-weight: 700; }
    .kalk_jobb hr { display: none; }

    .sporolos {
        width: 100%;
        margin-top: 24px;
        padding: 0;
        background: rgba(156, 150, 127, .1);
        border: 2px solid transparent;
        border-radius: 8px;
    }

    .sporolos.checked {
        background: #E5F5FB;
        border-color: #0099CC;
    }

    .sporolos table,
    .sporolos tbody,
    .sporolos tr {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .sporolos tr { min-height: 72px; padding: 6px 10px; }
    .sporolos td:first-child { width: 40px; }
    .sporolos td:nth-child(2) { flex: 1; }
    .sporolos td:last-child { width: auto; }

    .pipa_cont {
        width: 36px !important;
        height: 36px !important;
        padding: 10px;
        cursor: pointer;
        background: none !important;
    }

    .pipa_cont::before {
        display: block;
        width: 16px;
        height: 16px;
        content: '';
        background: #FFFFFF;
        border: 1px solid rgba(156, 150, 127, .24);
        border-radius: 4px;
    }

    .pipa_cont.checked::before {
        color: #FFFFFF;
        font-size: 13px;
        line-height: 14px;
        text-align: center;
        content: '\2713';
        background: #118DB8;
        border-color: #118DB8;
    }

    #pipa_pipa { display: none !important; }

    .sporolszov,
    .kalk_jobb_ertek2 {
        color: #2B2D34 !important;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
    }

    .kalk_jobb_ertek2 { white-space: nowrap; }
    .kalk_disclaimer { display: none; }
}
