
/* =========================================
   LIFE – SVĚTLÝ POPTÁVKOVÝ FORMULÁŘ
========================================= */

.formular {
    max-width: 100%;
    margin: 25px auto;
    color: #303030;
    font-family: 'Open Sans', Arial, sans-serif;

    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.025);
    box-sizing: border-box;
}

.formular legend {
    font-size: 21px;
    font-weight: 700;
    color: #292929;
    padding-bottom: 20px;
    width: 100%;
}

.formular .table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
}

.formular .mensi {
    min-width: 0;
}

.formular .jm1,
.formular .clearfix {
    font-size: 14px;
    font-weight: 600;
    color: #454545;
    margin-bottom: 8px;
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #e3e5e7;
    border-radius: 7px;
    background: #fcfcfc;
    padding: 14px 15px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    transition: .2s ease;
}

.formular input[type="text"]:focus,
.formular input[type="email"]:focus,
.formular input[type="tel"]:focus,
.formular textarea:focus {
    outline: none;
    border-color: #b5cbdc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(181,203,220,.18);
}

.formular input::placeholder,
.formular textarea::placeholder {
    color: #b5b8bb;
}

.formular textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.formular .sprostorem {
    margin-top: 20px;
}

.formular .sprostorem label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    line-height: 1.6;
}

.formular input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #333;
    cursor: pointer;
    flex-shrink: 0;
}

.formular a {
    color: #444;
}

.formular .dropzone {
    border: 2px dashed #dedfe1;
    border-radius: 9px;
    background: #fdfdfd;
    min-height: 130px;
    padding: 25px;
    margin: 25px 0;
    transition: .2s ease;
}

.formular .dropzone:hover {
    border-color: #b5cbdc;
    background: #f7fafc;
}

.formular .dropzone .dz-message {
    color: #666;
    font-size: 15px;
    font-weight: 600;
}

.formular .odeslat-cont {
    text-align: right;
}

.formular input.odeslat {
    width: auto;
    min-width: 200px;
    border: 0;
    border-radius: 7px;
    background: #292929;
    color: #fff;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.formular input.odeslat:hover {
    background: #484848;
}

.formular table.priloha {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
    margin-top: 20px;
}

.formular table.priloha td {
    padding: 13px;
    border: 1px solid #ededed;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================
   DĚKOVACÍ STRÁNKA
========================================= */

.lf-confirmation {
    max-width: 850px;
    margin: 40px auto;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
}

.lf-confirmation__box {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(0,0,0,.045);
}

.lf-confirmation__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #e7f6e9;
    color: #249b45;
    font-size: 46px;
    line-height: 76px;
    font-weight: 700;
}

.lf-confirmation__box h1 {
    color: #252525;
    font-size: 29px;
    font-weight: 700;
    margin: 0 0 16px;
    border: 0;
    padding: 0;
}

.lf-confirmation__box p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.lf-confirmation__info {
    background: #f7f9f7;
    border: 1px solid #edf0ed;
    border-radius: 9px;
    padding: 22px;
    margin: 28px 0;
    color: #555;
    line-height: 1.8;
}

.lf-confirmation__contact {
    margin: 25px 0;
    line-height: 1.9;
}

.lf-confirmation__contact strong {
    color: #292929;
}

.lf-confirmation__contact a {
    color: #444;
    text-decoration: none;
}

.lf-confirmation__contact a:hover {
    text-decoration: underline;
}

.lf-confirmation__button {
    display: inline-block;
    background: #292929;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 7px;
    text-decoration: none !important;
    font-weight: 700;
    transition: .2s ease;
}

.lf-confirmation__button:hover {
    background: #484848;
}


/* =========================================
   MOBILNÍ ZOBRAZENÍ
========================================= */

@media (max-width: 650px) {

    .formular {
        padding: 18px 15px;
    }

    .formular .table {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .formular input.odeslat {
        width: 100%;
        box-sizing: border-box;
    }

    .formular .odeslat-cont {
        text-align: center;
    }

    .formular table.priloha,
    .formular table.priloha tbody,
    .formular table.priloha tr,
    .formular table.priloha td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .lf-confirmation__box {
        padding: 30px 18px;
    }

    .lf-confirmation__box h1 {
        font-size: 24px;
    }

    .lf-confirmation__button {
        display: block;
    }
}


/* =========================================
   OPRAVA RESPONZIVITY – sjednocení stylů webu
   ========================================= */

/* Izolace formuláře od obecných stylů webu */
.formular,
.formular *,
.formular *::before,
.formular *::after {
    box-sizing: border-box;
}

.formular {
    width: 100%;
    max-width: 100%;
    margin: 25px auto;
    padding: 30px;
}

.formular form,
.formular fieldset {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.formular fieldset {
    padding: 0;
    border: 0;
}

.formular .table {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.formular .mensi,
.formular .jm2 {
    width: 100%;
    min-width: 0;
}

.formular .jm1,
.formular .clearfix {
    display: block;
    width: 100%;
}

.formular .jm2 input[type="text"],
.formular .jm2 input[type="email"],
.formular .jm2 input[type="tel"],
.formular textarea.vzkaz {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: auto;
    min-height: 48px;
    margin: 0;
}

.formular textarea.vzkaz {
    min-height: 150px;
}

.formular .sprostorem {
    width: 100%;
}

.formular .dropzone {
    width: 100%;
    max-width: 100%;
}

.formular table.priloha {
    table-layout: fixed;
}

@media (max-width: 650px) {
    .formular {
        /* Rezerva po stranách pro úzké a zaoblené displeje */
        width: calc(100% - 32px);
        max-width: 560px;
        margin: 18px auto;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .formular .table {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 17px;
    }

    .formular .mensi,
    .formular .jm2,
    .formular .jm2 input[type="text"],
    .formular .jm2 input[type="email"],
    .formular .jm2 input[type="tel"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .formular input[type="text"],
    .formular input[type="email"],
    .formular input[type="tel"],
    .formular textarea {
        font-size: 16px;
        padding: 13px 14px;
    }

    .formular .sprostorem {
        margin-top: 17px;
    }

    .formular .dropzone {
        min-height: 115px;
        padding: 20px 12px;
        margin: 20px 0;
    }

    .formular table.priloha,
    .formular table.priloha tbody,
    .formular table.priloha tr,
    .formular table.priloha td {
        display: block;
        width: 100%;
    }

    .formular table.priloha td {
        padding: 11px 12px;
    }

    .formular .odeslat-cont {
        text-align: stretch;
    }

    .formular input.odeslat {
        display: block;
        width: 100% !important;
        min-width: 0;
    }
}
