/* fonty */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');

/* spinner */
#rip-loading-spinner .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto;
    border: 5px solid #cccccc;
    border-top: 5px solid #008A99;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#rip-loading-spinner p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #008A99;
    margin: 0;
}

/* základní styly */
.rip-kalkulator-wrap {
    /*overflow: hidden!important;*/
    /*max-width: 1000px;*/
    margin: 0 auto;
    /*margin-bottom: 400px;*/
    position: relative;
    font-family: 'plus-jakarta-sans', sans-serif;
    font-style: normal;

    --primary-color: #262626;
    --secondary-color: #008A99;
    --tertiary-color: #979797;
    --radius-normal: 10px;
}

.background.show-on-address,
.nepovinne {
    background-color: #ffffff;
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-top: 45px;
    padding-bottom: 20px;
    position: relative;
}

.show-on-address {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.show-on-address.visible {
    display: block;
    opacity: 1;
}

.rip-kalkulator-hlavicka {
    padding-top: 20px 1.5em;

    p.text {
        font-family: 'Plus Jakarta Sans';
        font-style: normal;
        font-weight: 400;
        font-size: 28px;
        line-height: 44px;
        text-align: center;
        color: var(--primary-color);

        span {
            font-weight: 700;
        }
    }
}

.rip-kalkulator-hlavicka.prvni {
    p.text {
        font-family: 'Oxygen';
    }
}

.rip-form-group {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
}

.rip-form-group.adresa {
    background: transparent;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

/* výsledná cena box */
.rip-price-output {
    width: 740px;
    border-radius: 20px;
    padding: 2rem 1em;
    margin: auto;
    margin-top: 2em;
    text-align: center;
    font-size: 1.2em;
    position: sticky;
    bottom: 20px;
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    background-color: var(--secondary-color);
    z-index: 1000;

    p {
        font-family: Inter;
        font-weight: 400;
        font-size: 27px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        color: #FFFFFF;
        padding: 0;
        margin: 0;
    }

    p:first-child {
        margin-bottom: 2rem;
    }

    #rip-cena-rozsah {
        font-family: Inter;
        font-weight: 900;
        font-size: 44px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        color: #FFFFFF;
    }

    #rip-vysledna-cena {
        visibility: hidden;
        display: none;
    }
}


/* zadani adresy */
label[for="rip-kal-adresa"] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;

    .icon-lokace {
        width: 59px;
        height: 59px;
    }

    .icon-wrapper svg {
        width: 63px;
        height: 63px;
        background-color: var(--secondary-color);
        border-radius: var(--radius-normal);
        padding: 12px;
    }

    .rip-kal-adresa-wrapper {
        width: 100%;
    }

    #rip-kal-adresa {
        height: 63px;
        border: none;
        border-radius: var(--radius-normal);
        font-weight: 500;
        font-size: 22px;
        line-height: 100%;
        letter-spacing: 0%;
        color: var(--primary-color);
        border: 3px solid var(--secondary-color);
        border-radius: var(--radius-normal);

        &::placeholder {
            color: var(--tertiary-color);
        }

    }
}

/* našeptávač */
#autoComplete_list_1,
#autoComplete_list_1 * {
    font-family: Inter;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0%;
}

#autoComplete_list_1 li {
    margin-top: 1rem;
}

.rip-suggestions {
    position: absolute;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 585px;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 5px;
}

.rip-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Inter';
    font-size: 16px;
}

.rip-suggestion:hover {
    background-color: #f0f0f0;
}


/* rozložení rangerů */
.rip-form-group.rozloha-bytu,
.rip-form-group.stav-bytu,
.rip-form-group.stav-kuchyne,
.rip-form-group.stav-koupelny,
.rip-form-group.stav-nemovitosti {
    margin-bottom: 63px;

    .grid-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 30px;
        /* mezery mezi prvky */
        align-items: stretch;

        .left {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            /*justify-content: center;*/
            justify-content: flex-start;
            gap: 20px;
        }

        .right {
            display: flex;
            align-items: center;
            /*justify-content: center;*/
            justify-content: flex-start;
            /*padding: 1rem;*/
            /*background: #f3f3f3;*/
            padding: 0;

            .rip-stav-images {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }

            .rip-stav-images img {
                max-width: 100px;
                border-radius: 4px;
                box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
                aspect-ratio: 1.5;
                border-radius: 20px;
                display: none;
            }

            .rip-stav-images img:first-child {
                display: block;
            }
        }
    }

}

