/* JPB Global Solutions UK Limited — payment portal */
:root{
  --gold:#e8b858; --gold-deep:#c9962f; --gold-soft:#fbf3df;
  --sky:#f8d880; --indigo:#0b3a6b; --plum:#06213f; --navy:#06213f;
  --ink:#06213f; --ink-2:#3f5470; --mute:#7b8aa0;
  --line:#e1e6ef; --bg:#f4f6fa; --white:#fff;
  --ok:#1a9a55; --bad:#d8333f;
  --display:'Barlow Condensed','Arial Narrow',sans-serif;
  --body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--body);color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
img{max-width:100%}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ---------- Layout ---------- */
.pay{flex:1;display:grid;grid-template-columns:minmax(320px,440px) 1fr;min-height:100vh}

/* Brand panel */
.brand{position:sticky;top:0;align-self:start;height:100vh;overflow:hidden;background:var(--ink);color:#fff}
.swoosh{position:absolute;right:-170px;bottom:-150px;width:560px;opacity:.12;pointer-events:none}
.brand-inner{position:relative;height:100%;overflow-y:auto;padding:36px 40px 40px;display:flex;flex-direction:column;gap:20px}
.logo-chip{align-self:flex-start;display:block;border-radius:50%;box-shadow:0 10px 30px -10px rgba(0,0,0,.6)}
.logo-chip img{height:104px;width:104px;display:block;border-radius:50%}
.brand h1{font-family:var(--display);font-weight:700;font-size:44px;line-height:1;margin:18px 0 0;letter-spacing:.2px}
.lede{margin:0;color:#c5d0e2;max-width:34ch}

.ticket{margin-top:10px;padding:22px 24px;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.14);display:flex;flex-direction:column;gap:2px}
.ticket-label{font-size:14px;color:#a9b7cf}
.ticket-amount{display:block;white-space:nowrap;overflow:hidden;font-family:var(--display);font-weight:700;font-size:84px;line-height:1.05;color:var(--gold);font-variant-numeric:tabular-nums}
.ticket-amount.bump{animation:bump .25s ease-out}
@keyframes bump{from{transform:translateY(3px);opacity:.6}to{transform:none;opacity:1}}
.ticket-purpose{color:#fff;font-weight:600;min-height:1.5em}

.assure{list-style:none;padding:0;margin:auto 0 0;display:grid;gap:10px;color:#c5d0e2;font-size:14px}
.assure li{padding-left:26px;position:relative}
.assure li::before{content:"";position:absolute;left:0;top:4px;width:14px;height:14px;border-radius:50%;background:var(--gold);box-shadow:inset 0 0 0 4px var(--ink)}

/* Form panel */
.panel{padding:40px clamp(20px,5vw,72px) 32px;display:flex;flex-direction:column;align-items:center}
form{width:100%;max-width:640px}
fieldset{border:0;margin:0 0 24px;padding:0}
legend{font-family:var(--display);font-size:24px;font-weight:600;color:var(--ink);padding:0;margin-bottom:14px;display:flex;align-items:center;gap:10px}
.flag{font-family:var(--body);font-size:12px;font-weight:600;color:var(--gold-deep);background:var(--gold-soft);padding:3px 10px;border-radius:999px}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid.inner{gap:12px}
.span-2{grid-column:span 2}

.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>span{font-size:14px;font-weight:600;color:var(--ink-2)}
.field em{font-style:normal;font-weight:400;color:var(--mute)}
.hint{color:var(--mute);font-size:13px}

input:not([type=checkbox]),select,.stripe-box{font:inherit;font-size:16px;color:var(--ink);width:100%;height:50px;padding:0 14px;background:var(--white);border:1.5px solid var(--line);border-radius:12px;transition:border-color .15s,box-shadow .15s}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4e6e' stroke-width='2' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
input::placeholder{color:#9aa6ba}
input:focus,select:focus,.stripe-box.focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 4px rgba(232,184,88,.18)}
.stripe-box{display:flex;flex-direction:column;justify-content:center}
.stripe-box>div{width:100%}
.stripe-box.invalid,.field.bad input,.field.bad select{border-color:var(--bad);box-shadow:0 0 0 4px rgba(216,51,63,.12)}

/* Amount input — the hero of the form */
.money{position:relative}
.money i{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-style:normal;font-family:var(--display);font-size:34px;color:var(--gold);font-weight:600}
.money input{height:72px;padding-left:44px;font-family:var(--display);font-size:40px;font-weight:600;letter-spacing:.5px;font-variant-numeric:tabular-nums}

.consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;color:var(--ink-2);margin:4px 0 18px;cursor:pointer}
.consent input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--gold);flex:none}

.alert{background:#fdecee;color:#a3202b;border:1px solid #f6c5ca;padding:12px 16px;border-radius:12px;font-size:14px;margin-bottom:16px}

.pay-btn{position:relative;width:100%;height:60px;border:0;border-radius:14px;cursor:pointer;background:var(--gold);color:var(--navy);font:inherit;font-size:18px;font-weight:700;box-shadow:0 10px 24px -8px rgba(232,184,88,.7);transition:background .15s,transform .1s}
.pay-btn:hover{background:var(--gold-deep)}
.pay-btn:active{transform:translateY(1px)}
.pay-btn b{font-variant-numeric:tabular-nums}
.pay-btn:disabled{cursor:progress;opacity:.85}
.spinner{display:none;position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border:3px solid rgba(6,33,63,.25);border-top-color:#06213f;border-radius:50%;animation:spin .8s linear infinite}
.pay-btn.loading .btn-text{visibility:hidden}
.pay-btn.loading .spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}

/* Footer */
.site-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:16px clamp(20px,5vw,48px);font-size:13px;color:var(--mute);border-top:1px solid var(--line);background:var(--white)}
.lock{display:inline-flex;align-items:center;gap:6px}
.lock svg{width:14px;height:14px;fill:var(--ok)}

/* ---------- Result pages ---------- */
.result{flex:1;display:grid;place-items:center;padding:48px 16px;background:
  radial-gradient(600px 300px at 15% 0%,rgba(232,184,88,.12),transparent 70%),
  radial-gradient(600px 300px at 85% 100%,rgba(232,184,88,.14),transparent 70%),var(--bg)}
.result-card{position:relative;width:100%;max-width:560px;background:var(--white);border-radius:24px;padding:40px clamp(22px,5vw,48px);text-align:center;box-shadow:0 30px 70px -30px rgba(6,33,63,.35);overflow:hidden}
.result-card::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--plum),var(--indigo),var(--sky),var(--gold))}
.result-card.fail::before{background:var(--bad)}
.result-logo{height:92px;width:92px;border-radius:50%;margin-bottom:18px}
.result h1{font-family:var(--display);font-size:40px;font-weight:700;margin:14px 0 2px;line-height:1.05}
.big-amount{font-family:var(--display);font-size:64px;font-weight:700;margin:0;color:var(--gold);line-height:1.05;font-variant-numeric:tabular-nums}
.big-amount.muted{color:var(--mute);text-decoration:line-through;text-decoration-thickness:2px}
.sub{color:var(--ink-2);margin:6px auto 0;max-width:40ch}

