/* Business finance multi-step form (/apply) */

.ap-head{padding:28px 40px 0}
.ap-meta{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--base-75);margin-bottom:12px;gap:12px}
.ap-back{background:none;border:0;padding:6px 0;font:inherit;color:var(--base-100);cursor:pointer;display:inline-flex;align-items:center;gap:6px;visibility:hidden}
.ap-back.on{visibility:visible}
.ap-meta:has(.ap-back:not(.on)){display:none} /* first question: no empty Back row above the progress bar */
.ap-back:hover{text-decoration:underline}
.ap-bar{height:4px;border-radius:4px;background:var(--base-25);overflow:hidden}
.ap-fill{display:block;height:100%;border-radius:4px;background:var(--primary-100);transition:width .45s cubic-bezier(.2,.8,.2,1)}
.ap-body{padding:36px 40px 40px;min-height:420px;position:relative}
.ap-step{display:none}
.ap-step.on{display:block;animation:apIn .4s cubic-bezier(.2,.8,.2,1)}
.ap-step.on.back{animation-name:apBack}
@keyframes apIn{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes apBack{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ap-step.on{animation:none}.ap-fill{transition:none}}
.ap-q{font-family:var(--sans-serif);font-weight:700;font-size:32px;line-height:1.15;color:var(--base-100);margin:0 0 28px;letter-spacing:-.01em}
.ap-q{text-wrap:balance;text-align:center}
.ap-q:focus{outline:none}

/* layout */
.ap-section{position:relative;overflow:hidden;background:var(--base-100);padding:72px 0 96px;isolation:isolate}
.ap-section::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(60% 70% at 0% 0%,rgba(87,158,132,.45),transparent 70%),
  radial-gradient(45% 55% at 100% 100%,rgba(255,166,48,.18),transparent 70%)}