/* ostatní styly detailně */
.rip-form-group {
    label {
        font-weight: 600;
        font-size: 21px;
        line-height: 120%;
        letter-spacing: 0%;

        span {
            font-weight: 800;
        }
    }

    .rip-slider-labels {
        font-weight: 400;
        font-size: 15px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #686868;
    }

    #stav-bytu-hlavni,
    #stav-kuchyne-hlavni,
    #stav-koupelny-hlavni,
    #stav-nemovitosti-hlavni {
        font-weight: 900;
        font-size: 19px;
        line-height: 100%;
        letter-spacing: 0%;
        color: var(--primary-color);
    }

    #stav-bytu-doplnk,
    #stav-kuchyne-doplnk,
    #stav-koupelny-doplnk,
    #stav-nemovitosti-doplnk {
        font-style: normal;
        font-weight: 300;
        font-size: 18px;
        line-height: 22px;
        color: #B0B0B0;
    }

    /* obecně input typu range */
    .rip-range-wrap {
        width: 100%;
    }

    .input-wrapper-range {
        width: 100%;
        height: 85px;
        padding: 22px;
        background: linear-gradient(90deg, #F0F0F0 0%, #F0F0F0 100%);
        border: 4px solid #F0F0F0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 80px;
        justify-content: flex-start;

        input[type="range"] {
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
            background: transparent;
            box-shadow: none;
            border: none;
            width: 100%;
            height: 18px;
            margin: 0;
            padding: 0;
            cursor: pointer;

            /* Dráha pro WebKit (Chrome, Safari, Edge Chromium) */
            &::-webkit-slider-runnable-track {
                height: 18px;
                background: rgba(0, 0, 0, 0.2);
                border-radius: 20px;
                box-shadow: none;
                border: none;
                background-image: none;
            }

            /* Jezdec pro WebKit */
            &::-webkit-slider-thumb {
                -webkit-appearance: none;
                width: 47px;
                height: 47px;
                background: var(--secondary-color);
                border-radius: 50%;
                margin-top: -15px;
                /* polohování vzhledem k dráze */
                cursor: pointer;
                border: none;
            }

            /* Dráha pro Firefox */
            &::-moz-range-track {
                height: 18px;
                background: rgba(0, 0, 0, 0.2);
                border-radius: 20px;
                box-shadow: none;
                border: none;
                background-image: none;
            }

            /* Jezdec pro Firefox */
            &::-moz-range-thumb {
                width: 47px;
                height: 47px;
                background: var(--secondary-color);
                border-radius: 50%;
                cursor: pointer;
                border: none;
            }

            /* Dráha pro IE/Edge (legacy) */
            &::-ms-track {
                height: 18px;
                background: transparent;
                border-color: transparent;
                color: transparent;
                box-shadow: none;
                border: none;
                background-image: none;
            }

            /* Jezdec pro IE/Edge (legacy) */
            &::-ms-thumb {
                width: 47px;
                height: 47px;
                background: var(--secondary-color);
                border-radius: 50%;
                cursor: pointer;
                border: none;
            }
        }

        #rip-kal-plocha-bytu {
            --val: 0.2727;
            /* 50 z 150 rozsahu = výchozí hodnota */
            --color-filled: var(--secondary-color);
            --color-empty: rgba(0, 0, 0, 0.2);
            background: linear-gradient(to right, var(--color-filled) 0%, var(--color-filled) calc(var(--val) * 100%), var(--color-empty) calc(var(--val) * 100%), var(--color-empty) 100%);
            background-repeat: no-repeat;
            background-size: 100% 18px;
            border-radius: 20px;
        }
    }
}

