/* PDF Download – all selectors are prefixed with .pdfdl- so themes cannot collide. */
:root { --pdfdl-primary: #0b2a6f; }

.pdfdl-wrap, .pdfdl-wrap * , .pdfdl-modal, .pdfdl-modal * { box-sizing: border-box; }
.pdfdl-modal [hidden], .pdfdl-modal[hidden], .pdfdl-wrap [hidden] { display: none !important; }

/* ---------- Download list ---------- */
.pdfdl-wrap { width: 100%; margin: 24px 0; }
.pdfdl-heading { margin: 0 0 18px; }
.pdfdl-items { display: flex; flex-direction: column; gap: 14px; }
.pdfdl-item {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px; background: #fff; border: 1px solid #e3e7ee; border-radius: 6px;
}
.pdfdl-item-text { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 17px; line-height: 1.4; }
.pdfdl-icon { flex: 0 0 auto; display: inline-flex; color: #d93025; }
.pdfdl-item-label { overflow-wrap: anywhere; }

.pdfdl-btn {
	flex: 0 0 auto; cursor: pointer; border: 2px solid var(--pdfdl-primary); border-radius: 0;
	 padding: 11px 26px; font: inherit; font-weight: 600;
	line-height: 1.2; text-decoration: none; transition: background .2s, color .2s;
}
.pdfdl-btn:hover, .pdfdl-btn:focus-visible { background: #fff; color: var(--pdfdl-primary); }

.pdfdl-layout-grid .pdfdl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pdfdl-layout-grid .pdfdl-item { flex-direction: column; align-items: flex-start; }

/* ---------- Popup ---------- */
html.pdfdl-open, html.pdfdl-open body { overflow: hidden; }

.pdfdl-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pdfdl-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 35, .72); }
.pdfdl-dialog {
	position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; border-radius: 6px; padding: 40px 40px 36px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	animation: pdfdl-in .22s ease-out;
}
@keyframes pdfdl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pdfdl-dialog { animation: none; } }

.pdfdl-close {
	position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: var(--pdfdl-primary); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.pdfdl-modal-title {
    margin: 0 0 8px;
    padding-right: 40px;
    color: #1e4286;
    font-size: 3.385vw;
    line-height: 124%;
    font-weight: 600;
}
.pdfdl-modal-intro { margin: 0 0 8px; color: #4a5568; }
.pdfdl-file-name { margin: 0 0 18px; padding: 8px 12px; background: #f1f4fa; border-left: 3px solid var(--pdfdl-primary); font-size: 14px; color: #1f2a44; }

.pdfdl-form { margin-top: 18px; }
.pdfdl-row { display: flex; gap: 18px; margin-bottom: 14px; }
.pdfdl-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.pdfdl-field label { margin-bottom: 4px; font-size: 13px; color: #4a5568; }
.pdfdl-field input, .pdfdl-field textarea {
	width: 100%; padding: 9px 2px; border: 0; border-bottom: 1px solid #9aa5b8; border-radius: 0;
	background: transparent; font: inherit; color: #111827; box-shadow: none; outline: none;
}
.pdfdl-field input:focus, .pdfdl-field textarea:focus { border-bottom-color: var(--pdfdl-primary); box-shadow: 0 1px 0 var(--pdfdl-primary); }
.pdfdl-field [aria-invalid="true"] { border-bottom-color: #d93025; }
.pdfdl-field textarea { resize: vertical; }

.pdfdl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pdfdl-status { margin: 4px 0 12px; font-size: 14px; color: #d93025; }
.pdfdl-status.is-info { color: #1f2a44; }

.pdfdl-submit {
	display: inline-block; min-width: 180px; cursor: pointer; padding: 14px 32px; border: 2px solid var(--pdfdl-primary);
	border-radius: 0; background: var(--pdfdl-primary); color: #fff; font: inherit; font-weight: 600;
}
.pdfdl-submit:hover:not(:disabled), .pdfdl-submit:focus-visible { background: #fff; color: var(--pdfdl-primary); }
.pdfdl-submit:disabled { opacity: .6; cursor: wait; }

.pdfdl-success { padding: 18px 0 6px; }
.pdfdl-success-msg { margin: 0 0 12px; font-size: 18px; color: #1f2a44; }
.pdfdl-fallback { color: var(--pdfdl-primary); text-decoration: underline; }

@media (max-width: 600px) {
	.pdfdl-dialog { padding: 28px 20px 24px; }
	.pdfdl-modal-title { font-size: 24px; }
	.pdfdl-row { flex-direction: column; gap: 14px; }
	.pdfdl-item { flex-direction: column; align-items: flex-start; }
}
