.apdf-popup-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.7);z-index:99999;display:flex;align-items:center;justify-content:center;padding:1em;opacity:0;pointer-events:none;transition:opacity 0.25s;overscroll-behavior:contain;-webkit-tap-highlight-color:transparent}.apdf-popup-overlay.is-open{opacity:1;pointer-events:auto}.apdf-popup{background:#fff;border-radius:12px;max-width:480px;width:100%;max-height:90vh;overflow-y:auto;padding:2em;box-shadow:0 24px 64px rgba(0,0,0,0.4);position:relative;transform:translateY(20px);transition:transform 0.25s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-overflow-scrolling:touch}.apdf-popup-overlay.is-open .apdf-popup{transform:translateY(0)}.apdf-popup-close{position:absolute;top:0.75em;right:0.75em;background:transparent;border:none;font-size:28px;color:#999;cursor:pointer;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background 0.15s,color 0.15s;line-height:1}.apdf-popup-close:hover{background:#f0f0f0;color:#333}.apdf-popup-close:focus-visible{outline:2px solid #4a90e2;outline-offset:2px}.apdf-popup-title{margin:0 0 0.4em;font-size:1.4em;font-weight:700;color:#1a1a1a;padding-right:2em;line-height:1.3}.apdf-popup-subtitle{margin:0 0 1.5em;color:#666;font-size:0.95em;line-height:1.5}.apdf-popup-form{display:flex;flex-direction:column;gap:1em}.apdf-popup-form label{font-size:13px;font-weight:600;color:#333;margin-bottom:0.3em;display:block}.apdf-popup-form input[type="text"],.apdf-popup-form input[type="email"]{width:100%;padding:0.8em 1em;border:1px solid #d0d0d0;border-radius:8px;font-size:16px;box-sizing:border-box;transition:border-color 0.15s,box-shadow 0.15s;font-family:inherit;min-height:44px}.apdf-popup-form input[type="text"]:focus,.apdf-popup-form input[type="email"]:focus{outline:none;border-color:#4a90e2;box-shadow:0 0 0 3px rgba(74,144,226,0.2)}.apdf-popup-checkbox{display:flex;align-items:flex-start;gap:0.6em;font-size:13px;line-height:1.5;color:#555;cursor:pointer;padding:0.3em 0}.apdf-popup-checkbox input[type="checkbox"]{margin-top:3px;flex-shrink:0;cursor:pointer;width:18px;height:18px}.apdf-popup-checkbox.required label::after{content:" *";color:#d63638}.apdf-popup-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.apdf-popup-submit{background:#4a90e2;color:#fff;border:none;padding:0.95em 1.5em;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:background 0.15s,transform 0.1s;margin-top:0.5em;font-family:inherit;min-height:48px}.apdf-popup-submit:hover{background:#357abd}.apdf-popup-submit:active{transform:scale(0.98)}.apdf-popup-submit:disabled{opacity:0.6;cursor:not-allowed}.apdf-popup-submit:focus-visible{outline:2px solid #1a1a1a;outline-offset:2px}.apdf-popup-error{color:#d63638;font-size:13px;padding:0.7em 0.9em;background:#fce4e4;border-radius:6px;display:none;border-left:3px solid #d63638}.apdf-popup-error.is-shown{display:block}.apdf-popup-success{text-align:center;padding:1em 0}.apdf-popup-success-icon{font-size:56px;margin-bottom:0.3em;display:block}.apdf-popup-success h3{margin:0 0 0.4em;color:#1a1a1a;font-size:1.2em}.apdf-popup-success p{color:#666;margin:0;line-height:1.5}@media (max-width:600px){.apdf-popup-overlay{padding:0;align-items:flex-end}.apdf-popup{max-width:100%;width:100%;max-height:95vh;border-radius:16px 16px 0 0;padding:1.5em 1.2em 1.2em;transform:translateY(100%)}.apdf-popup-overlay.is-open .apdf-popup{transform:translateY(0)}.apdf-popup-title{font-size:1.2em;padding-right:2.5em}.apdf-popup::before{content:'';position:absolute;top:0.5em;left:50%;transform:translateX(-50%);width:36px;height:4px;background:#d0d0d0;border-radius:2px}}@media (max-width:360px){.apdf-popup{padding:1.2em 1em}.apdf-popup-title{font-size:1.1em}.apdf-popup-subtitle{font-size:0.9em}}@media (prefers-reduced-motion:reduce){.apdf-popup-overlay,.apdf-popup,.apdf-popup-submit{transition:none !important}}