.rip-form-group.rozloha-bytu {
    .right {
        background: transparent !important;
    }

    .input-value-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /*gap: 20px;*/
    }

    .inner-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;

        .range-value {
            color: var(--secondary-color);
            font-size: 56px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;

            #plocha-input {
                width: 160px;
                height: 63px;
                background: #FFFFFF;
                border: 1px solid #C0C0C0;
                border-radius: 20px;
                font-family: inherit;
                font-size: inherit;
                font-weight: inherit;
                color: inherit;
                text-align: center;
            }
        }

        .btn-minus,
        .btn-plus {
            width: 41px;
            height: 41px;
            background: #D9D9D9;
            border-radius: 50%;
            border: none;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 800;
            font-size: 48px;
            line-height: 1;
            color: var(--secondary-color);
            padding: 0;
            flex-shrink: 0;
            /* zabrání roztažení */
            overflow: hidden;
            /* jistota */

            display: none;
        }

        .btn-minus {
            span {
                transform: translateY(-5px);
            }
        }

        .btn-plus {
            span {
                transform: translateX(0px) translateY(-2px);
            }
        }
    }

}

.typ-vlastnictvi-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;

    .rip-form-group.typ-vlastnictvi,
    .rip-form-group.typ-budovy {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 0;
    }

    .rip-form-group.pocet-pater,
    .rip-form-group.umisteni-v-patre {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 20px;
        align-items: center;
    }

    #rip-kal-typ-vlastnictvi,
    #rip-kal-typ-budovy {
        /* Rectangle 2 */
        width: 305px;
        height: 50px;

        background: linear-gradient(90deg, #F0F0F0 0%, #F0F0F0 100%);
        border: 4px solid #F0F0F0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 20px;
    }

    #rip-cal-umisteni-v-patre,
    #rip-kal-pocet_pater {
        /* Rectangle 8 */
        width: 79px;
        height: 43px;

        background: #FFFFFF;
        border: 1px solid #C0C0C0;
        border-radius: 20px;

    }
}

.switches-group {
    max-width: 1000px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;

    .balkon-wrapper,
    .sklep-wrapper,
    .vytah-wrapper,
    .rip-form-group.balkon,
    .rip-form-group.sklep,
    .rip-form-group.vytah {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        margin: 0;
    }

    .rip-toggle-switch {
        position: relative;
        width: 81px;
        height: 47px;
    }

    .rip-toggle-switch input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .rip-toggle-switch label {
        position: absolute;
        cursor: pointer;
        background-color: #323539;
        border-radius: 30px;
        width: 100%;
        height: 100%;
        transition: background-color 0.3s;
    }

    .rip-toggle-switch label::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 4px;
        width: 39px;
        height: 39px;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.3s;
    }

    .rip-toggle-switch input[type="checkbox"]:checked+label {
        background-color: #7ECC39;
    }

    .rip-toggle-switch input[type="checkbox"]:checked+label::after {
        transform: translateX(34px);
    }

    #rip-kal-balkon-plocha,
    #rip-kal-sklep-plocha {
        /* Rectangle 8 */
        width: 79px;
        height: 43px;

        background: #FFFFFF;
        border: 1px solid #C0C0C0;
        border-radius: 20px;

    }
}

