/* Request form: bold, compact, readable. Colours come from --bpp-accent / --bpp-on (Perks Program > Settings). */
.bpp-form { --bpp-ink: #111; --bpp-line: #111; max-width: 640px; box-sizing: border-box; padding: 18px 20px 20px; border: 3px solid var(--bpp-line); border-radius: 6px; background: #fff; color: var(--bpp-ink); font: inherit; font-size: 16px; line-height: 1.45; box-shadow: 5px 5px 0 var(--bpp-accent); }
.bpp-form *, .bpp-form *::before, .bpp-form *::after { box-sizing: border-box; }

/* Labels: sentence case, bold, 14px */
.bpp-form label, .bpp-form legend { display: block; margin: 0 0 4px; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.bpp-form .bpp-opt { margin-left: 4px; font-weight: 500; opacity: 0.75; }

.bpp-form .bpp-field { margin: 0 0 14px; }
.bpp-form .bpp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.bpp-form input[type="email"], .bpp-form input[type="text"], .bpp-form textarea { display: block; width: 100%; min-height: 48px; margin: 0; padding: 9px 12px; font: inherit; font-size: 16px; line-height: 1.4; color: var(--bpp-ink); background: #fff; border: 2px solid var(--bpp-line); border-radius: 4px; box-shadow: none; }
.bpp-form textarea { min-height: 84px; resize: vertical; }
.bpp-form ::placeholder { color: #595959; opacity: 1; }

/* Choice chips (request type, images yes/no, how many) */
.bpp-form .bpp-types { margin: 0 0 14px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.bpp-form .bpp-types legend { width: 100%; margin-bottom: 4px; }
.bpp-form .bpp-chip { position: relative; margin: 0; font-size: 15px; font-weight: 700; }
.bpp-form .bpp-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bpp-form .bpp-chip span { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--bpp-line); border-radius: 999px; background: #fff; }
.bpp-form .bpp-chip input:checked + span { background: var(--bpp-accent); color: var(--bpp-on); }
.bpp-form .bpp-chip input:checked + span::before { content: "\2713"; margin-right: 6px; }

/* Image upload */
.bpp-form .bpp-files input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.bpp-form .bpp-drop { display: block; margin: 0; padding: 12px 14px; border: 2px dashed var(--bpp-line); border-radius: 4px; background: #f6f6f6; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.45; }
.bpp-form .bpp-drop strong { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.bpp-form .bpp-files input:focus-visible + .bpp-drop { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.bpp-form .bpp-drop.is-over { background: var(--bpp-accent); color: var(--bpp-on); border-style: solid; }
.bpp-form .bpp-filelist { margin: 8px 0 0; padding: 0; list-style: none; }
.bpp-form .bpp-filelist:empty { display: none; }
.bpp-form .bpp-filelist li { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; padding: 6px 10px; border: 2px solid var(--bpp-line); border-radius: 4px; font-size: 14px; overflow-wrap: anywhere; }
.bpp-form .bpp-filelist li.is-bad { border-color: #b00020; color: #b00020; font-weight: 700; }

/* Google Drive instructions (shown when they have more than 5 images) */
.bpp-form .bpp-drive { padding: 12px 14px 4px; border: 2px solid var(--bpp-line); border-radius: 4px; background: #f6f6f6; font-size: 15px; }
.bpp-form .bpp-drive-title { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.bpp-form .bpp-drive ol { margin: 0; padding: 0 0 0 22px; }
.bpp-form .bpp-drive li { margin: 0 0 7px; padding-left: 2px; line-height: 1.45; }
.bpp-form .bpp-drive a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.bpp-form button[type="submit"] { display: block; width: 100%; min-height: 52px; margin: 4px 0 0; padding: 10px 24px; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bpp-on); background: var(--bpp-accent); border: 3px solid var(--bpp-line); border-radius: 4px; cursor: pointer; }
.bpp-form button[type="submit"]:hover { filter: brightness(1.12); }
.bpp-form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }

.bpp-form :focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.bpp-form .bpp-chip input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 2px; }

.bpp-form .bpp-note { margin: 0 0 14px; padding: 10px 12px; border: 2px solid var(--bpp-line); border-left-width: 8px; border-radius: 4px; background: #f6f6f6; font-size: 15px; }
.bpp-form .bpp-error { margin: 0 0 14px; padding: 9px 12px; border: 3px solid #b00020; border-radius: 4px; background: #fff; color: #b00020; font-weight: 700; line-height: 1.4; }
.bpp-form .bpp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bpp-form.bpp-done { padding: 16px 20px; font-size: 18px; }
.bpp-form [hidden] { display: none !important; }
.bpp-form .bpp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 520px) {
	.bpp-form { padding: 14px 14px 16px; box-shadow: 4px 4px 0 var(--bpp-accent); }
	.bpp-form .bpp-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
	.bpp-form button[type="submit"], .bpp-form .bpp-chip span { transition: background-color 0.15s, filter 0.15s; }
}
