.pbo { --pbo-accent: #0a63d8; --pbo-line: #d9dde3; --pbo-muted: #5f6b7a; --pbo-soft: #f5f6f8; max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.45; color: inherit; }
.pbo *, .pbo *::before, .pbo *::after { box-sizing: border-box; }
.pbo [hidden] { display: none !important; }
.pbo fieldset { border: 1px solid var(--pbo-line); border-radius: 12px; padding: 18px 18px 20px; margin: 0 0 18px; min-width: 0; background: #fff; }
.pbo legend { font-weight: 700; font-size: 1.05em; padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.pbo-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pbo-accent); color: #fff; font-size: 14px; }
.pbo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pbo-full { grid-column: 1 / -1; }
.pbo label { display: block; font-weight: 600; font-size: 14px; margin: 0; }
.pbo label b { color: var(--pbo-accent); }
.pbo-opt { font-weight: 400; color: var(--pbo-muted); }
.pbo input:not([type=checkbox]):not([type=file]), .pbo select, .pbo textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px; color: #1d232b;
  border: 1px solid #c3c9d1; border-radius: 8px; background: #fff; box-shadow: none; max-width: none; height: auto; line-height: 1.35;
}
.pbo textarea { resize: vertical; min-height: 64px; }
.pbo input:focus, .pbo select:focus, .pbo textarea:focus { outline: 2px solid var(--pbo-accent); outline-offset: 1px; border-color: transparent; }
.pbo .pbo-bad { border-color: #c0181f !important; background: #fff4f4 !important; }
.pbo-item { border: 1px solid var(--pbo-line); background: var(--pbo-soft); border-radius: 10px; padding: 12px 14px 14px; margin-bottom: 12px; }
.pbo-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.pbo button { font: inherit; cursor: pointer; }
.pbo-rm, .pbo-files button { background: none; border: 0; color: #a3151b; text-decoration: underline; padding: 4px; font-size: 14px; }
.pbo-add { background: #fff; border: 1.5px dashed #9aa3ae; color: #1d232b; border-radius: 8px; padding: 10px 16px; font-weight: 600; width: 100%; }
.pbo-add:hover { border-color: var(--pbo-accent); color: var(--pbo-accent); }
.pbo-drop { position: relative; border: 2px dashed #9aa3ae; border-radius: 10px; padding: 22px 14px; text-align: center; background: var(--pbo-soft); cursor: pointer; margin-bottom: 10px; }
.pbo-drop.over, .pbo-drop:focus { border-color: var(--pbo-accent); background: #fff; outline: none; }
.pbo-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pbo-drop p { margin: 0 0 4px; }
.pbo-small { font-size: 13px; color: var(--pbo-muted); }
.pbo-files { list-style: none; margin: 0 0 12px; padding: 0; }
.pbo-files li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--pbo-line); border-radius: 8px; margin-bottom: 6px; background: #fff; }
.pbo-files li span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pbo .pbo-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0 16px; }
.pbo-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--pbo-accent); }
.pbo-send { display: block; width: 100%; background: var(--pbo-accent); color: #fff; border: 0; border-radius: 10px; padding: 14px 20px; font-size: 18px; font-weight: 700; }
.pbo-send:hover { filter: brightness(1.08); }
.pbo-send:disabled { opacity: .7; cursor: wait; }
.pbo-note { text-align: center; margin-top: 8px; }
.pbo-alert { background: #fff4f4; border: 1px solid #f0b4b7; color: #8f1117; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.pbo-progress { margin-bottom: 12px; }
.pbo-bar { height: 10px; background: #e6e9ee; border-radius: 99px; overflow: hidden; }
.pbo-bar span { display: block; height: 100%; width: 0; background: var(--pbo-accent); transition: width .2s; }
.pbo-done { text-align: center; border: 1px solid var(--pbo-line); border-radius: 12px; padding: 30px 20px; background: #fff; }
.pbo-done h3 { margin: 6px 0 8px; }
.pbo-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #0a7d33; color: #fff; font-size: 30px; }
.pbo-ref { font-size: 18px; }
.pbo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  .pbo-grid { grid-template-columns: 1fr; }
  .pbo fieldset { padding: 14px 12px 16px; }
}

/* PrintMate logo colours */
.pbo fieldset { border-color: #e4e9f1; border-radius: 16px; box-shadow: 0 1px 2px rgba(22,23,27,.04), 0 6px 16px rgba(22,23,27,.035); position: relative; overflow: hidden; padding-top: 22px; }
.pbo fieldset::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg,#02a1f2 0 25%,#e4008d 25% 50%,#f4cb1b 50% 75%,#2f2e33 75% 100%); }
.pbo legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; }
.pbo legend ~ * { clear: both; }
.pbo-n { background: linear-gradient(135deg,#0043b5,#02a1f2); }
.pbo-send { background: linear-gradient(120deg,#0043b5 0%,#0284e6 55%,#02a1f2 100%); box-shadow: 0 6px 18px rgba(0,67,181,.3); }
.pbo-bar span { background: linear-gradient(90deg,#0043b5,#02a1f2); }
.pbo-item { background: #f7faff; border-color: #e4e9f1; }
.pbo-drop { border-color: #a9c7f2; background: #f7fbff; }

/* ===== compact animated banner (v1.5) ===== */
.pbo-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  margin: 0 0 22px; padding: 18px 22px; border-radius: 18px; color: #fff; isolation: isolate;
  background: linear-gradient(115deg, #0b1f4d 0%, #0043b5 38%, #0284e6 68%, #02a1f2 100%); background-size: 220% 220%;
  animation: pbo-sky 14s ease-in-out infinite; box-shadow: 0 10px 28px rgba(0,67,181,.28); }
.pbo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg,#02a1f2,#e4008d,#f4cb1b,#2f2e33,#02a1f2); background-size: 200% 100%; animation: pbo-flow 6s linear infinite; }
.pbo-hero-txt { position: relative; z-index: 2; min-width: 0; }
.pbo .pbo-h1 { margin: 0; padding: 0; font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: #fff; text-transform: none; }
.pbo .pbo-h1 span { background: linear-gradient(90deg,#fff 0%,#9fe3ff 30%,#ffd84d 55%,#ff8ad0 80%,#fff 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: pbo-flow 5s linear infinite; }
.pbo-hero-txt p { margin: 5px 0 0; font-size: 14.5px; opacity: .92; color: #e6f3ff; }
.pbo-steps { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pbo-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; margin: 0; padding: 0;
  opacity: 0; transform: translateY(10px); animation: pbo-in .5s ease-out forwards; }
.pbo-steps li::before { content: none; }
.pbo-steps li + li::after { content: ""; position: absolute; top: 22px; right: calc(50% + 28px); width: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: pbo-dash 1s linear infinite; }
.pbo-steps .s1 { animation-delay: .1s; } .pbo-steps .s2 { animation-delay: .25s; } .pbo-steps .s3 { animation-delay: .4s; } .pbo-steps .s4 { animation-delay: .55s; }
.pbo-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,.15); animation: pbo-bob 4s ease-in-out infinite; }
.pbo-steps .s2 .pbo-ic { animation-delay: 1s; } .pbo-steps .s3 .pbo-ic { animation-delay: 2s; } .pbo-steps .s4 .pbo-ic { animation-delay: 3s; }
.pbo-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pbo-steps b { font-size: 11.5px; font-weight: 700; color: #fff; text-align: center; line-height: 1.15; white-space: nowrap; }
.pbo-steps .s1 .pbo-ic { border-color: #7fd3ff; } .pbo-steps .s2 .pbo-ic { border-color: #ff7cc4; } .pbo-steps .s3 .pbo-ic { border-color: #ffe27a; } .pbo-steps .s4 .pbo-ic { border-color: #ffffff; }
.pbo-up { animation: pbo-upa 2s ease-in-out infinite; }
.pbo-paper { fill: #fff; stroke: #fff; animation: pbo-print 2.4s ease-in-out infinite; transform-box: fill-box; }
.pbo-tickp { stroke: #ffe27a; stroke-width: 2.4; stroke-dasharray: 12; stroke-dashoffset: 12; animation: pbo-tick 3s ease-in-out infinite; }
.pbo-truck { animation: pbo-drive 3s ease-in-out infinite; }
.pbo-dot { position: absolute; z-index: 0; border-radius: 50%; opacity: .55; filter: blur(.5px); animation: pbo-float 9s ease-in-out infinite; pointer-events: none; }
.pbo-dot.d1 { width: 70px; height: 70px; left: 38%; top: -24px; background: #02a1f2; mix-blend-mode: screen; }
.pbo-dot.d2 { width: 46px; height: 46px; left: 52%; bottom: -16px; background: #e4008d; animation-delay: -3s; opacity: .45; }
.pbo-dot.d3 { width: 28px; height: 28px; left: 3%; bottom: -12px; background: #f4cb1b; animation-delay: -5s; opacity: .5; }
.pbo-dot.d4 { width: 120px; height: 120px; right: -40px; top: -50px; background: #ffffff; opacity: .08; animation-duration: 12s; }
.pbo-dot.d5 { width: 14px; height: 14px; left: 30%; top: 14px; background: #ffd84d; animation-delay: -1s; opacity: .8; }
@keyframes pbo-sky { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pbo-flow { to { background-position: -200% 0; } }
@keyframes pbo-in { to { opacity: 1; transform: none; } }
@keyframes pbo-dash { to { background-position: 18px 0; } }
@keyframes pbo-bob { 0%,100% { transform: translateY(0); } 12% { transform: translateY(-5px); } 24% { transform: translateY(0); } }
@keyframes pbo-upa { 0%,100% { transform: translateY(1px); opacity: 1; } 50% { transform: translateY(-2.5px); opacity: .7; } }
@keyframes pbo-print { 0% { transform: translateY(-5px) scaleY(.2); opacity: 0; } 35%,75% { transform: none; opacity: 1; } 100% { transform: translateY(2px); opacity: 0; } }
@keyframes pbo-tick { 0%,15% { stroke-dashoffset: 12; } 45%,85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; } }
@keyframes pbo-drive { 0% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 100% { transform: translateX(-3px); } }
@keyframes pbo-float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(14px,-8px) scale(1.08); } 66% { transform: translate(-10px,6px) scale(.94); } }

/* form sections slide in, send button shimmers */
.pbo-form fieldset { animation: pbo-in .55s ease-out both; opacity: 0; transform: translateY(14px); }
.pbo-form fieldset:nth-of-type(2) { animation-delay: .12s; } .pbo-form fieldset:nth-of-type(3) { animation-delay: .24s; } .pbo-form fieldset:nth-of-type(4) { animation-delay: .36s; }
.pbo fieldset::before { background-size: 200% 100%; background-image: linear-gradient(90deg,#02a1f2 0 12.5%,#e4008d 12.5% 25%,#f4cb1b 25% 37.5%,#2f2e33 37.5% 50%,#02a1f2 50% 62.5%,#e4008d 62.5% 75%,#f4cb1b 75% 87.5%,#2f2e33 87.5% 100%); animation: pbo-flow 18s linear infinite; }
.pbo fieldset { transition: box-shadow .25s, transform .25s; }
.pbo fieldset:focus-within { box-shadow: 0 2px 4px rgba(0,67,181,.06), 0 14px 30px rgba(0,67,181,.12); }
.pbo-n { transition: transform .3s; } .pbo fieldset:focus-within .pbo-n { transform: scale(1.12) rotate(-8deg); }
.pbo-send { position: relative; overflow: hidden; }
.pbo-send::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent); animation: pbo-shine 3.2s ease-in-out infinite; }
@keyframes pbo-shine { 0%,55% { left: -60%; } 100% { left: 130%; } }
.pbo-drop { transition: transform .2s, border-color .2s, background .2s; } .pbo-drop:hover { transform: translateY(-2px); border-color: #0284e6; }
.pbo-tick { animation: pbo-pop .5s cubic-bezier(.2,1.6,.4,1) both; } @keyframes pbo-pop { from { transform: scale(.3); opacity: 0; } }

@media (max-width: 640px) {
  .pbo-hero { padding: 16px; gap: 12px; }
  .pbo .pbo-h1 { font-size: 25px; }
  .pbo-steps { width: 100%; justify-content: space-between; }
  .pbo-steps li { width: 25%; }
  .pbo-steps li + li::after { width: 22px; right: calc(50% + 26px); }
  .pbo-steps b { white-space: normal; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pbo-hero, .pbo-hero::after, .pbo-h1 span, .pbo-ic, .pbo-dot, .pbo-up, .pbo-paper, .pbo-truck, .pbo-steps li + li::after, .pbo fieldset::before, .pbo-send::after { animation: none !important; }
  .pbo-steps li, .pbo-form fieldset { animation: none !important; opacity: 1 !important; transform: none !important; }
  .pbo-tickp { stroke-dashoffset: 0; animation: none; }
}

/* ===== automatic file check (v1.6) ===== */
.pbo-files li.pbo-file { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; animation: pbo-in .35s ease-out both; opacity: 0; transform: translateY(6px); }
.pbo-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; background: #eef3fb; border: 1px solid #dde6f3; display: grid; place-items: center; overflow: hidden; font-size: 12px; font-weight: 800; color: #0043b5; letter-spacing: .04em; }
.pbo-thumb img { max-width: 100%; max-height: 100%; display: block; background: #fff; }
.pbo-fbody { flex: 1; min-width: 0; }
.pbo-ftop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pbo-fname { font-weight: 700; overflow-wrap: anywhere; }
.pbo-ftop .pbo-small { flex: 1; }
.pbo .pbo-frm { background: none; border: 0; color: #a3151b; text-decoration: underline; padding: 2px 4px; font-size: 13px; }
.pbo-checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pbo-checks li.pbo-chk { display: block; position: relative; margin: 0; padding: 4px 8px 4px 26px; border: 0; border-radius: 7px; font-size: 13.5px; line-height: 1.35; background: #f4f6f9; color: #334155; }
.pbo-chk::before { position: absolute; left: 8px; top: 4px; font-weight: 800; }
.pbo-chk.ok { background: #ecfdf3; color: #14532d; } .pbo-chk.ok::before { content: "✓"; color: #16a34a; }
.pbo-chk.warn { background: #fff8e6; color: #7a4b00; } .pbo-chk.warn::before { content: "!"; color: #d97706; left: 11px; }
.pbo-chk.bad { background: #fff1f1; color: #8f1117; } .pbo-chk.bad::before { content: "✕"; color: #dc2626; }
.pbo-chk.info { background: #eef5ff; color: #1e3a6b; } .pbo-chk.info::before { content: "i"; color: #2563eb; left: 11px; font-style: italic; font-family: Georgia, serif; }
.pbo-chk.busy { color: #475569; } .pbo-chk.busy::before { content: ""; left: 8px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #94a3b8; border-top-color: transparent; animation: pbo-spin .8s linear infinite; }
@keyframes pbo-spin { to { transform: rotate(360deg); } }
.pbo-size-hint { margin: -4px 0 12px; }
@media (prefers-reduced-motion: reduce) { .pbo-files li.pbo-file { animation: none; opacity: 1; transform: none; } }