.nepovinne {
    .rip-kalkulator-hlavicka {
        max-width: 800px;
        margin: 0 auto;

        .text:nth-child(2) {
            font-size: 36px;
            font-weight: 800;
            line-height: 44px;

            span {
                color: #A00707;
                font-weight: 800;
            }
        }
    }

    .dispozice-wrapper,
    .vyhody-wrapper {
        max-width: 1000px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 30px;
        margin-bottom: 50px;

        .rip-form-group.dispozice-bytu {
            width: 100%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            padding: 0;
        }
    }

    .vyhody-wrapper {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        /*padding: 0 1em;*/
        padding: 0;
        margin-bottom: 30px;

        .rip-form-group.vyhody,
        .rip-form-group.nevyhody {
            width: 100%;
            flex-direction: column;
            justify-content: center;
            /*align-items: center;*/
            align-items: flex-start;
            gap: 20px;
            padding: 0;
        }

        #rip-kal-vyhody,
        #rip-kal-nevyhody {
            width: 100%;
        }
    }

    #rip-kal-dispozice-bytu,
    #rip-kal-komunikace {
        /* Rectangle 2 */
        width: 305px;
        height: 50px;

        background: linear-gradient(90deg, #F0F0F0 0%, #F0F0F0 100%);
        border: 4px solid #F0F0F0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 20px;
    }

    .rip-form-group.parkovaci-stani {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        margin: 0;

        .rip-toggle-switch {
            position: relative;
            width: 81px;
            height: 47px;
        }

        .rip-toggle-switch input[type="checkbox"] {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .rip-toggle-switch label {
            position: absolute;
            cursor: pointer;
            background-color: #323539;
            border-radius: 30px;
            width: 100%;
            height: 100%;
            transition: background-color 0.3s;
        }

        .rip-toggle-switch label::after {
            content: "";
            position: absolute;
            left: 4px;
            top: 4px;
            width: 39px;
            height: 39px;
            background-color: #fff;
            border-radius: 50%;
            transition: transform 0.3s;
        }

        .rip-toggle-switch input[type="checkbox"]:checked+label {
            background-color: #7ECC39;
        }

        .rip-toggle-switch input[type="checkbox"]:checked+label::after {
            transform: translateX(34px);
        }
    }

    .rip-form-group.vyhody,
    .rip-form-group.nevyhody {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 0;
    }

    .rip-form-group.vyhody {
        span {
            color: #6A9734;
        }
    }

    .rip-form-group.nevyhody {
        span {
            color: #A00707;
        }
    }

    #rip-kal-vyhody,
    #rip-kal-nevyhody {
        /* Rectangle 6 */
        width: 100%;
        height: 102px;
        background: #FFFFFF;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 20px;
    }

    .duvody-wrapper {
        max-width: 1000px;
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        margin-bottom: 50px;

        .rip-form-group.duvody {
            width: 100%;
            display: grid;
            /*grid-template-columns: auto 1fr;
            grid-template-rows: auto;*/
            grid-template-columns: 1fr;
            grid-template-rows: auto auto;
            /*align-items: center;*/
            align-items: flex-start;
            gap: 30px;
        }

        #rip-kal-duvody {
            /* Rectangle 6 */
            width: 100%;
            height: 102px;
            background: #FFFFFF;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
            border-radius: 20px;
        }
    }

    .rip-form-group.ucel-nabidky {
        .ucel-karty {
            display: grid;
            grid-template-columns: 27% 27% 1fr;
            gap: 30px;
            margin-top: 30px;
            margin-bottom: 50px;
        }

        .ucel-karta {
            flex: 1;
            cursor: pointer;
            text-align: center;
            /*transition: border-color 0.3s, background-color 0.3s;*/
            background: rgba(217, 217, 217, 0.1);
            box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            padding: 0;

            input {
                display: none;
            }

            .karta-obsah {
                display: flex;
                position: relative;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                gap: 1rem;
                background-color: #f9f9f9;
                border-radius: 10px;
                border: 3px solid;
                border-color: #f9f9f9;
                transition: all 0.5s ease-in-out;
                padding: 1rem;
                height: 100%;

                font-family: 'Inter';
                font-style: normal;
                font-weight: 600;
                font-size: 31px;
                line-height: 38px;
                text-align: center;
                color: #000000;

                img {
                    height: 100px;
                    width: 100px;
                    margin-bottom: 0.5rem;
                }

                strong.desktop {
                    display: block;
                }

                strong.mobil {
                    display: none;
                }

                p {
                    font-family: 'Inter';
                    font-style: normal;
                    font-weight: 400;
                    font-size: 19px;
                    line-height: 23px;
                    text-align: center;
                    color: #AAAAAA;
                }

                .znacka {
                    position: absolute;
                    top: -20px;
                    right: -15px;
                    width: 66px;
                    height: 66px;

                    .checked {
                        width: 66px;
                        height: 66px;
                        display: none;
                    }

                    .unchecked {
                        width: 66px;
                        height: 66px;
                        display: block
                    }
                }

                input:checked+&,
                &:hover {
                    border-color: #009688;

                    .znacka {
                        .checked {
                            display: block;
                        }

                        .unchecked {
                            display: none;
                        }
                    }
                }
            }
        }
    }

    .rip-form-group.rychlost-prodeje {
        display: none;
        transition: all 0.3s ease-in-out;

        .grid-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
            gap: 30px;
            /* mezery mezi prvky */
            align-items: stretch;

            .left {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
                gap: 20px;

                .rip-range-wrap {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    gap: 20px;

                    .ikony {
                        width: 100%;
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        justify-content: space-between;
                        gap: 20px;
                    }
                }
            }

            .right {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 1rem;
                background: #f3f3f3;
            }
        }
    }

    /* Drag & drop pole */
    .rip-dropzone {
        border: 2px dashed #0078d7;
        background-color: #f7f7f7;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        cursor: pointer;
        position: relative;
        margin-bottom: 1em;
    }

    .rip-dropzone input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .rip-dropzone p {
        margin: 0;
        font-size: 1em;
        color: #333;
    }

    .rip-dropzone small {
        display: block;
        margin-top: 5px;
        font-size: 0.85em;
        color: #666;
    }

    .rip-upload-preview {
        margin-top: 10px;
        margin-bottom: 30px;

        .rip-upload-file {
            padding: 5px 10px;
            border: 1px solid #ddd;
            margin-bottom: 5px;
            background: #f8f8f8;
            border-radius: 4px;
            font-size: 0.95em;
        }
    }


    /* Kontaktní pole */
    .rip-form-group.kontaktni-udaje {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 30px;

        h3 {
            font-style: normal;
            font-weight: 600;
            font-size: 31px;
            line-height: 38px;
            color: var(--primary-color);
        }

        .grid-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto;
            gap: 20px;
            width: 100%;
        }

        input[type="text"],
        input[type="email"] {
            width: 100%;
            height: 69px;
            background: #FFFFFF;
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
            border-radius: 20px;
        }

        .right.komunikace {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 20px;

            label {
                font-size: inherit;
            }
        }
    }

}

