/* Boredom PDF — front-end buttons & viewer */
.bpdf-button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding: .7em 1.25em;
	border-radius: 8px;
	background: #111827;
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}
.bpdf-button::before {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M7 11l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M7 11l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bpdf-button:hover,
.bpdf-button:focus {
	background: #000;
	transform: translateY(-1px);
}
.bpdf-viewer {
	margin: 1.5em 0;
}
.bpdf-viewer iframe {
	display: block;
	max-width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f3f4f6;
}
.bpdf-viewer-actions {
	margin-top: .75em;
}

/* ---------- Boredom PDF forms ---------- */
.bpdf-form-wrap { --bpdf-accent: #111827; --bpdf-line: #d1d5db; --bpdf-muted: #6b7280; --bpdf-err: #dc2626; max-width: 760px; margin: 0 auto 2em; font-size: 16px; }
.bpdf-form-wrap *, .bpdf-form-wrap *::before, .bpdf-form-wrap *::after { box-sizing: border-box; }
.bpdf-fields { display: flex; flex-wrap: wrap; gap: 18px 16px; }
.bpdf-field { flex: 1 1 100%; min-width: 0; margin: 0; }
.bpdf-field[hidden], .bpdf-step[hidden], .bpdf-form[hidden] { display: none !important; }
.bpdf-w-half { flex-basis: calc(50% - 8px); }
.bpdf-w-third { flex-basis: calc(33.333% - 11px); }
.bpdf-w-two-thirds { flex-basis: calc(66.666% - 6px); }
@media (max-width: 600px) { .bpdf-w-half, .bpdf-w-third, .bpdf-w-two-thirds { flex-basis: 100%; } }
.bpdf-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95em; }
.bpdf-req { color: var(--bpdf-err); }
.bpdf-form input[type=text], .bpdf-form input[type=email], .bpdf-form input[type=tel], .bpdf-form input[type=number], .bpdf-form input[type=date], .bpdf-form input[type=time], .bpdf-form input[type=url], .bpdf-form input[type=file], .bpdf-form select, .bpdf-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--bpdf-line); border-radius: 8px; background: #fff; color: inherit; font: inherit; line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.bpdf-form input:focus, .bpdf-form select:focus, .bpdf-form textarea:focus { outline: none; border-color: var(--bpdf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpdf-accent) 18%, transparent); }
.bpdf-help { display: block; color: var(--bpdf-muted); font-size: .85em; margin-top: 5px; }
.bpdf-error { color: var(--bpdf-err); font-size: .85em; margin-top: 5px; min-height: 0; }
.bpdf-field.has-error input, .bpdf-field.has-error select, .bpdf-field.has-error textarea, .bpdf-field.has-error canvas { border-color: var(--bpdf-err); }
.bpdf-choices { display: flex; flex-direction: column; gap: 8px; }
.bpdf-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.bpdf-choice input { margin-top: .25em; accent-color: var(--bpdf-accent); width: 1.05em; height: 1.05em; }
.bpdf-heading { margin: .6em 0 0; font-size: 1.25em; }
.bpdf-field-paragraph p { margin: 0 0 .6em; color: var(--bpdf-muted); }
.bpdf-field-divider hr { border: 0; border-top: 1px solid var(--bpdf-line); margin: .5em 0; }
.bpdf-signature { position: relative; }
.bpdf-signature canvas { display: block; width: 100% !important; height: 160px !important; max-width: none; border: 1px dashed var(--bpdf-line); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.bpdf-sig-clear { position: absolute; right: 8px; top: 8px; border: 1px solid var(--bpdf-line); background: #fff; border-radius: 6px; padding: 3px 10px; font-size: .8em; cursor: pointer; }
.bpdf-calc { font-size: 1.4em; font-weight: 700; padding: 6px 0; }
.bpdf-rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bpdf-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bpdf-rating label { font-size: 1.8em; color: #d1d5db; cursor: pointer; line-height: 1; }
.bpdf-rating input:checked ~ label, .bpdf-rating label:hover, .bpdf-rating label:hover ~ label { color: #f59e0b; }
.bpdf-rating input:focus-visible + label { outline: 2px solid var(--bpdf-accent); }
.bpdf-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }
.bpdf-actions button { border: 0; border-radius: 8px; padding: 12px 26px; font: inherit; font-weight: 600; cursor: pointer; }
.bpdf-submit, .bpdf-next { background: var(--bpdf-accent); color: #fff; margin-left: auto; }
.bpdf-prev { background: transparent; border: 1px solid var(--bpdf-line) !important; color: inherit; }
.bpdf-actions button:disabled { opacity: .6; cursor: wait; }
.bpdf-progress { height: 6px; border-radius: 99px; background: #e5e7eb; margin-bottom: 22px; overflow: hidden; }
.bpdf-progress span { display: block; height: 100%; background: var(--bpdf-accent); transition: width .3s; }
.bpdf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bpdf-form-message { margin-top: 16px; padding: 12px 16px; border-radius: 8px; }
.bpdf-form-message.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bpdf-form-success, .bpdf-form-notice { padding: 22px 24px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.bpdf-form-notice { background: #f9fafb; border-color: #e5e7eb; }
.bpdf-form-success p:last-child { margin-bottom: 0; }
.bpdf-pdf-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bpdf-form-wrap .bpdf-button { background: var(--bpdf-accent); }
