/* Shared appearance for the contact form and the existing inquiry popups. */
#kontakt .formularz.legacy-lead-form-wrap {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 32px;
}

.legacy-lead-form-wrap,
.legacy-lead-form-wrap * {
    box-sizing: border-box;
}

#kontakt.popup_kontakt {
    max-width: 100%;
    max-height: 450px;
    max-height: min(450px, calc(100vh - 64px));
    overflow-y: auto;
    background: #f7f9f9 !important;
}

#kontakt.popup_kontakt .legacy-lead-form * {
    text-align: left;
}

.legacy-lead-form-wrap .nag {
    margin: 0 0 20px;
    color: #24494d;
    font-size: 22px;
    line-height: 1.35;
}

#kontakt .legacy-lead-form {
    width: 100%;
    margin: 0;
    color: #263b3e;
    font-size: 15px;
    line-height: 1.5;
}

#kontakt .legacy-lead-form fieldset {
    min-width: 0;
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid #d6e2e3;
    border-radius: 12px;
    background: #fff;
}

#kontakt .legacy-lead-form legend {
    width: auto;
    margin: 0;
    padding: 0 8px;
    color: #24494d;
    font-size: 16px;
    font-weight: 600;
}

#kontakt .legacy-lead-form label {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: #263b3e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

#kontakt .legacy-lead-form label span {
    margin-left: 6px;
    color: #617477;
    font-size: 12px;
    font-weight: 400;
}

#kontakt .legacy-lead-form input:not([type="hidden"]):not([type="submit"]),
#kontakt .legacy-lead-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #bdced0;
    border-radius: 7px;
    background: #fff;
    color: #263b3e;
    font: inherit;
    line-height: 1.5;
    box-shadow: none;
}

#kontakt .legacy-lead-form input::placeholder,
#kontakt .legacy-lead-form textarea::placeholder {
    color: #75878a;
    opacity: 1;
}

#kontakt .legacy-lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

#kontakt .legacy-lead-form fieldset > input:last-child,
#kontakt .legacy-lead-form fieldset > textarea:last-child {
    margin-bottom: 0;
}

#kontakt .legacy-lead-form input:not([type="hidden"]):not([type="submit"]):hover,
#kontakt .legacy-lead-form textarea:hover {
    border-color: #72989c;
}

#kontakt .legacy-lead-form input:focus,
#kontakt .legacy-lead-form textarea:focus {
    outline: 3px solid #d8e9ea;
    outline-offset: 2px;
    border-color: #49797e;
}

#kontakt .legacy-lead-form .legacy-lead-form__actions {
    min-height: 48px;
    text-align: right;
}

#kontakt .legacy-lead-form input.button {
    display: inline-block;
    width: auto;
    min-height: 46px;
    margin: 0;
    padding: 11px 24px;
    border: 1px solid #49797e;
    border-radius: 7px;
    background: #49797e;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
}

#kontakt.popup_kontakt .legacy-lead-form-wrap .legacy-lead-form textarea {
    width: 100%;
    text-align: left;
}

#kontakt.popup_kontakt .legacy-lead-form-wrap .legacy-lead-form input.button {
    width: auto;
    text-align: center;
}

#kontakt .legacy-lead-form input.button:hover {
    border-color: #355e62;
    background: #355e62;
    color: #fff;
}

#kontakt .legacy-lead-form .fzp_checking {
    max-height: 32px;
    margin: 7px 10px;
}

@media (max-width: 600px) {
    #kontakt.popup_kontakt {
        padding: 16px !important;
    }

    #kontakt .legacy-lead-form fieldset {
        padding: 16px;
    }

    #kontakt .legacy-lead-form input.button,
    #kontakt.popup_kontakt .legacy-lead-form-wrap .legacy-lead-form input.button {
        width: 100%;
    }
}
