/* PERPI download survey dialog. Uses the PERPI theme tokens, with fallbacks. */
.perpi-dl { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--surface-2, #fff); color: var(--ink, #141413); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: auto; }
.perpi-dl::backdrop { background: rgba(20, 20, 19, .55); backdrop-filter: blur(3px); }
.perpi-dl__form { margin: 0; }
.perpi-dl__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 28px 28px 8px; }
.perpi-dl__kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--perpi-orange, #F47015); }
.perpi-dl__title { margin: 8px 0 0; font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.perpi-dl__pub { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted, #4A4A47); }
.perpi-dl__close { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line, #E1E1DE); border-radius: 50%; background: transparent; color: var(--ink-2, #2B2B29); font-size: 24px; line-height: 1; cursor: pointer; }
.perpi-dl__close:hover { border-color: var(--perpi-orange, #F47015); color: var(--perpi-orange, #F47015); }
.perpi-dl__body { display: flex; flex-direction: column; gap: 14px; padding: 16px 28px 28px; }
.perpi-dl__body[hidden] { display: none; }
.perpi-dl__grid { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 12px; }
@media (max-width: 520px) { .perpi-dl__grid { grid-template-columns: 1fr 72px; } .perpi-dl__grid .perpi-dl__field:last-child { grid-column: 1 / -1; } }
.perpi-dl__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.perpi-dl__field em, .perpi-dl__check em { color: var(--accent-strong, #B44D08); font-style: normal; }
.perpi-dl__field input, .perpi-dl__field select, .perpi-dl__field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1.5px solid var(--line-strong, #C9C9C5); border-radius: 8px; background: var(--surface, #fff); color: var(--ink, #141413); font: 400 15px/1.4 var(--font-body, Poppins, system-ui, sans-serif); }
.perpi-dl__field textarea { resize: vertical; min-height: 84px; }
.perpi-dl__field input:focus, .perpi-dl__field select:focus, .perpi-dl__field textarea:focus { outline: none; border-color: var(--perpi-orange, #F47015); }
.perpi-dl__check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.55; color: var(--ink-2, #2B2B29); cursor: pointer; }
.perpi-dl__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--perpi-orange, #F47015); }
.perpi-dl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.perpi-dl__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--tint, #FEF3EA); color: var(--accent-strong, #B44D08); font-size: 13.5px; }
.perpi-dl__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.perpi-dl__done { align-items: flex-start; }
.perpi-dl__thanks { margin: 0; font-size: 17px; font-weight: 600; }
.perpi-dl__cite { align-self: stretch; padding: 18px 20px; border-radius: 16px; background: var(--sunken, #F7F7F6); }
.perpi-dl__cite p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2, #2B2B29); }