.rip-form-group.gdpr-consent {
    margin-top: 30px;
    margin-bottom: 30px;
    label {
        font-size: 16px;
        a {
            color: var(--secondary-color);
        }
    }
}

.rip-form-submit {
    text-align: center;
    margin-top: 30px;

    .rip-submit-button {
        background-color: #A00707;
        /* sytě červená */
        color: #fff;
        font-weight: bold;
        font-size: 16px;
        border: none;
        border-radius: 20px;
        padding: 12px 28px;
        cursor: pointer;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
        transition: background-color 0.3s ease;
        height: 66px;
    }

    .rip-submit-button:hover {
        background-color: #8c0000;
    }
}



/* Media queries pro responzivní design */
/* Pro zařízení s šířkou obrazovky 1000px a menší */

@media screen and (max-width: 1000px) {
    .rip-kalkulator-wrap {
        /*margin-bottom: 200px;*/
    }

    .background,
    .nepovinne {
        background-color: #ffffff;
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 45px
    }

    .rip-kalkulator-hlavicka {
        padding: 20px 1em;

        p.text {
            font-size: 22px;
            line-height: 27px;
            /*margin: 0;*/
        }
    }

    .rip-form-group {
        max-width: 100%;
    }

    .rip-form-group.adresa {
        padding-left: 1em;
        padding-right: 1em;
    }

    .switches-group,
    .nepovinne .dispozice-wrapper {
        max-width: 100%;
        margin: 60px auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;

        .rip-form-group {
            margin: 0;
        }

        .balkon-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            gap: 20px;
            margin: 0;
        }
    }

    .nepovinne {
        .rip-kalkulator-hlavicka {
            padding: 0;
        }

        .right.komunikace {
            flex-direction: column;
        }
    }
}

/* Pro zařízení s šířkou obrazovky 767px a menší */

