/* Form result popup (SweetAlert-style) for the Contact and Careers forms.
   Markup is built by assets/js/form-result-popup.js. Uses brand tokens from main.css. */

.sl-pop{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(45,58,78,.45);opacity:0;transition:opacity .25s var(--sl-ease,ease)}
.sl-pop.is-open{opacity:1}

.sl-pop__box{width:100%;max-width:400px;padding:32px 28px 26px;border-radius:var(--sl-r-lg,28px);background:#fff;box-shadow:var(--sl-shadow,0 22px 44px -22px rgba(45,58,78,.28));text-align:center;font-family:var(--sl-body,system-ui,sans-serif);transform:scale(.85) translateY(12px);transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.sl-pop.is-open .sl-pop__box{transform:none}

/* Animated icon: the ring draws first, then the tick or cross. */
.sl-pop__icon{width:84px;height:84px;margin:0 auto 18px}
.sl-pop__icon svg{width:100%;height:100%;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sl-pop__ring{stroke-dasharray:151;stroke-dashoffset:151}
.sl-pop__mark{stroke-width:4;stroke-dasharray:48;stroke-dashoffset:48}
.sl-pop.is-open .sl-pop__ring{animation:sl-pop-draw .5s .1s var(--sl-ease,ease) forwards}
.sl-pop.is-open .sl-pop__mark{animation:sl-pop-draw .35s .55s var(--sl-ease,ease) forwards}
.sl-pop--ok .sl-pop__icon svg{stroke:var(--sl-brand,#28784F)}
.sl-pop--ok .sl-pop__icon{border-radius:50%;background:var(--sl-brand-tint,#E8F4EC)}
.sl-pop--err .sl-pop__icon svg{stroke:#C0392B}
.sl-pop--err .sl-pop__icon{border-radius:50%;background:#FDECEA}
.sl-pop--err.is-open .sl-pop__box{animation:sl-pop-shake .4s .85s}

.sl-pop__title{margin:0 0 8px;font-family:var(--sl-display,system-ui,sans-serif);font-size:1.6rem;line-height:1.2;color:var(--sl-ink,#2D3A4E)}
.sl-pop__text{margin:0 0 22px;font-size:1rem;line-height:1.55;color:var(--sl-text,#3A4659)}

.sl-pop__btn{min-width:120px;min-height:46px;padding:0 28px;border:0;border-radius:999px;background:var(--sl-grad-strong,#28784F);color:#fff;font:600 1rem/1 var(--sl-body,system-ui,sans-serif);cursor:pointer;transition:transform .15s,box-shadow .15s}
.sl-pop__btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px -8px rgba(40,120,79,.6)}
.sl-pop__btn:focus-visible{outline:3px solid var(--sl-mint,#5FB68A);outline-offset:3px}
.sl-pop--err .sl-pop__btn{background:var(--sl-ink,#2D3A4E)}

@keyframes sl-pop-draw{to{stroke-dashoffset:0}}
@keyframes sl-pop-shake{0%,100%{transform:none}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}

@media (prefers-reduced-motion:reduce){
  .sl-pop,.sl-pop__box{transition:none}
  .sl-pop__ring,.sl-pop__mark{stroke-dashoffset:0;animation:none!important}
  .sl-pop--err.is-open .sl-pop__box{animation:none}
}