.seal{width:84px;height:84px;margin:0 auto}
.seal svg{width:100%;height:100%;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.seal circle{stroke-dasharray:151;stroke-dashoffset:151;animation:draw .6s ease-out forwards}
.seal path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .35s .5s ease-out forwards}
.seal.ok svg{stroke:var(--ok)} .seal.ok{background:#e8f8ef;border-radius:50%}
.seal.fail svg{stroke:var(--bad)} .seal.fail{background:#fdecee;border-radius:50%}
@keyframes draw{to{stroke-dashoffset:0}}

.burst{position:absolute;left:50%;top:150px;width:0;height:0;pointer-events:none}
.burst i{position:absolute;width:8px;height:14px;border-radius:2px;background:var(--gold);opacity:0;
  transform:rotate(calc(var(--i)*25.7deg)) translateY(0);animation:pop 1s .55s ease-out forwards}
.burst i:nth-child(3n){background:var(--sky)} .burst i:nth-child(4n){background:var(--plum)}
@keyframes pop{0%{opacity:1;transform:rotate(calc(var(--i)*25.7deg)) translateY(-30px)}100%{opacity:0;transform:rotate(calc(var(--i)*25.7deg)) translateY(-140px)}}

.receipt{margin:28px 0 0;text-align:left;border-top:1.5px dashed var(--line)}
.receipt div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.receipt dt{color:var(--mute);font-size:14px}
.receipt dd{margin:0;font-weight:600;text-align:right;word-break:break-word}
.mono{font-family:ui-monospace,Consolas,monospace;font-size:13px}

.reason{margin:24px 0 0;padding:16px 18px;border-radius:14px;background:#fdecee;color:#8c1c26;text-align:left;display:flex;flex-direction:column;gap:2px}
.fixes{text-align:left;color:var(--ink-2);margin:18px 0 0;padding-left:20px;font-size:15px}
.fixes li{margin:6px 0}

.actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:999px;font:inherit;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer;border:1.5px solid transparent}
.btn.primary{background:var(--gold);color:var(--navy)}
.btn.primary:hover{background:var(--gold-deep)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--gold);color:var(--gold-deep)}
.tiny{font-size:12px;color:var(--mute);margin-top:18px}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .pay{grid-template-columns:1fr}
  .brand{position:relative;height:auto}
  .brand-inner{height:auto;overflow:visible;padding:28px 22px}
  .brand h1{font-size:34px}
  .assure{display:none}
  .swoosh{width:380px;right:-120px;bottom:-120px}
}
@media (max-width:560px){
  .grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .panel{padding-top:28px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .seal circle,.seal path{stroke-dashoffset:0}
}
@media print{
  .site-foot,.actions,.burst{display:none}
  .result{background:#fff}
  .result-card{box-shadow:none}
}


/* ================= One-screen payment layout ================= */
.one-screen{height:100vh;overflow:hidden}
.one-screen .pay{height:100vh;min-height:0}
.one-screen .panel{height:100vh;overflow-y:auto;padding:clamp(16px,3vh,32px) clamp(20px,4vw,56px);justify-content:center}
.one-screen form{max-width:760px;margin:auto 0}

.sec{font-family:var(--display);font-size:19px;font-weight:600;margin:clamp(8px,1.6vh,16px) 0 6px;display:flex;align-items:center;gap:10px;line-height:1.2}
.sec:first-of-type{margin-top:0}
.g6{display:grid;grid-template-columns:repeat(6,1fr);gap:10px 12px}
.c1{grid-column:span 1}.c2{grid-column:span 2}.c4{grid-column:span 4}

.one-screen .field{gap:3px}
.one-screen .field>span{font-size:12.5px}
.one-screen input:not([type=checkbox]),.one-screen select,.one-screen .stripe-box{height:clamp(38px,5.2vh,44px);border-radius:10px;font-size:15px;padding:0 12px}
.one-screen select{padding-right:32px}
.one-screen .money i{font-size:24px;left:12px}
.one-screen .money input{height:clamp(38px,5.2vh,44px);padding-left:30px;font-size:26px}

.submit-row{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin-top:clamp(12px,2vh,20px)}
.one-screen .consent{margin:0;font-size:13px}
.one-screen .pay-btn{width:auto;min-width:220px;height:52px;padding:0 28px}
.one-screen .alert{margin:12px 0 0;padding:9px 14px}
.secure-note{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:12px;color:var(--mute)}
.secure-note svg{width:13px;height:13px;fill:var(--ok);flex:none}

/* Left panel tightened for short screens */
.one-screen .brand-inner{justify-content:center;gap:clamp(10px,2vh,20px)}
.one-screen .brand h1{margin-top:0}
@media (max-height:720px){
  .one-screen .logo-chip img{height:64px;width:64px}
  .one-screen .brand h1{font-size:34px}
  .one-screen .ticket{padding:14px 18px}
  .one-screen .ticket-amount{font-size:56px}
  .one-screen .assure{display:none}
}

/* Phones & tablets: normal scrolling page */
@media (max-width:900px){
  .one-screen{height:auto;overflow:auto}
  .one-screen .pay,.one-screen .panel{height:auto}
  .g6{grid-template-columns:repeat(2,1fr)}
  .c1{grid-column:span 1}.c2,.c4{grid-column:span 2}
  .submit-row{grid-template-columns:1fr}
  .one-screen .pay-btn{width:100%}
}

/* Consent checkbox alignment */
.consent{align-items:center}
.consent input[type=checkbox],.one-screen .consent input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;padding:0;border-radius:4px;accent-color:var(--gold);cursor:pointer}
.consent span{line-height:1.4}

/* ---- Modern checkbox ---- */
.consent{gap:12px;user-select:none}
.consent input[type=checkbox],.one-screen .consent input[type=checkbox]{
  appearance:none;-webkit-appearance:none;width:22px;height:22px;min-width:22px;margin:0;
  border:2px solid #c9ccdd;border-radius:7px;background:#fff;display:grid;place-content:center;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .12s}
.consent input[type=checkbox]::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg) scale(0);margin-top:-2px;transition:transform .18s cubic-bezier(.3,1.6,.5,1)}
.consent input[type=checkbox]:hover{border-color:var(--gold)}
.consent input[type=checkbox]:checked{background:var(--gold);border-color:var(--gold);box-shadow:0 4px 12px -3px rgba(232,184,88,.6)}
.consent input[type=checkbox]:checked::after{transform:rotate(45deg) scale(1)}
.consent input[type=checkbox]:active{transform:scale(.92)}
.consent input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(232,184,88,.25)}
.consent:has(input:checked) span{color:var(--ink)}

/* ---- SSL / trust badges ---- */
.secure-note{display:none}
.trust{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:12px;line-height:1}
.badge svg{width:16px;height:16px;fill:var(--indigo);flex:none}
.badge b{font-weight:700;color:var(--ink)}
.badge i{font-style:normal;color:var(--mute)}
.badge.ssl{background:#e9f8f0;border-color:#bfe8d1}
.badge.ssl svg{fill:var(--ok)}
.badge.ssl b{color:#127a43}
.trust .copy{margin-left:auto;font-size:12px;color:var(--mute)}
@media (max-width:560px){.trust .copy{margin-left:0;width:100%}}

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