/**
 * =========================================================
 * LB – KONFIGURÁTOR ZASTŘEŠENÍ
 * Frontend CSS
 * =========================================================
 */


/* ---------------------------------------------------------
   ZÁKLAD
   --------------------------------------------------------- */

.lb-roof-form-wrapper {
    --lb-primary: #225767;
    --lb-primary-hover: #195a66;
    --lb-dark: #1d3138;
    --lb-accent: #e7ae40;

    --lb-bg: #f5f7f7;
    --lb-bg-soft: #f8faf9;
    --lb-white: #ffffff;

    --lb-border: #d9e1e2;
    --lb-border-dark: #bdcacc;

    --lb-text: #26383e;
    --lb-muted: #65767b;

    --lb-success: #237a4b;
    --lb-success-bg: #edf8f2;

    --lb-error: #b42318;
    --lb-error-bg: #fff1f0;

    width: 100%;
    max-width: 980px;
    margin: 40px auto;
    color: var(--lb-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
}

.lb-roof-form-wrapper *,
.lb-roof-form-wrapper *::before,
.lb-roof-form-wrapper *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   FORMULÁŘ
   --------------------------------------------------------- */

.lb-roof-form {
    width: 100%;
    margin: 0;
}

.lb-roof-form.is-sending {
    opacity: 0.86;
}


/* ---------------------------------------------------------
   SEKCE
   --------------------------------------------------------- */

#choose-model {background: linear-gradient(135deg, rgba(42, 191, 213, 0.12), rgba(231, 174, 64, 0.12)), #f8fcfd;}
#model-size {background: linear-gradient(135deg, rgba(231, 174, 64, 0.14), rgba(255, 248, 232, 0.9)), #fffaf0;}
#model-settings {background: linear-gradient(135deg, rgba(34, 87, 103, 0.10), rgba(42, 191, 213, 0.10)), #f4fbfd;}
#site-location {background: linear-gradient(135deg, rgba(120, 150, 160, 0.13), rgba(238, 246, 248, 0.95)), #f6fafb;}
#contact {background: linear-gradient(135deg, rgba(116, 210, 198, 0.13), rgba(245, 255, 252, 0.95)), #f5fffc;}


.lb-roof-section {
    margin: 0 0 28px;
    padding: 34px 38px;
    background: var(--lb-white);
    border: 1px solid var(--lb-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(29, 49, 56, 0.05);
}



.lb-roof-section__title {
    margin: 0 0 24px;
    padding: 0 0 13px;
    color: var(--lb-primary);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    border-bottom: 2px solid var(--lb-accent);
}


/* ---------------------------------------------------------
   POLE
   --------------------------------------------------------- */

.lb-roof-field {
    margin: 0 0 24px;
}

.lb-roof-field:last-child {
    margin-bottom: 0;
}

.lb-roof-label {
    display: block;
    margin: 0 0 8px;
    color: var(--lb-dark);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.lb-roof-label > span[aria-hidden="true"],
.lb-roof-fieldset .lb-roof-label > span[aria-hidden="true"] {
    color: #b42318;
}


/* ---------------------------------------------------------
   NÁPOVĚDA
   --------------------------------------------------------- */

.lb-roof-help {
    margin: -2px 0 14px;
    color: var(--lb-muted);
    font-size: 16px;
    line-height: 1.55;
}

label.lb-roof-radio small.lb-roof-help {
font-size: 14px !important;
text-align: left;
    display: block;
    padding-top: 5px;
}

.lb-roof-section > .lb-roof-help {
    margin: 0 0 24px;
}


/* ---------------------------------------------------------
   INPUT / SELECT / TEXTAREA
   --------------------------------------------------------- */

.lb-roof-input,
.lb-roof-select,
.lb-roof-textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 11px 14px;

    color: var(--lb-dark);
    background: var(--lb-white);

    border: 1px solid var(--lb-border-dark);
    border-radius: 7px;

    font: inherit;
    font-size: 16px;
    line-height: 1.4;

    box-shadow: none;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.lb-roof-textarea {
    min-height: 135px;
    resize: vertical;
}

.lb-roof-select {
    cursor: pointer;
}

.lb-roof-input:hover,
.lb-roof-select:hover,
.lb-roof-textarea:hover {
    border-color: var(--lb-primary);
}

.lb-roof-input:focus,
.lb-roof-select:focus,
.lb-roof-textarea:focus {
    border-color: var(--lb-primary);
    box-shadow: 0 0 0 3px rgba(34, 87, 103, 0.13);
}


/* Placeholder */

.lb-roof-input::placeholder,
.lb-roof-textarea::placeholder {
    color: #91a0a4;
    opacity: 1;
}


/* Disabled */

.lb-roof-input:disabled,
.lb-roof-select:disabled,
.lb-roof-textarea:disabled {
    color: #7c898d;
    background: #f0f3f3;
    border-color: #dce3e4;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   DOPORUČENÝ ROZMĚR
   --------------------------------------------------------- */

.lb-roof-field--recommended {
    margin-top: 20px;
    padding: 20px 22px;
    background: #edf4f5;
    border-left: 4px solid var(--lb-primary);
    border-radius: 7px;
}

.lb-roof-field--recommended .lb-roof-label {
    color: var(--lb-primary);
}

.lb-roof-field--recommended .lb-roof-input {
    min-height: auto;
    padding: 0;
    color: var(--lb-dark);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 22px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   GRID
   --------------------------------------------------------- */

.lb-roof-grid {
    display: grid;
    width: 100%;
    gap: 22px;
}

.lb-roof-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* ---------------------------------------------------------
   FIELDSET
   --------------------------------------------------------- */

.lb-roof-fieldset {
    min-width: 0;
    margin: 0 0 27px;
    padding: 0;
    border: 0;
}

.lb-roof-fieldset:last-child {
    margin-bottom: 0;
}

.lb-roof-fieldset legend {
    width: auto;
    padding: 0;
}


/* ---------------------------------------------------------
   RADIO OPTIONS
   --------------------------------------------------------- */

.lb-roof-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lb-roof-radio {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}


/*
 * Vlastní radio.
 * Input zůstává přístupný klávesnicí/screen readerem.
 */

.lb-roof-radio > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.001;
    pointer-events: none;
}

.lb-roof-radio > span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 16px;

    color: var(--lb-dark);
    background: var(--lb-white);

    border: 1px solid var(--lb-border-dark);
    border-radius: 7px;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.lb-roof-radio > span::before {
    content: "";
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-right: 9px;

    background: var(--lb-white);
    border: 2px solid #93a3a7;
    border-radius: 50%;

    box-shadow: inset 0 0 0 3px var(--lb-white);
}

.lb-roof-radio:hover > span {
    border-color: var(--lb-primary);
    background: #f7faf9;
}

.lb-roof-radio > input:checked + span {
    color: var(--lb-primary);
    background: #edf4f5;
    border-color: var(--lb-primary);
}

.lb-roof-radio > input:checked + span::before {
    background: var(--lb-primary);
    border-color: var(--lb-primary);
}

.lb-roof-radio > input:focus-visible + span {
    outline: 3px solid rgba(34, 87, 103, 0.18);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   CHECKBOX
   --------------------------------------------------------- */

.lb-roof-checkbox {
    position: relative;
    display: inline-block;
    margin: 0;
    cursor: pointer;
}

.lb-roof-checkbox > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.001;
    pointer-events: none;
}

.lb-roof-checkbox > span {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;

    padding: 7px 12px 7px 42px;

    color: var(--lb-dark);
    font-size: 15px;
    font-weight: 600;

    border-radius: 6px;
}

.lb-roof-checkbox > span::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 20px;
    height: 20px;

    background: var(--lb-white);
    border: 2px solid #93a3a7;
    border-radius: 4px;

    transform: translateY(-50%);
}

.lb-roof-checkbox > input:checked + span::before {
    background-color: var(--lb-primary);
    border-color: var(--lb-primary);
}

.lb-roof-checkbox > input:checked + span::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;

    width: 8px;
    height: 4px;

    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform:
        translateY(-65%)
        rotate(-45deg);
}

.lb-roof-checkbox > input:focus-visible + span {
    outline: 3px solid rgba(34, 87, 103, 0.18);
}


/* ---------------------------------------------------------
   PODMÍNĚNÉ ČÁSTI
   --------------------------------------------------------- */

.lb-roof-conditional {
    margin: 5px 0 25px;
    padding: 22px 24px;

    background: var(--lb-bg-soft);

    border: 1px solid var(--lb-border);
    border-radius: 8px;
}

.lb-roof-conditional > .lb-roof-field:last-child,
.lb-roof-conditional > .lb-roof-fieldset:last-child {
    margin-bottom: 0;
}


/*
 * Důležité – hidden musí mít přednost
 * před layoutovými pravidly.
 */

.lb-roof-form [hidden] {
    display: none !important;
}


/* ---------------------------------------------------------
   INPUT + JEDNOTKA
   --------------------------------------------------------- */

.lb-roof-input-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.lb-roof-input-unit .lb-roof-input {
    padding-right: 48px;
}

.lb-roof-input-unit > span {
    position: absolute;
    right: 15px;

    color: var(--lb-muted);
    font-size: 14px;
    font-weight: 700;

    pointer-events: none;
}


/* ---------------------------------------------------------
   HONEYPOT
   --------------------------------------------------------- */

.lb-roof-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
    opacity: 0 !important;

    pointer-events: none !important;
}


/* ---------------------------------------------------------
   RESPONSE
   --------------------------------------------------------- */

.lb-roof-form-response {
    display: none;
    margin: 0 0 24px;
    padding: 15px 18px;

    border-radius: 7px;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.lb-roof-form-response:not(:empty) {
    display: block;
}

.lb-roof-form-response.is-success {
    color: var(--lb-success);
    background: var(--lb-success-bg);
    border: 1px solid rgba(35, 122, 75, 0.25);
}

.lb-roof-form-response.is-error {
    color: var(--lb-error);
    background: var(--lb-error-bg);
    border: 1px solid rgba(180, 35, 24, 0.25);
}

.lb-roof-form-response.is-info {
    color: var(--lb-primary);
    background: #eef5f6;
    border: 1px solid rgba(34, 87, 103, 0.2);
}


/* ---------------------------------------------------------
   SUBMIT
   --------------------------------------------------------- */

.lb-roof-submit {
    margin-top: 32px;
    text-align: center;
}

.lb-roof-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 280px;
    min-height: 54px;

    margin: 0;
    padding: 13px 28px;

    color: var(--lb-dark);
    background: var(--lb-accent);

    border: 0;
    border-radius: 7px;

    font: inherit;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(29, 49, 56, 0.13);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.lb-roof-submit-button:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);

    box-shadow:
        0 6px 16px rgba(29, 49, 56, 0.17);
}

