/* ==========================================================================
   חץ מסולסל מונפש | Curly hand-drawn arrow → registration form (#closing)
   Prefix: ca-  | Replaces the straight yellow Lottie arrow (.registration-arrow).
   Desktop: sits under the text and points LEFT to the form (RTL layout).
   Mobile (≤700px, stacked): sits between text and form and points DOWN to it.
   Draws when it reaches the middle of the viewport. Per Efi, the animation
   runs even under prefers-reduced-motion (no reduced-motion override here).
   Without JS the arrow is simply shown fully drawn.
   ========================================================================== */
#closing .ca-arrow{--ca-yellow:#daf14b;position:relative;pointer-events:none;direction:ltr;
  grid-column:1;grid-row:3;justify-self:center;align-self:start;width:300px;height:130px;margin-top:-6px}
#closing .ca-arrow .ca-svg{display:block;width:100%;height:100%;overflow:visible;
  filter:drop-shadow(0 3px 6px rgba(9,30,50,.35))}
#closing .ca-arrow .ca-svg--mob{display:none}
#closing .ca-arrow .ca-line{stroke:var(--ca-yellow);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1 1;stroke-dashoffset:0}

/* hidden until triggered (only when JS is running) */
#closing .ca-arrow.ca-js .ca-line{stroke-dashoffset:1}
#closing .ca-arrow.ca-js.ca-in .ca-shaft{animation:ca-draw 1.15s cubic-bezier(.55,.1,.3,1) .05s 1 both}
#closing .ca-arrow.ca-js.ca-in .ca-head{animation:ca-draw .32s cubic-bezier(.3,.7,.3,1) 1.15s 1 both}
#closing .ca-arrow.ca-js.ca-in .ca-svg--desk{animation:ca-nudge-x 2.6s ease-in-out 1.9s infinite}
#closing .ca-arrow.ca-js.ca-in .ca-svg--mob{animation:ca-nudge-y 2.6s ease-in-out 1.9s infinite}
@keyframes ca-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes ca-nudge-x{0%,55%,100%{transform:translateX(0)}25%{transform:translateX(-9px)}}
@keyframes ca-nudge-y{0%,55%,100%{transform:translateY(0)}25%{transform:translateY(7px)}}

/* tablet: slightly smaller */
@media (max-width:1100px){#closing .ca-arrow{width:240px;height:104px}}

/* mobile / stacked layout: between the text and the form, pointing down */
@media (max-width:700px){
  #closing .ca-arrow{grid-column:auto;grid-row:auto;justify-self:auto;display:block;
    width:150px;height:112px;margin:4px 24% -12px auto}
  #closing .ca-arrow .ca-svg--desk{display:none}
  #closing .ca-arrow .ca-svg--mob{display:block}
  #closing .ca-arrow .ca-line{stroke-width:4.5}
}

@media(max-width:700px){#closing .ca-arrow{display:none!important}}