@media screen and (max-width: 767px) {
    label[for="rip-kal-adresa"] {
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .icon-lokace {
            display: none;
        }

        .icon-wrapper svg {
            display: none;
        }

        #rip-kal-adresa {
            height: 50px;
            font-size: 18px;
        }
    }

    .rip-form-group.rozloha-bytu,
    .rip-form-group.stav-bytu,
    .rip-form-group.stav-kuchyne,
    .rip-form-group.stav-koupelny,
    .rip-form-group.stav-nemovitosti,
    .nepovinne .rip-form-group.rychlost-prodeje {
        margin-bottom: 63px;

        .grid-wrapper {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: auto auto;
            gap: 30px;
            /* mezery mezi prvky */
            align-items: stretch;
        }
    }

    .rip-form-group {

        #stav-bytu-doplnk,
        #stav-kuchyne-doplnk,
        #stav-koupelny-doplnk,
        #stav-nemovitosti-doplnk {
            font-style: normal;
            font-weight: 300;
            font-size: 14px;
            line-height: 19px;
            color: #B0B0B0;
        }
    }

    /* výsledná cena box */
    .rip-price-output {
        width: 100%;
        padding: 1em;
        margin-top: 2em;

        p {
            font-size: 18px;
            margin-bottom: 0.5em;
        }

        #rip-cena-rozsah {
            font-size: 18px;
        }

        #rip-vysledna-cena {
            visibility: hidden;
            display: none;
        }
    }

    .rip-form-group.rozloha-bytu {
        .inner-wrapper {
            .range-value {
                font-size: 48px;
            }
        }
    }

    .typ-vlastnictvi-wrapper {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto auto;
        /*padding: 0 1em;*/
        padding: 0;

        .rip-form-group.typ-vlastnictvi,
        .rip-form-group.typ-budovy {
            width: 100%;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            gap: 20px;
            padding: 0;
        }
    }

    .nepovinne {
        padding: 0;

        .dispozice-wrapper,
        .vyhody-wrapper {
            display: grid;
            grid-template-columns: 100%;
            grid-template-rows: auto auto;
            /*padding: 0 1em;*/
            padding: 0;
            margin-bottom: 30px;

            .rip-form-group.dispozice-bytu {
                width: 100%;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;
                gap: 20px;
                padding: 0;
            }

            #rip-kal-dispozice-bytu {
                width: 100%;
            }
        }

        .rip-form-group.ucel-nabidky {
            .ucel-karty {
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto auto auto;
                gap: 10px;
                margin-top: 30px;
                margin-bottom: 50px;

                .ucel-karta {

                    .karta-obsah {
                        font-size: 12px;
                        line-height: 1.3;
                        flex-direction: row;

                        img {
                            height: 40px;
                            width: 40px;
                        }

                        p {
                            display: none;
                        }

                        strong.desktop {
                            display: none;
                        }

                        strong.mobil {
                            display: block;
                            /*font-size: 21px;
                            line-height: 25px;*/
                        }

                        .znacka {
                            position: static;
                            width: 50px;
                            height: 50px;
                            top: 0px;
                            right: 0px;

                            .checked,
                            .unchecked {
                                height: 50px;
                                width: 50px;
                            }
                        }

                        *:last-child {
                            margin-left: auto;
                        }
                    }
                }
            }
        }

        .duvody-wrapper {
            .rip-form-group.duvody {
                display: grid;
                grid-template-columns: 100%;
                grid-template-rows: auto auto;
                /*padding: 0 1em;*/
                padding: 0;
                margin-bottom: 30px;
            }
        }

        /* Kontaktní pole */
        .rip-form-group.kontaktni-udaje {

            h3 {
                font-style: normal;
                font-weight: 600;
                font-size: 25px;
                line-height: 30px;
                color: var(--primary-color);
            }

            .grid-wrapper {
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto auto;
                gap: 20px;
                width: 100%;
                margin-bottom: 20px;
            }

            input[type="text"],
            input[type="email"] {
                width: 100%;
                height: 69px;
                background: #FFFFFF;
                box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
                border-radius: 20px;
            }

            .right.komunikace {
                flex-direction: column;
            }
        }
    }

    .rip-form-submit {
        width: 100%;

        .rip-submit-button {
            width: 100%;
        }
    }
}