.ap-section::after{content:"";position:absolute;z-index:-1;right:-140px;top:-160px;width:520px;height:520px;border-radius:0 100% 0 100%;border:1.5px solid rgba(189,219,208,.14);transform:rotate(12deg)}
.ap-wrap{max-width:720px;margin:0 auto;padding:0 32px}
.ap-card{background:#fff;border-radius:28px;box-shadow:0 40px 80px -40px rgba(0,0,0,.55);overflow:hidden}


@media (max-width:767px){
  .ap-section{padding:24px 0 48px}
  .ap-wrap{padding:0 16px}
  .ap-card{border-radius:22px}
}

/* amount */
.ap-amount{font-family:var(--sans-serif);font-weight:700;font-size:56px;color:var(--base-100);text-align:center;margin:28px 0 20px;font-variant-numeric:tabular-nums}
.ap-range{width:100%;-webkit-appearance:none;appearance:none;height:12px;border-radius:12px;background:linear-gradient(to right,var(--base-100) var(--p,30%),var(--base-25) var(--p,30%));outline:none}
.ap-range::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;border-radius:50%;background:#fff;border:3px solid var(--base-100);cursor:grab;box-shadow:0 4px 12px rgba(36,66,55,.25)}
.ap-range::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid var(--base-100);cursor:grab}
.ap-range:focus-visible::-webkit-slider-thumb{outline:3px solid var(--primary-50);outline-offset:2px}
.ap-scale{display:flex;justify-content:space-between;font-size:13px;color:var(--base-75);margin:10px 0 24px}
.ap-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ap-chip{border:1.5px solid var(--base-50);background:#fff;border-radius:999px;padding:8px 16px;font:inherit;font-size:15px;color:var(--base-100);cursor:pointer;transition:.15s}
.ap-chip:hover{border-color:var(--base-100)}
.ap-chip.sel{background:var(--base-100);border-color:var(--base-100);color:#fff}

/* option cards */
.ap-opts{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.ap-opts.one{grid-template-columns:1fr}
.ap-opt{display:flex;align-items:center;gap:14px;text-align:left;width:100%;border:1.5px solid var(--base-50);background:#fff;border-radius:16px;padding:16px 18px;font:inherit;color:var(--base-100);cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.ap-opt:hover{border-color:var(--base-100);transform:translateY(-1px)}
.ap-opt:focus-visible{outline:3px solid var(--primary-50);outline-offset:2px}
.ap-opt.sel{border-color:var(--base-100);background:var(--base-25)}
.ap-ico{flex:none;width:44px;height:44px;border-radius:12px;background:var(--base-25);display:grid;place-items:center;color:var(--base-100);transition:.15s}
.ap-opt.sel .ap-ico{background:var(--base-100);color:#fff}
.ap-ico svg{width:22px;height:22px}
.ap-opt b{display:block;font-size:17px;line-height:1.3}
.ap-opt small{display:block;font-size:14px;color:var(--base-75);margin-top:2px;line-height:1.35}
.ap-tick{margin-left:auto;flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--base-50);display:grid;place-items:center;color:transparent}
.ap-opt.sel .ap-tick{background:var(--primary-100);border-color:var(--primary-100);color:var(--base-100)}
.ap-tick svg{width:12px;height:12px}

/* fields */
.ap-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ap-field{display:flex;flex-direction:column;gap:6px}
.ap-field.full{grid-column:1/-1}
.ap-field label{font-size:15px;font-weight:700;color:var(--base-100)}
.ap-field input{border:1.5px solid var(--base-50);border-radius:12px;padding:14px 16px;font:inherit;font-size:16px;color:var(--base-100);background:#fff;width:100%}
.ap-field input:focus{outline:none;border-color:var(--base-100);box-shadow:0 0 0 3px var(--base-25)}
.ap-field input[aria-invalid=true]{border-color:#c0392b}
.ap-err{font-size:13px;color:#c0392b;min-height:0}
.ap-consent,.ap-field .ap-consent{display:flex;gap:10px;align-items:flex-start;font-size:12px;font-weight:400;color:#333;margin-top:18px;line-height:1.5}
.ap-consent input{margin-top:2px;width:18px;height:18px;accent-color:var(--base-100);flex:none}
.ap-consent a{color:#111;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.ap-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* actions */
.ap-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:32px}
.ap-next{border:0;cursor:pointer;font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:10px}
.ap-next[disabled]{opacity:.45;cursor:not-allowed}
.ap-formerr{margin-top:16px;padding:12px 16px;border-radius:12px;background:#fdecea;color:#8a2a1f;font-size:14px;display:none}
.ap-formerr.on{display:block}
.ap-formerr a{color:inherit}

/* done */
.ap-done{text-align:center;padding:24px 0}
.ap-badge{width:72px;height:72px;border-radius:50%;background:var(--base-100);color:var(--primary-100);display:grid;place-items:center;margin:0 auto 20px;animation:apPop .5s cubic-bezier(.2,1.4,.4,1)}
.ap-badge svg{width:32px;height:32px}
@keyframes apPop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.ap-summary{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--base-25);border:1px solid var(--base-25);border-radius:16px;overflow:hidden;text-align:left;margin:28px 0}
.ap-summary div{background:#fff;padding:14px 16px}
.ap-summary dt{font-size:13px;color:var(--base-75)}
.ap-summary dd{margin:2px 0 0;font-weight:700;color:var(--base-100)}
.ap-steps-next{text-align:left;max-width:440px;margin:0 auto;padding:0;list-style:none;counter-reset:s}
.ap-steps-next li{counter-increment:s;display:flex;gap:12px;padding:8px 0;color:var(--base-100)}
.ap-steps-next li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;background:var(--primary-50);display:grid;place-items:center;font-size:13px;font-weight:700}

@media (max-width:767px){
  .ap-head{padding:18px 20px 0}.ap-meta{margin-bottom:8px}.ap-back{padding:2px 0}
  .ap-body{padding:28px 20px 28px;min-height:0}
  .ap-q{font-size:26px}
  .ap-amount{font-size:44px}
  .ap-opts,.ap-grid,.ap-summary{grid-template-columns:1fr}
  .ap-next{width:100%;justify-content:center}
}
.ap-next svg{width:18px;height:18px;flex:none}

/* can't-help screen */
.ap-badge-no{background:var(--primary-50);color:#7a4508}
.ap-stop{font-size:17px;color:var(--base-75);max-width:420px;margin:-12px auto 0;text-align:center}
.ap-fix{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--base-100);text-decoration:underline;cursor:pointer}

/* partner application extras */
.ap-multi-hint{margin:-16px 0 18px;text-align:center;font-size:14px;color:var(--base-75)}
.ap-opt-label{font-weight:400;color:var(--base-75);font-size:13px}
.ap-field textarea{border:1.5px solid var(--base-50);border-radius:12px;padding:14px 16px;font:inherit;font-size:16px;color:var(--base-100);background:#fff;width:100%;resize:vertical;min-height:90px}
.ap-field textarea:focus{outline:none;border-color:var(--base-100);box-shadow:0 0 0 3px var(--base-25)}
.ap-next[disabled]{opacity:.45;cursor:not-allowed}
.ap-unit{font-size:18px;font-weight:700;color:var(--base-75);letter-spacing:0}
.ap-min{min-height:22px;margin:-8px 0 0;text-align:center;font-size:15px;font-weight:700;color:#b9651a}
.ap-page-title{color:#fff;text-align:center;font-size:clamp(34px,4vw,52px);line-height:1.05;letter-spacing:-.02em;margin:0 0 32px;text-wrap:balance}
@media (max-width:767px){.ap-page-title{font-size:32px;line-height:1.1;margin:28px 0 36px}}
.ap-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ap-text-step input{font-size:18px;padding:16px 18px;text-align:center}
.ap-note{margin:10px 0 0;font-size:13px;color:var(--base-75);text-align:center}
.ap-text-step .ap-err{text-align:center;line-height:1.6}
.ap-text-step .ap-fix{display:inline;margin-left:4px}
.ap-exempt{display:block;margin:6px auto 0;background:none;border:0;padding:0;font:inherit;font-size:13px;color:var(--base-75);text-decoration:underline;cursor:pointer}
/* partner application: self-serve option on the thank-you screen */
.ap-done-lead{font-size:17px;margin:4px 0 22px;color:inherit}
.ap-selfserve{display:grid;gap:8px;justify-items:center;max-width:460px;margin:0 auto;padding:22px;border-radius:18px;background:#e4f1ed;color:#1b3329;text-align:center}
.ap-selfserve b{font-size:17px}.ap-selfserve span{font-size:14.5px;line-height:1.5;color:#3d6656}
.ap-selfserve-btn{margin-top:8px}
/* Companies House search + director step */
.ap-co-list{margin-top:12px}.ap-co-list:empty{display:none}
.ap-co-list .ap-opt small,.ap-dir .ap-opt small{display:block;margin-top:2px;font-weight:400}
.ap-opt[disabled]{opacity:.5;cursor:not-allowed}
.ap-link{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ap-sub{margin:-6px 0 14px;opacity:.75}
.ap-dir-manual{margin-top:14px}
.ap-dir-manual[hidden]{display:none}
.ap-ts:empty{display:none}.ap-ts{margin:6px 0 12px}
/* matched broker card on the thank-you screen */
.ap-match{display:grid;justify-items:center;gap:4px;max-width:520px;margin:0 auto 8px;padding:28px 22px 22px;border:1px solid var(--base-25);border-radius:20px;background:#fff;box-shadow:0 14px 40px rgba(20,39,31,.08);text-align:center}
.ap-match-tag{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--base-75);margin-bottom:10px}
.ap-match-logo{max-width:200px;max-height:72px;object-fit:contain;margin-bottom:12px}
.ap-match-name{font-size:22px;line-height:1.25;color:var(--base-100)}
.ap-match-who{font-size:15px;color:var(--base-75)}
.ap-match-about{margin:8px 0 0;font-size:15px;line-height:1.55;color:var(--base-100)}
.ap-match-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;width:100%;margin-top:18px}
.ap-mb{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:14px;background:var(--base-100);color:#fff;text-decoration:none;text-align:left;min-width:0;transition:transform .15s}
.ap-mb:hover{transform:translateY(-1px)}.ap-mb:focus-visible{outline:3px solid var(--primary-100);outline-offset:2px}
.ap-mb svg{width:20px;height:20px;flex:none;color:var(--primary-100)}
.ap-mb span{display:grid;min-width:0}.ap-mb b{font-size:15px}.ap-mb em{font-style:normal;font-size:13px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-match+.ap-summary{margin-top:22px}
.ap-mb-whatsapp{background:#1f8f4e}.ap-mb-whatsapp svg{color:#fff}
.ap-match-note{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--base-75)}

/* /apply on phones: keep the footer well below the form so nothing distracts from it */
@media (max-width:767px){.ap-section.ap-solo{padding-bottom:40px}}
.ap-quick{margin:14px 0 0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13.5px;color:var(--base-75)}.ap-quick svg{flex:none}


/* /business-finance ad landing page: headline and benefit ticks beside the form (stacked on phones), logo centred, no links */
.llb-lp{position:absolute;left:0;right:0;top:0}
.llb-lp .llb-main{background:transparent;border:0;box-shadow:none}
.llb-lp .llb-main .llb-in{justify-content:center}
.ap-lp::after{display:none}
.ap-lp{padding:100px 0 88px;background:#18302a} /* deeper than the site green, for a more premium feel */
.ap-lp::before{background:
  radial-gradient(60% 65% at 8% 8%,rgba(97,176,146,.24),transparent 72%),
  radial-gradient(40% 50% at 92% 90%,rgba(255,166,48,.16),transparent 70%),
  linear-gradient(180deg,rgba(255,255,255,.02),transparent 40%)}
.ap-lp .ap-wrap{max-width:1160px}
.ap-lp-head{text-align:center;color:#fff;margin:0 auto 26px;max-width:620px}
.ap-lp-head h1{margin:0 0 22px;font-size:42px;line-height:1.08;letter-spacing:-.025em;color:#fff;font-weight:600;text-wrap:balance}
.ap-lp-head ul{list-style:none;margin:0 auto;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:fit-content;max-width:100%}
.ap-lp-head li{display:flex;align-items:flex-start;gap:12px;font-size:16px;font-weight:500;line-height:1.4;color:rgba(255,255,255,.92);text-align:left}
.ap-lp-tick{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:rgba(245,182,92,.16);border:1px solid rgba(245,182,92,.45);color:#f5b65c;margin-top:-1px}
.ap-lp-tick svg{width:13px;height:13px}
.ap-lp .ap-card{border-radius:24px;box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 30px 70px -30px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.06)}
.llf-lp-links a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.llf-lp .llf-in>p{max-width:none}
@media (min-width:1000px){
  .ap-lp{padding:112px 0 104px}
  .ap-lp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,580px);gap:56px;align-items:center}
  .ap-lp-head{text-align:left;margin:0;max-width:none}
  .ap-lp-head h1{font-size:48px;margin-bottom:30px}
  .ap-lp-head ul{margin:0;gap:16px}
  .ap-lp-head li{font-size:17.5px}
}
@media (max-width:767px){.ap-lp::before{background:radial-gradient(140% 45% at 50% 0%,rgba(97,176,146,.2),transparent 75%),radial-gradient(120% 40% at 50% 100%,rgba(255,166,48,.06),transparent 75%)}.ap-lp{padding:72px 0 48px}.ap-lp-head{margin-bottom:16px}.ap-lp-head h1{font-size:28px;margin-bottom:12px}
  .ap-lp-head ul{gap:7px;align-items:stretch;width:100%}.ap-lp-head li{font-size:14px;gap:11px;align-items:center;padding:9px 13px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}.ap-lp-tick{width:22px;height:22px;background:#f2a94a;border:0;color:#18302a;margin:0}.ap-lp-tick svg{width:12px;height:12px}}

/* "Finding options" screen before the contact step */
.ap-step.on.ap-finding{display:grid;place-items:center;min-height:220px} /* beats .ap-step.on{display:block}, which left it off-centre */
.ap-loader{margin:0 auto}
.ap-loader{position:relative;width:132px;height:132px;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 6px var(--base-25,#e6efeb)}
.ap-ring{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(242,169,74,0) 0deg,rgba(242,169,74,.15) 90deg,#f2a94a 300deg,#f2a94a 360deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));animation:ap-spin 1.1s linear infinite}
.ap-ring::after{content:"";position:absolute;top:0;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#f2a94a}
.ap-finding.ok .ap-ring{animation:none;background:#1f8a55;transition:background .3s}
.ap-finding.ok .ap-ring::after{display:none}
@keyframes ap-spin{to{transform:rotate(360deg)}}
.ap-sub-lead{margin-top:-4px;text-align:center}
@media (prefers-reduced-motion:reduce){.ap-ring{animation-duration:2.5s}}
/* agreement line under the submit button (submitting = agreeing) */
.ap-agree{margin:14px auto 0;max-width:520px;text-align:center;font-size:12.5px;line-height:1.55;color:#5a6f66}
.ap-agree a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ap-actions.ap-send{margin-top:20px}.ap-send .ap-next{min-width:340px;justify-content:center;height:auto;min-height:62px;padding:18px 32px;font-size:16.5px}@media (max-width:600px){.ap-send .ap-next{min-width:0}}
.ap-tip{display:flex;gap:12px;align-items:flex-start;margin:18px 0 0;padding:16px 18px;background:#f2f5f3;border-radius:12px;text-align:left}
.ap-tip svg{flex:none;width:22px;height:22px;margin-top:1px;color:var(--base-100)}
.ap-tip p{margin:0;font-size:15px;line-height:1.55;color:var(--base-100)}
.ap-tip b{display:block;margin-bottom:2px;font-weight:700}

@media (max-width:767px){.ap-step.on.ap-finding{min-height:160px}.ap-loader{width:84px;height:84px;box-shadow:inset 0 0 0 5px var(--base-25,#e6efeb)}}
.ap-br{display:none} /* line break in the long tick, phones only, so its box hugs the text */
/* Phones: ticks keep their boxes, sized to the text and centred (not full width) */
@media (max-width:767px){.ap-lp .ap-lp-head ul{width:100%;margin:0 auto;align-items:center;gap:7px}
  .ap-lp .ap-lp-head li{width:fit-content;max-width:100%;padding:8px 16px 8px 9px;border-radius:20px;white-space:nowrap}
  .ap-lp .ap-br{display:inline}}
.ap-step.on.still{animation:none}
/* Phones: once past the first question, only the logo and the form (questions sit at the top of the screen) */
@media (max-width:767px){.ap-lp.ap-going .ap-lp-head{display:none}}
/* Leaflegal: two separate, unticked consent boxes */
.ap-consents{display:flex;flex-direction:column;gap:6px;margin:18px auto 0;max-width:560px}
.ap-check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.5;color:var(--base-100);cursor:pointer;text-align:left}
.ap-check input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--base-100);cursor:pointer}
.ap-check a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ap-consents .ap-err{padding-left:30px}
.ap-stop a{color:inherit;font-weight:600;text-decoration:underline}