.lb-roof-submit-button:focus-visible {
    outline: 3px solid rgba(231, 174, 64, 0.38);
    outline-offset: 3px;
}

.lb-roof-submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.lb-roof-submit-note {
    max-width: 650px;
    margin: 13px auto 0;

    color: var(--lb-muted);
    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   BROWSER VALIDACE
   --------------------------------------------------------- */

.lb-roof-input:user-invalid,
.lb-roof-select:user-invalid,
.lb-roof-textarea:user-invalid {
    border-color: #c8534a;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 820px) {

    .lb-roof-form-wrapper {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .lb-roof-section {
        padding: 28px 25px;
    }

    .lb-roof-section__title {
        font-size: 23px;
    }

    .lb-roof-grid--2 {
        gap: 17px;
    }
}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .lb-roof-form-wrapper {
        margin: 24px auto;
        font-size: 15px;
    }

    .lb-roof-section {
        margin-bottom: 18px;
        padding: 23px 18px;

        border-radius: 8px;

        box-shadow:
            0 2px 12px rgba(29, 49, 56, 0.045);
    }

    .lb-roof-section__title {
        margin-bottom: 20px;
        padding-bottom: 11px;

        font-size: 21px;
    }

    .lb-roof-field {
        margin-bottom: 20px;
    }

    .lb-roof-label {
        font-size: 15px;
    }

    .lb-roof-help {
        font-size: 15px;
    }

    .lb-roof-input,
    .lb-roof-select,
    .lb-roof-textarea {
        min-height: 49px;

        /*
         * 16px zabraňuje automatickému zoomu
         * formuláře na iOS.
         */
        font-size: 16px;
    }

    .lb-roof-grid--2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lb-roof-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lb-roof-radio {
        width: 100%;
    }

    .lb-roof-radio > span {
        width: 100%;
        min-height: 47px;
        padding: 10px 13px;
    }

    .lb-roof-conditional {
        padding: 18px 16px;
    }

    .lb-roof-field--recommended {
        padding: 17px 18px;
    }

    .lb-roof-field--recommended .lb-roof-input {
        font-size: 20px;
    }

    .lb-roof-submit {
        margin-top: 24px;
    }

    .lb-roof-submit-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;

        padding-left: 18px;
        padding-right: 18px;
    }
}


/* ---------------------------------------------------------
   EXTRA MALÉ MOBILY
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .lb-roof-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .lb-roof-section__title {
        font-size: 20px;
    }

    .lb-roof-conditional {
        padding-left: 13px;
        padding-right: 13px;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .lb-roof-form-wrapper *,
    .lb-roof-form-wrapper *::before,
    .lb-roof-form-wrapper *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}