/**
 * Sitewide popup kontakt
 *
 * Pôvodne WPCode snippet #112.
 */

.asp-contact-popup,
        .asp-contact-popup *,
        .asp-contact-popup *::before,
        .asp-contact-popup *::after{
            box-sizing: border-box !important;
        }

        .asp-contact-popup{
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            overflow: hidden !important;
            transition: opacity .28s ease, visibility .28s ease;
        }

        .asp-contact-popup.is-open{
            opacity: 1;
            visibility: visible;
        }

        .asp-contact-popup__backdrop{
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 18% 20%, rgba(255, 54, 0, 0.12), transparent 25%),
                radial-gradient(circle at 82% 78%, rgba(19, 108, 64, 0.10), transparent 24%),
                rgba(4, 10, 14, 0.74);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .asp-contact-popup__dialog{
            position: relative;
            z-index: 2;
            width: min(1240px, 100%);
            max-width: 1240px;
            max-height: min(90vh, 980px);
            border-radius: 34px;
            overflow: hidden !important;
            border: 1px solid rgba(255,255,255,0.12);
            background:
                linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
                rgba(10,10,10,0.72);
            backdrop-filter: blur(28px) saturate(145%);
            -webkit-backdrop-filter: blur(28px) saturate(145%);
            box-shadow:
                0 40px 120px rgba(0,0,0,0.5),
                inset 0 1px 0 rgba(255,255,255,0.08);
            color: #fff;
            transform: translateY(18px) scale(.985);
            transition: transform .28s ease;
        }

        .asp-contact-popup.is-open .asp-contact-popup__dialog{
            transform: translateY(0) scale(1);
        }

        .asp-contact-popup__inner{
            position: relative;
            max-height: min(90vh, 980px);
            padding: 34px;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        .asp-contact-popup__glow{
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
            filter: blur(80px);
            opacity: .9;
        }

        .asp-contact-popup__glow--one{
            width: 360px;
            height: 360px;
            left: -90px;
            top: -90px;
            background: rgba(255, 54, 0, 0.18);
        }

        .asp-contact-popup__glow--two{
            width: 340px;
            height: 340px;
            right: -90px;
            bottom: -120px;
            background: rgba(19, 73, 108, 0.22);
        }

        .asp-contact-popup__close{
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 5;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 999px;
            background: rgba(255,255,255,0.08);
            color: #fff;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .asp-contact-popup__close:hover{
            transform: translateY(-1px);
            background: rgba(255,255,255,0.12);
        }

        .asp-contact-popup__grid{
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr);
            gap: 28px;
            align-items: stretch;
            width: 100%;
            min-width: 0;
        }

        .asp-contact-popup__grid > *{
            min-width: 0 !important;
        }

        .asp-contact-popup__aside,
        .asp-contact-popup__form-shell{
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.035);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 24px 70px rgba(0,0,0,0.22);
            border-radius: 30px;
            min-width: 0;
        }

        .asp-contact-popup__aside{
            padding: 30px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .asp-contact-popup__form-wrap{
            min-width: 0;
            width: 100%;
        }

        .asp-contact-popup__form-shell{
            position: relative;
            overflow: hidden;
            padding: 24px;
            height: 100%;
            width: 100%;
        }

        .asp-contact-popup__form-shell::before{
            content: "";
            position: absolute;
            left: -60px;
            bottom: -60px;
            width: 220px;
            height: 220px;
            border-radius: 999px;
            background: rgba(19, 108, 64, 0.12);
            filter: blur(60px);
            pointer-events: none;
        }

        .asp-contact-popup__eyebrow{
            margin: 0 !important;
            font-size: 12px;
            line-height: 1;
            color: rgba(255,255,255,0.56);
        }

        .asp-contact-popup__title{
            margin: 0;
            font-size: clamp(42px, 4.3vw, 78px);
            line-height: .9;
            font-weight: 300;
            color: #fff;
            text-wrap: balance;
        }

        .asp-contact-popup__lead{
            margin: 0;
            max-width: 620px;
            font-size: 16px;
            line-height: 1.75;
            color: rgba(255,255,255,0.74);
        }

        .asp-sales-card{
            position: relative;
            overflow: hidden;
            margin-top: 6px;
            border-radius: 28px;
            padding: 22px;
            background:
                linear-gradient(135deg, rgba(255, 54, 0, 0.10), rgba(255, 132, 3, 0.08) 42%, rgba(19, 108, 64, 0.10)),
                rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.10);
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.06),
                0 18px 48px rgba(0,0,0,0.18);
        }

        .asp-sales-card::before{
            content: "";
            position: absolute;
            right: -40px;
            top: -40px;
            width: 160px;
            height: 160px;
            border-radius: 999px;
            background: rgba(255, 188, 203, 0.16);
            filter: blur(50px);
            pointer-events: none;
        }

        .asp-sales-card__top,
        .asp-sales-card__info,
        .asp-sales-card__footer{
            position: relative;
            z-index: 1;
        }

        .asp-sales-card__top{
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .asp-sales-card__avatar{
            width: 78px;
            height: 78px;
            min-width: 78px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: 0 12px 30px rgba(0,0,0,0.22);
            background: rgba(255,255,255,0.06);
        }

        .asp-sales-card__avatar img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .asp-sales-card__meta{
            min-width: 0;
        }

        .asp-sales-card__label{
            margin-bottom: 6px;
            font-size: 11px;
            line-height: 1;
            color: rgba(255,255,255,0.54);
        }

        .asp-sales-card__name{
            font-size: clamp(26px, 2.4vw, 38px);
            line-height: .98;
            font-weight: 600;
            color: #fff;
            text-wrap: balance;
            word-break: break-word;
        }

        .asp-sales-card__role{
            margin-top: 8px;
            font-size: 14px;
            line-height: 1.5;
            color: rgba(255,255,255,0.72);
        }

        .asp-sales-card__info{
            margin-top: 20px;
            display: grid;
            gap: 12px;
        }

        .asp-sales-card__item{
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 14px 16px;
            border-radius: 18px;
            text-decoration: none !important;
            color: #fff !important;
            background: rgba(255,255,255,0.055);
            border: 1px solid rgba(255,255,255,0.08);
            transition: transform .2s ease, background .2s ease, border-color .2s ease;
            min-width: 0;
        }

        .asp-sales-card__item:hover{
            transform: translateY(-1px);
            background: rgba(255,255,255,0.075);
            border-color: rgba(255,255,255,0.12);
        }

        .asp-sales-card__item-label{
            font-size: 11px;
            line-height: 1;
            color: rgba(255,255,255,0.52);
        }

        .asp-sales-card__item strong{
            font-size: 16px;
            line-height: 1.45;
            font-weight: 600;
            color: #fff;
            word-break: break-word;
        }

        .asp-sales-card__footer{
            margin-top: 18px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .asp-sales-card__pill{
            display: inline-flex;
            align-items: center;
            min-height: 38px;
            padding: 9px 14px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.08);
            color: #fff;
            font-size: 13px;
            line-height: 1;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
            transition: transform .2s ease, filter .2s ease;
        }

        .asp-sales-card__pill:hover{
            transform: translateY(-2px);
            filter: brightness(1.06);
        }

        .asp-sales-card__pill--orange{
            background: #ff3600;
            border-color: rgba(255,54,0,.34);
        }

        .asp-sales-card__pill--green{
            background: #136c40;
            border-color: rgba(19,108,64,.34);
        }

        .asp-contact-popup .frm_forms{
            position: relative;
            z-index: 1;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

        .asp-contact-popup .frm_forms form{
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

        .asp-contact-popup .frm_fields_container,
        .asp-contact-popup .frm_form_fields{
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

        .asp-contact-popup .frm_form_field{
            margin-bottom: 0 !important;
            min-width: 0 !important;
            width: 100% !important;
        }

        .asp-contact-popup .frm_form_field:not(.frm_submit_container){
            display: flex !important;
            flex-direction: column !important;
            gap: 10px !important;
        }

        .asp-contact-popup .frm_primary_label,
        .asp-contact-popup label{
            display: block !important;
            margin: 0 !important;
            padding: 0 !important;
            color: rgba(255,255,255,0.78) !important;
            font-size: 13px !important;
            line-height: 1.3 !important;
        }

        .asp-contact-popup .frm_top_container .frm_primary_label{
            margin: 0 !important;
			margin-top: 20px !important;
        }

        .asp-contact-popup .frm_full,
        .asp-contact-popup .frm_first,
        .asp-contact-popup .frm_last,
        .asp-contact-popup .frm_half{
            float: none !important;
            clear: none !important;
            margin: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }

        .asp-contact-popup input[type="text"],
        .asp-contact-popup input[type="email"],
        .asp-contact-popup input[type="tel"],
        .asp-contact-popup input[type="number"],
        .asp-contact-popup input[type="url"],
        .asp-contact-popup textarea,
        .asp-contact-popup select{
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            min-height: 58px !important;
            padding: 14px 16px !important;
            border-radius: 18px !important;
            border: 1px solid rgba(255,255,255,0.10) !important;
            background: rgba(255,255,255,0.055) !important;
            color: #fff !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            appearance: none !important;
        }

        .asp-contact-popup textarea{
            min-height: 150px !important;
            resize: vertical;
        }

        .asp-contact-popup input::placeholder,
        .asp-contact-popup textarea::placeholder{
            color: rgba(255,255,255,0.44) !important;
        }

        .asp-contact-popup input:focus,
        .asp-contact-popup textarea:focus,
        .asp-contact-popup select:focus{
            outline: none !important;
            border-color: rgba(255,132,3,.38) !important;
            box-shadow:
                0 0 0 1px rgba(255,132,3,.18),
                0 12px 30px rgba(255, 54, 0, 0.08) !important;
        }

        .asp-contact-popup .frm_submit{
            margin-top: 8px !important;
        }

        .asp-contact-popup .frm_submit_container{
            margin: 0 !important;
            width: 100% !important;
        }

        .asp-contact-popup .frm_button_submit,
        .asp-contact-popup .frm_submit button,
        .asp-contact-popup button.frm_button_submit{
            min-height: 58px !important;
            padding: 14px 24px !important;
            border-radius: 999px !important;
            border: 1px solid rgba(255,255,255,0.12) !important;
            background: linear-gradient(135deg, #ff3600 0%, #ff8403 100%) !important;
            color: #fff !important;
            font-size: 15px !important;
            font-weight: 700 !important;
            box-shadow: 0 14px 38px rgba(255, 54, 0, 0.22) !important;
            transition: transform .2s ease, filter .2s ease !important;
        }

        .asp-contact-popup .frm_button_submit:hover,
        .asp-contact-popup .frm_submit button:hover,
        .asp-contact-popup button.frm_button_submit:hover{
            transform: translateY(-1px);
            filter: brightness(1.04);
        }

        .asp-contact-popup .frm_error,
        .asp-contact-popup .frm_error_style,
        .asp-contact-popup .frm_required{
            color: #ffbccb !important;
        }

        .asp-contact-popup .frm_description,
        .asp-contact-popup .frm_help{
            color: rgba(255,255,255,0.52) !important;
        }

        @media (min-width: 981px){
            .asp-contact-popup .frm_form_fields{
                display: grid !important;
                grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
                column-gap: 16px !important;
                row-gap: 18px !important;
                align-items: start !important;
            }

            .asp-contact-popup .frm_full,
            .asp-contact-popup .frm_submit_container{
                grid-column: 1 / -1 !important;
            }
        }

        @media (max-width: 980px){
            .asp-contact-popup{
                padding: 14px;
            }

            .asp-contact-popup__dialog{
                width: min(100%, 1000px);
            }

            .asp-contact-popup__inner{
                padding: 18px;
            }

            .asp-contact-popup__grid{
                grid-template-columns: 1fr;
            }

            .asp-contact-popup .frm_form_fields{
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
        }

        @media (max-width: 640px){
            .asp-contact-popup__dialog{
                border-radius: 24px;
                max-height: 92vh;
            }

            .asp-contact-popup__inner{
                max-height: 92vh;
                padding: 16px;
            }

            .asp-contact-popup__aside,
            .asp-contact-popup__form-shell,
            .asp-sales-card{
                border-radius: 22px;
            }

            .asp-contact-popup__aside{
                padding: 22px;
            }

            .asp-contact-popup__form-shell{
                padding: 18px;
            }

            .asp-contact-popup__title{
                font-size: clamp(32px, 10vw, 48px);
            }

            .asp-contact-popup input[type="text"],
            .asp-contact-popup input[type="email"],
            .asp-contact-popup input[type="tel"],
            .asp-contact-popup input[type="number"],
            .asp-contact-popup input[type="url"],
            .asp-contact-popup textarea,
            .asp-contact-popup select{
                min-height: 54px !important;
                border-radius: 16px !important;
            }
        }
