/* Working states for the real pages (not in the static designs): field errors, busy buttons,
   real inputs behind the design's digit boxes, checkboxes and selects. Uses os.css tokens only. */
.input.err{box-shadow:inset 0 0 0 1.5px var(--red),0 0 0 4px rgba(255,69,58,.12)}
.digits.err i{box-shadow:inset 0 0 0 1.5px var(--red)}
.ferr{font-size:12.5px;font-weight:500;color:#d70015;margin-top:7px;line-height:1.4}
.ferr a{color:var(--blue);font-weight:600}
.form-err{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:12px 14px;border-radius:14px;background:rgba(255,69,58,.08);color:#b5000f;font-size:14px;line-height:1.45}
.form-ok{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:12px 14px;border-radius:14px;background:rgba(48,209,88,.12);color:#1a7f37;font-size:14px;line-height:1.45}
.form-err svg,.form-ok svg{width:18px;height:18px;flex:none;margin-top:1px}

/* <button> does not inherit letter-spacing; the designs use <a class="btn"> */
button,select{letter-spacing:inherit}

/* buttons: loading */
.btn[disabled]{cursor:default}
.btn.busy{pointer-events:none;opacity:.85}
.btn.busy::before{content:"";width:15px;height:15px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:kl-spin .7s linear infinite;flex:none}
@keyframes kl-spin{to{transform:rotate(360deg)}}
a.lnk,button.lnk{cursor:pointer}

/* a real input laid over the design's digit boxes */
.digits{position:relative}
.digits .digit-in{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;font-size:16px;color:transparent;background:transparent;caret-color:transparent;cursor:text}
.digits.ro i{background:var(--fill);box-shadow:none}

/* real checkboxes behind the design's .check */
.consent,.trust{cursor:pointer;position:relative}
.consent input,.trust input,.pick input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.consent input:checked+.check,.trust input:checked+.check{background:var(--blue);box-shadow:none}
.consent input:checked+.check::after,.trust input:checked+.check::after{content:"";width:10px;height:5px;border:2.4px solid #fff;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.consent input:focus-visible+.check,.trust input:focus-visible+.check{outline:3px solid rgba(10,132,255,.35);outline-offset:2px}
.consent.err .check{box-shadow:inset 0 0 0 1.5px var(--red)}

/* select dressed as the design's .input with a chevron */
.sel,.field>span.sel{position:relative;display:block;font-size:inherit;font-weight:400;color:inherit;margin:0}
.sel select.input{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer}
.sel select.input.ph{color:var(--ink3)}
.sel>svg{position:absolute;right:14px;top:50%;width:18px;height:18px;margin-top:-9px;color:var(--ink3);pointer-events:none}

/* interest picks as buttons */
button.pick{cursor:pointer;color:inherit}
button.pick.on{color:var(--blue)}
button.pick[disabled]{cursor:default}

/* keyboard focus */
.btn:focus-visible,.seg button:focus-visible,.seg a:focus-visible,.pf:focus-visible,.pick:focus-visible,.lnk:focus-visible{outline:3px solid rgba(10,132,255,.4);outline-offset:2px}
.pf:focus-visible{outline:0}
.pf:focus-visible .tile{box-shadow:0 0 0 4px var(--bg),0 0 0 7px var(--blue),0 30px 50px -24px rgba(15,39,68,.45)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- UX-B: dark theme for the working states (pages that opt in with the theme head script) ---------- */
[data-theme=dark] .ferr{color:#ff8a84}
[data-theme=dark] .form-err{background:rgba(255,69,58,.14);color:#ff8a84}
[data-theme=dark] .form-ok{background:rgba(48,209,88,.14);color:#6ee391}
[data-theme=dark] .digits.ro i{background:var(--fill);box-shadow:none}
[data-theme=dark] .consent input:checked+.check,[data-theme=dark] .trust input:checked+.check{background:var(--blue);box-shadow:none}
[data-theme=dark] .input.err{box-shadow:inset 0 0 0 1.5px #ff6961,0 0 0 4px rgba(255,69,58,.2)}
.consent input:checked+.check::after,.trust input:checked+.check::after{animation:kl-tick var(--dur-3) var(--ease-spring)}
