/* Document Requests 1.4.0: request buttons and pop-up. Colours follow the document buttons (#00a992). */
button.spd-document { width: 100%; margin: 0; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.spd-downloads--list button.spd-document { border: 1px solid #e2e4e5; }
button.spd-document:focus-visible { outline: 2px solid var(--spd-accent, #00a992); outline-offset: 2px; }

html.spd-modal-open { overflow: hidden; }
.spd-modal { --spd-accent: #00a992; --spd-text: #2f3437; --spd-muted: #6b7175; --spd-line: #d9dcde; --spd-error: #b3261e; position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.spd-modal[hidden] { display: none; }
.spd-modal *, .spd-modal *::before, .spd-modal *::after { box-sizing: border-box; }
.spd-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 26, .55); }
.spd-modal__dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; border-radius: 10px; background: #fff; color: var(--spd-text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); font-size: 15px; line-height: 1.5; }
.spd-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--spd-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.spd-modal__close:hover { background: #f1f3f4; color: var(--spd-text); }
.spd-modal button:focus-visible, .spd-modal input:focus-visible, .spd-modal a:focus-visible { outline: 2px solid var(--spd-accent); outline-offset: 2px; }
.spd-form__title, .spd-done__title { margin: 0 40px 6px 0 !important; padding: 0 !important; color: var(--spd-text); font-size: 22px; line-height: 1.25; }
.spd-form__intro { margin: 0 0 18px !important; padding: 0 !important; color: var(--spd-muted); }
.spd-form__docs-wrap { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.spd-form__label { margin: 0 0 8px; padding: 0; font-weight: 600; }
.spd-form__docs { display: grid; gap: 8px; }
.spd-form__doc { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--spd-line); border-radius: 8px; cursor: pointer; }
.spd-form__doc:has(input:checked) { border-color: var(--spd-accent); background: color-mix(in srgb, var(--spd-accent) 7%, #fff); }
.spd-form__doc input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--spd-accent); }
.spd-form__doc span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.spd-form__doc small { color: var(--spd-muted); font-size: 12px; }
.spd-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.spd-form__field { margin: 0 !important; padding: 0 !important; }
.spd-form__field label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.spd-modal abbr { color: var(--spd-error); text-decoration: none; border: 0; }
.spd-form__field input { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 10px 12px; border: 1px solid var(--spd-line); border-radius: 6px; background: #fff; color: var(--spd-text); font: inherit; }
.spd-form__field input:focus { border-color: var(--spd-accent); outline: 2px solid var(--spd-accent); outline-offset: 0; }
.spd-modal [aria-invalid="true"] { border-color: var(--spd-error) !important; }
.spd-form__field-error { display: block; margin-top: 4px; color: var(--spd-error); font-size: 13px; }
.spd-form__field-error[hidden] { display: none; }
.spd-form__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.spd-form__consent { margin: 18px 0 0 !important; padding: 0 !important; }
.spd-form__consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.spd-form__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--spd-accent); }
.spd-form__consent a { color: var(--spd-accent); text-decoration: underline; }
.spd-form__error { margin: 14px 0 0 !important; padding: 10px 12px !important; border-radius: 6px; background: #fdecea; color: var(--spd-error); font-size: 14px; }
.spd-form__error[hidden] { display: none; }
.spd-form__actions { margin: 20px 0 0 !important; padding: 0 !important; }
.spd-form__submit { display: inline-block; width: 100%; padding: 13px 18px; border: 0; border-radius: 6px; background: var(--spd-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.spd-form__submit:hover { filter: brightness(.94); }
.spd-form__submit[disabled] { opacity: .7; cursor: progress; }
.spd-done { text-align: center; padding: 10px 0 0; }
.spd-done__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 50%; background: color-mix(in srgb, var(--spd-accent) 12%, #fff); color: var(--spd-accent); }
.spd-done__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spd-done__title { margin: 0 0 8px !important; }
.spd-done__text { margin: 0 0 18px !important; color: var(--spd-muted); }
@media (max-width: 520px) {
	.spd-modal { align-items: flex-end; padding: 0; }
	.spd-modal__dialog { max-height: 92vh; max-height: 92dvh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; }
	.spd-form__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
	.spd-modal:not([hidden]) .spd-modal__dialog { animation: spdIn .18s ease-out; }
	@keyframes spdIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
