/* Lightbox for CF7 — Milan Maček | DOXY.cz — https://doxy.cz */
.lfcf7-overlay[hidden] { display: none !important; }
.lfcf7-overlay,
.lfcf7-overlay * { box-sizing: border-box; }
.lfcf7-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow: auto;
    background: rgba(12, 20, 35, .66);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: lfcf7-fade-in .2s ease-out both;
}
.lfcf7-dialog {
    --lfcf7-accent: #0766dd;
    position: relative;
    flex: 0 1 auto;
    width: min(100%, var(--lfcf7-width, 720px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #1d2735;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
    outline: none;
    animation: lfcf7-slide-in .24s cubic-bezier(.2,.8,.2,1) both;
}
.lfcf7-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 20px 24px;
    border-bottom: 1px solid #e9edf2;
}
.lfcf7-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #17253a;
    font-size: clamp(18px, 2.4vw, 23px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}
.lfcf7-header-spacer { flex: 1; }
.lfcf7-close,
.lfcf7-close:hover,
.lfcf7-close:focus {
    appearance: none;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #f1f4f8;
    color: #44566d;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    text-decoration: none;
    transform: none;
    transition: color .15s ease, background-color .15s ease;
}
.lfcf7-close:hover { background: #e3ebf7; color: var(--lfcf7-accent, #0766dd); }
.lfcf7-close:focus-visible { outline: 3px solid var(--lfcf7-accent, #0766dd); outline-offset: 2px; }
.lfcf7-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}
.lfcf7-content > :first-child { margin-top: 0; }
.lfcf7-content > :last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .lfcf7-overlay { padding: 12px; }
    .lfcf7-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 13px; }
    .lfcf7-header { padding: 14px 16px; }
    .lfcf7-content { padding: 18px 16px; }
    .lfcf7-title { font-size: 19px; }
}
@keyframes lfcf7-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lfcf7-slide-in { from { opacity: 0; transform: translateY(10px) scale(.988); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .lfcf7-overlay, .lfcf7-dialog { animation: none; }
    .lfcf7-close { transition: none; }
}
