/* VYQON download modal - uses the site's brand palette (blue #0a4b95 / #0f82cb, green #1da64a, yellow #f6c30f). */
.vyqon-gate[hidden] { display: none; }
.vyqon-gate {
    --g-blue-dark: #0a4b95;
    --g-blue: #0f82cb;
    --g-green: #1da64a;
    --g-green-dark: #13853a;
    --g-green-soft: #e9f7ee;
    --g-yellow: #f6c30f;
    --g-text: #1d2f43;
    --g-muted: #657285;
    --g-border: #d6dfe7;
    --g-surface: #f3f7fb;
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
    font-family: "Inter", sans-serif;
}
.vyqon-gate__backdrop { position: absolute; inset: 0; background: rgba(10, 45, 85, 0.55); backdrop-filter: blur(2px); }
.vyqon-gate__dialog {
    position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow: auto;
    background: #fff; color: var(--g-text); border-radius: 14px; padding: 30px 28px 22px;
    box-shadow: 0 24px 60px rgba(10, 45, 85, 0.35);
}
.vyqon-gate__bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--g-blue-dark), var(--g-blue) 40%, var(--g-green) 75%, var(--g-yellow)); }
.vyqon-gate__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--g-surface); font-size: 22px; line-height: 1; color: var(--g-muted); cursor: pointer; }
.vyqon-gate__close:hover { background: var(--g-green-soft); color: var(--g-blue-dark); }
.vyqon-gate__logo { display: block; height: 48px; width: auto; max-width: 70%; margin: 4px auto 16px; }
.vyqon-gate__title { text-align: center; margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--g-blue-dark); }
.vyqon-gate__lead { text-align: center; margin: 0 0 18px; color: var(--g-muted); font-size: 0.93rem; line-height: 1.5; }
.vyqon-gate__label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--g-text); }
.vyqon-gate__input { width: 100%; box-sizing: border-box; padding: 12px 13px; font: inherit; font-size: 16px; border: 1px solid var(--g-border); border-radius: 8px; background: #fff; color: var(--g-text); }
.vyqon-gate__input::placeholder { color: #98a4b3; }
.vyqon-gate__input:focus { outline: none; border-color: var(--g-blue); box-shadow: 0 0 0 3px rgba(15, 130, 203, 0.2); }
.vyqon-gate__input[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
.vyqon-gate__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vyqon-gate__check { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 2px; font-size: 0.83rem; line-height: 1.45; color: var(--g-muted); cursor: pointer; }
.vyqon-gate__check input { margin-top: 2px; accent-color: var(--g-green); }
.vyqon-gate__error { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; background: #fdecea; color: #a93226; font-size: 0.88rem; }
.vyqon-gate__error[hidden], .vyqon-gate__status[hidden] { display: none; }
.vyqon-gate__status { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--g-green-soft); color: var(--g-green-dark); font-size: 0.88rem; }
.vyqon-gate__status a { color: var(--g-blue-dark); font-weight: 600; }
.vyqon-gate__submit { width: 100%; margin-top: 16px; padding: 13px 16px; font: inherit; font-size: 1rem; font-weight: 700; color: #fff; background: var(--g-green); border: 0; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.vyqon-gate__submit:hover:not(:disabled) { background: var(--g-green-dark); }
.vyqon-gate__submit:focus-visible { outline: 3px solid rgba(15, 130, 203, 0.4); outline-offset: 2px; }
.vyqon-gate__submit:disabled { opacity: 0.7; cursor: default; }
.vyqon-gate__fine { margin: 14px 0 0; font-size: 0.74rem; line-height: 1.45; color: var(--g-muted); text-align: center; }
html.vyqon-gate-open { overflow: hidden; }
.vyqon-gated-pdf { cursor: pointer; }

/* Extended form: name / location / phone */
.vyqon-gate__dialog { max-width: 500px; }
.vyqon-gate__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vyqon-gate__field { margin-bottom: 12px; min-width: 0; }
.vyqon-gate__field[hidden], .vyqon-gate__input[hidden] { display: none; }
.vyqon-gate__opt { font-weight: 400; color: var(--g-muted); }
select.vyqon-gate__input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230a4b95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center; }
select.vyqon-gate__input:disabled { background-color: var(--g-surface); color: #98a4b3; cursor: not-allowed; }
.vyqon-gate__phone { display: flex; align-items: stretch; }
.vyqon-gate__dial { display: inline-flex; align-items: center; padding: 0 12px; background: var(--g-surface); border: 1px solid var(--g-border); border-right: 0; border-radius: 8px 0 0 8px; color: var(--g-blue-dark); font-weight: 600; font-size: 0.95rem; }
.vyqon-gate__phone .vyqon-gate__input { border-radius: 0 8px 8px 0; }
.vyqon-gate__check { margin-top: 4px; }
@media (max-width: 480px) { .vyqon-gate__row { grid-template-columns: 1fr; gap: 0; } .vyqon-gate__dialog { padding: 26px 20px 20px; } }

/* ONE consistent green download button for EVERY report/PDF link in any post or page, old or new,
   however it was added in the editor (text link, button, File block, attached PDF). */
.entry-content a.vyqon-gated-pdf,
.post-pdf-download .vyqon-gated-pdf,
a.vyqon-gated-pdf.vyqon-pdf-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; margin: 6px 0;
    font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none;
    color: #fff; background: #1da64a; border: 0; border-radius: 8px; cursor: pointer;
    box-shadow: 0 2px 6px rgba(19, 133, 58, 0.25); transition: background 0.15s, transform 0.1s;
}
.entry-content a.vyqon-gated-pdf::before,
.post-pdf-download .vyqon-gated-pdf::before {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v12m0 0l-5-5m5 5l5-5M4 20h16'/></svg>") no-repeat center / contain;
}
.entry-content a.vyqon-gated-pdf:hover,
.post-pdf-download .vyqon-gated-pdf:hover { background: #13853a; color: #fff; text-decoration: none; }
.entry-content a.vyqon-gated-pdf:active { transform: translateY(1px); }
.entry-content a.vyqon-gated-pdf:focus-visible,
.post-pdf-download .vyqon-gated-pdf:focus-visible { outline: 3px solid rgba(15, 130, 203, 0.4); outline-offset: 2px; }
.post-pdf-download { margin: 24px 0; }

/* WordPress "File" block: show a single button (the file-name link) - hide the duplicate Download button and the inline viewer. */
.entry-content .wp-block-file a.wp-block-file__button { display: none; }
.entry-content .wp-block-file .wp-block-file__embed, .entry-content .wp-block-file object { display: none; }
.entry-content .wp-block-file { margin: 6px 0; }
/* Keep the button text readable inside headings/lists/quotes. */
.entry-content li > a.vyqon-gated-pdf, .entry-content blockquote a.vyqon-gated-pdf { margin: 4px 0; }
