.qs-overlay {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  font-family: system-ui, Arial, sans-serif;
}
.qs-overlay[data-open="1"] { display: flex; }

.qs-modal {
  position: relative;
  background: #fff; color: #111;
  width:420px;
height:660px;
  overflow: hidden;
}

.qs-close {
  position: absolute; top: 8px; inset-inline-end: 10px;
  font-size: 22px; line-height: 1; background: transparent; border: 0; cursor: pointer;
}

.qs-header { padding: 18px 20px 6px; }
.qs-header h2 { margin: 0; font-size: 20px; }

.qs-body { padding: 0 20px 16px; }
.qs-footer { padding: 0 20px 20px; }

.qs-page-title { margin: 10px 0 6px; font-size: 18px; font-weight: 700; color: #222; }

.qs-field { margin: 12px 0; display: block; }
.qs-field label { display: block; margin-bottom: 6px; }
.qs-inline { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 14px; }

.qs-input,
.qs-field input[type="text"],
.qs-field input[type="email"],
.qs-field input[type="tel"],
.qs-field input[type="date"],
.qs-field select,
.qs-field textarea {
  width: 100%; padding: 10px 12px;
  border-radius: 8px; border: 1px solid #d9d9d9; outline: none;
}

.qs-field-title { margin: 16px 0 4px; font-weight: 700; font-size: 18px; }

.qs-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 0 0;
}
.qs-arrow {
  min-width: 40px; height: 36px; border-radius: 8px;
  border: 1px solid #d9d9d9; background: #f7f7f7; cursor: pointer;
}
.qs-arrow:disabled { opacity: .5; cursor: default; }
.qs-dots { display: flex; gap: 8px; }
.qs-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #999; background: #fff; cursor: pointer;
}
.qs-dot.is-active { background: #111; border-color: #111; }

.qs-btn-primary {
  background: #0057ff; color: #fff; border: 0;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
}
.qs-btn-primary:hover { filter: brightness(1.05); }

.qs-empty { margin: 10px 0; color: #777; }
/* מסגרת סביב שדות טקסטואליים בלבד */
.qs-field.qs-framed {
  border: 1px solid #cbd5e1;       /* אפור עדין */
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

/* מנקים את גבול השדה הפנימי כדי שלא תהיה מסגרת כפולה */
.qs-field.qs-framed .qs-input:not(select) {
  border: 0;
  padding: 0;
}

/* שומרים על מרווח תקין בין התווית לשדה */
.qs-field.qs-framed label {
  margin-bottom: 6px;
}
/* הוסף ל-popup.css */
.qs-noscroll { overflow: hidden; }
/* בסיס – צבע וגודל טקסט לכל המודל */
#qs-popup .qs-modal {
  color: var(--qs-text-color, #111) !important;
  font-size: var(--qs-font-size, 16px) !important;
}

/* כותרות ותוויות */
#qs-popup .qs-header h2,
#qs-popup .qs-page-title,
#qs-popup .qs-field label {
  color: var(--qs-text-color, #111) !important;
}

/* שדות וכפתורים מקבלים גם הם את גודל הטקסט המבוקש */
#qs-popup .qs-input,
#qs-popup .qs-btn-primary
 {
  font-size: var(--qs-font-size, 16px) !important;
}

/* אופציונלי: צבע placeholder (שמרני, בלי color-mix) */
#qs-popup .qs-input::placeholder {
  color: rgba(0,0,0,.45);
}












/* טיפוס למשתנה שניתן לאנימציה רציפה */
@property --rotate {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* אנימציה שמשנה רק את --rotate (לא נוגעת ב-transform) */
@keyframes glowVarRotate {
  to { --rotate: 360deg; }
}

:root {
  --card-height: 660px;
  --card-width: 420px;
}




.magic_card {
  background: #191c29;
  width: var(--card-width);
  height: var(--card-height);
  padding: 3px;
  position: relative;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  font-size: 1.5em;
  color: rgb(88 199 250 / 0%);
  cursor: pointer;
  font-family: cursive;
}

.magic_card:hover {
  color: rgb(88 199 250 / 100%);
  transition: color 1s;
}
.magic_card:hover:before, .magic_card:hover:after {
  animation: none;
  opacity: 0;
}


.magic_card::before {
  content: "";
  width: 104%;
  height: 102%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate)
    , #5ddcff, #3c67e3 43%, #4e00c2);
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: glowVarRotate  2.5s linear infinite;
}

.magic_card::after {
    position: absolute;
    content: "";
    top: calc(var(--card-height) / 6);
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    /* transform: scale(0.8); */
    filter: blur(calc(var(--card-height) / 6));
    background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
    opacity: 1;
    transition: opacity .5s;
    animation: glowVarRotate  2.5s linear infinite;
    top: -1%;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}









.box {
  width: 420px;
  height: 660px;
  --border-angle: 0turn;
  --main-bg: conic-gradient(
      from var(--border-angle),
      #213,
      #112 5%,
      #112 60%,
      #213 95%
    );
  border: solid 5px transparent;
  border-radius: 2em!important;
  --gradient-border: conic-gradient(from var(--border-angle), transparent 25%, #08f, #f03 99%, transparent);
  background: var(--main-bg) padding-box, var(--gradient-border) border-box, var(--main-bg) border-box!important;
  background-position: center center;
  -webkit-animation: bg-spin 3s linear infinite;
          animation: bg-spin 3s linear infinite;
	overflow:hidden;
}
@-webkit-keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}
@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}
.box:hover {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}





















:root {
  font-size: 10px;
  --delay: .5s;
  --timing: 1s;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
}

.box-outer {
  overflow: hidden;
  width: 420px;
  height: 660px;
}
.main_box {
  width: 420px;
  height: 660px;
  position: relative;
  background: #f34c4c;
  border: 0.5rem solid #000;
}
.main_box .bar {
  position: absolute;
  width: 5rem;
  height: 0.5rem;
  background: #fff;
  transition: all var(--timing) linear;
  -webkit-animation-duration: var(--timing);
  animation-duration: var(--timing);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}
.main_box .bar.delay {
  animation-delay: var(--delay);
  -webkit-animation-delay: var(--delay);
}
.main_box  .top {
  top: -0.5rem;
  left: -0.5rem;
}
.main_box .right {
  top: 1.8rem;
  right: -2.8rem;
  transform: rotate(90deg);
}
.main_box .bottom {
  bottom: -0.5rem;
  left: -0.5rem;
}
.main_box .left {
  top: 1.8rem;
  left: -2.8rem;
  transform: rotate(90deg);
}
@-webkit-keyframes h-move {
  0% {
    left: -0.5rem;
  }
  100% {
    left: 20rem;
  }
}
@keyframes h-move {
  0% {
    left: -0.5rem;
  }
  100% {
    left: 20rem;
  }
}
.top,
.bottom {
  -webkit-animation-name: h-move;
  animation-name: h-move;
}
@-webkit-keyframes v-move {
  0% {
    top: -0.5rem;
  }
  100% {
    /*top: 22.8rem;*/
    top: 100%;
  }
}
@keyframes v-move {
  0% {
    top: -0.5rem;
  }
  100% {
    /*top: 22.8rem;*/
    top: 100%;
  }
}
.right,
.left {
  -webkit-animation-name: v-move;
  animation-name: v-move;
}
/* ===========================
   Radio Click-Wave (scoped)
   =========================== */

#qs-popup .qs-radio-wave {
  --qs-wave-size: 200px;
  --qs-radio-size: 40px;
  --qs-accent: #fa9e4d;
  --qs-idle: #cbd1d8;
  --qs-idle-hover: #9faab7;
  --qs-checkmark: "✓"; /* ברירת מחדל ללא FA */
}

#qs-popup .qs-radio-wave label,
#qs-popup .qs-radio-wave .qs-radio-wave-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: var(--qs-radio-size);
  cursor: pointer;
  position: relative; /* כדי שהגל לא ייחתך */
  margin-inline-end: 1rem;
  overflow: visible;
}

/* איפוס ברירת מחדל */
#qs-popup .qs-radio-wave .option-input,
#qs-popup .qs-radio-wave.effect_b input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  height: var(--qs-radio-size);
  width:  var(--qs-radio-size);
  border: none;
  border-radius: 50%;
  outline: none;
  background: var(--qs-idle);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease-out;
  z-index: 0;
}

/* Hover */
#qs-popup .qs-radio-wave .option-input:hover,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:hover {
  background: var(--qs-idle-hover);
}

/* מצב נבחר */
#qs-popup .qs-radio-wave .option-input:checked,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked {
  background: var(--qs-accent);
}

/* הסימון בפנים (V) – ברירת מחדל ✓, ואם נטען FA הוא ייראה שם גם */
#qs-popup .qs-radio-wave .option-input:checked::before,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked::before {
  content: var(--qs-checkmark);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

/* גל ההתפשטות */
#qs-popup .qs-radio-wave .option-input:checked::after,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width:  var(--qs-radio-size);
  height: var(--qs-radio-size);
  border-radius: 50%;
  background: var(--qs-accent);
  animation: qs-click-wave .65s forwards;
  z-index: -1; /* מאחורי הכפתור */
}

@keyframes qs-click-wave {
  0%   { width: var(--qs-radio-size); height: var(--qs-radio-size); opacity: .35; }
  100% { width: var(--qs-wave-size);  height: var(--qs-wave-size);
         margin-left: calc(var(--qs-wave-size) / -2 + var(--qs-radio-size)/2);
         margin-top:  calc(var(--qs-wave-size) / -2 + var(--qs-radio-size)/2);
         opacity: 0; }
}

/* טקסט ליד הכפתור */
#qs-popup .qs-radio-wave .qs-radio-caption {
  font: 14px/1.2 "Poppins", system-ui, Arial, sans-serif;
  color: var(--qs-text-color, #111);
}

/* נגישות: outline בפוקוס מקלדת */
#qs-popup .qs-radio-wave .option-input:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--qs-accent), transparent 70%);
}

/* RTL spacing קטן */
html[dir="rtl"] #qs-popup .qs-radio-wave .qs-radio-wave-item {
  margin-inline-end: 0;
  margin-inline-start: 1rem;
}
/* ערימה אנכית לאפשרויות רדיו */
#qs-popup .qs-radio-wave {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* טקסט מיושר שמאלה/ימינה לפי RTL */
  gap: 10px;               /* רווח אנכי בין שורות */
}

/* כל אפשרות – בשורה נפרדת, בלי מרווחים אופקיים קודמים */
#qs-popup .qs-radio-wave .qs-radio-wave-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;               /* מבטל margin-inline שהיה לגרסה האופקית */
}

/* ל-RTL לא צריך מרווח צד – כבר בוטל למעלה */
html[dir="rtl"] #qs-popup .qs-radio-wave .qs-radio-wave-item { margin: 0; }
/* מרכוז מושלם של ה"הילה" סביב הרדיו */
#qs-popup .qs-radio-wave .option-input:checked::after,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width:  var(--qs-radio-size);
  height: var(--qs-radio-size);
  border-radius: 50%;
  background: var(--qs-accent);
  transform: translate(-50%, -50%) scale(1);
  animation: qs-click-wave-centered .65s forwards;
  z-index: -1; /* מאחורי הכפתור */
}

/* במקום להגדיל width/height + מרג'ינים, עוברים ל-scale עם מרכוז */
@keyframes qs-click-wave-centered {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .35;
  }
  100% {
    transform: translate(-50%, -50%) scale(var(--qs-wave-scale, 5));
    opacity: 0;
  }
}
/* מרכוז אמיתי של ההילה + ניקוי מרג'ינים/קצוות מהכלל הישן */
#qs-popup .qs-radio-wave .option-input:checked::after,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;              /* ביטול inset מהכלל הישן */
  bottom: auto;             /* ביטול inset מהכלל הישן */
  margin: 0;                /* מבטל margin:auto מהכלל הישן */
  width:  var(--qs-radio-size);
  height: var(--qs-radio-size);
  border-radius: 50%;
  background: var(--qs-accent);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  animation: qs-click-wave-centered .65s forwards;
  z-index: -1;              /* מאחורי הכפתור */
  pointer-events: none;     /* לא חוסם קליקים לשכנים */
}

/* גם ה"וי" לא יחסום קליקים */
#qs-popup .qs-radio-wave .option-input:checked::before,
#qs-popup .qs-radio-wave.effect_b input[type="radio"]:checked::before {
  pointer-events: none;
}

/* ודא שהאינפוט מעל שכבת ההילה */
#qs-popup .qs-radio-wave .option-input,
#qs-popup .qs-radio-wave.effect_b input[type="radio"] {
  position: relative;
  z-index: 1;
}

/* כל פריט יוצר קונטקסט זינדקס משלו, ההילה לא "תדלוף" לשכן */
#qs-popup .qs-radio-wave .qs-radio-wave-item {
  position: relative;
  isolation: isolate; /* חשוב כדי ש-z-index:-1 יישאר מתחת לפריט עצמו בלבד */
}

/* אנימציית scale ממורכזת */
@keyframes qs-click-wave-centered {
  0%   { transform: translate(-50%, -50%) scale(1);                 opacity: .35; }
  100% { transform: translate(-50%, -50%) scale(var(--qs-wave-scale, 5)); opacity: 0; }
}
/* =============== Effect C: Gooey Switch (scoped to popup) =============== */
#qs-popup .qs-radio-switchC {
  --qs-switch-accent: #fa9e4d;
  --qs-switch-idle:   gray;
  --qs-cap-color:     var(--qs-text-color, #111);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#qs-popup .qs-switchC-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  isolation: isolate;           /* מגן על שכבות פנימיות */
}

#qs-popup .qs-switchC-caption {
  font: 14px/1.2 system-ui, Arial, sans-serif;
  color: var(--qs-cap-color);
}

/* מסתירים את רדיו הליבה אך משאירים פוקוסיות */
#qs-popup .qs-radio-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* מתג וגשר */
#qs-popup .switchContainer {
  position: relative;
  width: 60px; height: 30px;    /* box הנראה */
  display: inline-block;
}

#qs-popup .switchBg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 7px;
  border-radius: 999px;
  background: var(--qs-switch-idle);
  transition: background 300ms ease;
}

#qs-popup .switchBtn {
  position: absolute;
  left: 0; top: 50%;
  transform: translate3d(0,-50%,0);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--qs-switch-idle);
  transition: background 300ms ease;
}

/* מצב "דלוק" (נבחר) – נצבע ב-accent */
#qs-popup .qs-switchC-item[aria-checked="true"] .switchBg,
#qs-popup .qs-switchC-item[aria-checked="true"] .switchBtn {
  background: var(--qs-switch-accent);
}

/* אנימציות on/off (מותאם מהקוד שנתת) */
@keyframes qsC_switchOn {
  0%   { transform: translate3d(0,-50%,0) scale3d(1,1,1); transform-origin: left center; }
  40%  { transform: translate3d(20px,-50%,0) scale3d(1.4,0.7,1); transform-origin: right center; }
  70%  { transform: translate3d(33px,-50%,0) scale3d(0.9,1.15,1); }
  100% { transform: translate3d(30px,-50%,0) scale3d(1,1,1); }
}
@keyframes qsC_switchOff {
  0%   { transform: translate3d(30px,-50%,0) scale3d(1,1,1); transform-origin: right center; }
  40%  { transform: translate3d(10px,-50%,0) scale3d(1.4,0.7,1); transform-origin: right center; }
  70%  { transform: translate3d(-3px,-50%,0) scale3d(0.9,1.15,1); }
  100% { transform: translate3d(0,-50%,0) scale3d(1,1,1); }
}

/* החלת האנימציות לפי data-state */
#qs-popup .qs-switchC-item[data-state="on"] .switchBtn {
  animation: qsC_switchOn 250ms linear forwards;
}
#qs-popup .qs-switchC-item[data-state="off"] .switchBtn {
  animation: qsC_switchOff 250ms linear forwards;
}

/* פוקוס מקלדת ברור */
#qs-popup .qs-switchC-item:focus-within .switchBg,
#qs-popup .qs-switchC-item:focus-visible .switchBg {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--qs-switch-accent), transparent 70%);
}

/* התאמה עומדת: אפשר להקטין/להגדיל את כל המתג בעזרת scale inline (כמו בדוגמה) */
/* שמירת חדות/עגול מושלם, גם בסוף האנימציה */
#qs-popup .switchBtn {
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  border-radius: 50%;        /* מבטיח עיגול גם כשיש scale זמני */
}

/* כברירת מחדל – בלי פילטר (יופעל רק בזמן אנימציה דרך JS) */
#qs-popup .switchBg,
#qs-popup .switchBtn {
  -webkit-filter: none !important;
          filter: none !important;
}
/* כבה פילטר מהכפתור – מיידי */
#qs-popup .switchContainer .switchBtn{
  -webkit-filter: none !important;
          filter: none !important;
}

/* רוצה עדיין Gooey? תשאירי פילטר רק על הפס */
#qs-popup .switchContainer .switchBg{
  -webkit-filter: url(#gooey_qs_field_*) !important; /* אם יש לך id דינמי, אפשר להשאיר בלי ה-id */
          filter: url(#gooey_qs_field_*) !important;
}
.qs-pages{
    padding: 20px;
    border-radius: 20px;	
	text-align: right;
}
.qs-logo{ text-align:center; margin:8px 0 12px; }
.qs-logo img{ max-width:150px; max-height:150px; width:auto; height:auto;  }




/* ===== Page transition: spin + slide ===== */
#qs-popup .qs-page { will-change: transform, opacity; }

#qs-popup .qs-page.qs-anim-enter {
  animation: qsSpinIn 520ms cubic-bezier(.2,.65,.25,1) both;
}
#qs-popup .qs-page.qs-anim-exit {
  animation: qsSpinOut 520ms cubic-bezier(.2,.65,.25,1) both;
}

@keyframes qsSpinOut {
  0%   { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateX(-60px) rotate(-10deg) scale(.96); }
}
@keyframes qsSpinIn {
  0%   { opacity: 0; transform: translateX(60px) rotate(10deg) scale(.96); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}
/* qs-page יהיה “מוכן לאנימציה” */
#qs-popup .qs-page { will-change: transform, opacity; }

/* דף נכנס */
#qs-popup .qs-page.qs-anim-enter {
  animation: qsSpinIn 520ms cubic-bezier(.2,.65,.25,1) both;
}

/* דף יוצא */
#qs-popup .qs-page.qs-anim-exit {
  animation: qsSpinOut 520ms cubic-bezier(.2,.65,.25,1) both;
}

/* פריימים: יוצא */
@keyframes qsSpinOut {
  0%   { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateX(-60px) rotate(-10deg) scale(.96); }
}

/* פריימים: נכנס */
@keyframes qsSpinIn {
  0%   { opacity: 0; transform: translateX(60px) rotate(10deg) scale(.96); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}
/* אפקט דפדוף 3D לעמודי הטופס */
#qs-popup .qs-pages{
  position: relative;
  perspective: 900px;         /* עומק */
  -webkit-perspective: 900px;
}

/* כל עמוד נערם זה על זה, ונשלט ע"י transform */
#qs-popup .qs-page{
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .78s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;       /* רק הפעיל יהיה אינטראקטיבי */
}

/* העמוד הפעיל בלבד */
#qs-popup .qs-page.qs-active{ pointer-events: auto; }

/* נקודת סיבוב לימין/שמאל (RTL) */
#qs-popup .qs-page.qs-origin-right{ transform-origin: 100% 50%; }
#qs-popup .qs-page.qs-origin-left { transform-origin:   0% 50%; }
/* מכולה לדפים */
.qs-pages{
  position: relative;
  perspective: 800px;          /* בשביל ה-3D */
  -webkit-perspective: 800px;
  overflow: hidden;             /* שלא יברח החוצה בזמן סיבוב */
  transition: height .35s ease; /* גובה חלק בין עמודים */
}

/* כל עמוד מונח זו על זו */
.qs-page{
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;     /* לא לראות את הגב */
  -webkit-backface-visibility: hidden;
  transition: transform .8s cubic-bezier(0.175,0.885,0.32,1.275);
}

/* פיבוטים לסיבוב */
.qs-origin-right{ transform-origin: 100% 50%; }
.qs-origin-left { transform-origin:   0% 50%; }

/* אינטראקציה רק עם הפעיל */
.qs-page{ pointer-events: none; }
.qs-page.qs-active{ pointer-events: auto; }



/* מכולת הדפים – גובה קבוע */
.qs-pages{
  position: relative;
  perspective: 800px;
  -webkit-perspective: 800px;
  height: 370px;        /* ← קיבוע הגובה */
  overflow: auto;       /* אם לא רוצים גלילה פנימית – החליפי ל: hidden */
}

/* העמודים עצמם נשארים מוערמים */
.qs-page{
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .8s cubic-bezier(0.175,0.885,0.32,1.275);
}
.qs-origin-right{ transform-origin: 100% 50%; }
.qs-origin-left { transform-origin:   0% 50%; }
.qs-page{ pointer-events: none; }
.qs-page.qs-active{ pointer-events: auto; }
/* ודאי שהמכולה יחסית וסגורה */
#qs-popup .qs-pages{
  position: relative !important;
  overflow: visible !important; /* שלא נראה “שוליים” של דפים אחרים */
  height: 370px !important;    /* לפי מה שביקשת */
}

/* כל דף ממוקם מוחלט ונערם זה על זה */
#qs-popup .qs-pages > .qs-page{
  position: absolute !important;
  inset: 0 !important;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .78s cubic-bezier(0.175,0.885,0.32,1.275);
  pointer-events: none;
	border-radius: 20px;
}

/* רק הדף הפעיל אינטראקטיבי */
#qs-popup .qs-pages > .qs-page.qs-active{
  pointer-events: auto;
}
/* היה לך padding על .qs-pages – תעבירי לעמוד עצמו */
#qs-popup .qs-pages { padding: 0 !important; background: none !important; }
#qs-popup .qs-pages > .qs-page {
  padding: 20px;
  border-radius: 20px;
  /* רק אם צריך להבטיח שהרקע יכסה: */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 position: absolute;      /* נשאר כמו אצלך */
  inset: 0;                /* ממלא את המכולה */
  overflow-y: auto;        /* ← כאן הגלילה */
  -webkit-overflow-scrolling: touch; /* גלילה חלקה במ מובייל */
  scrollbar-gutter: stable both-edges; /* פחות קפיצות כשהפס מופיע */
}
/* בסיס לכפתור – לא תלוי מיקום */
#qs-popup .qs-btn-primary {
  margin: 15px auto;
  font-family: "Montserrat";
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  border-radius: 100px;
  padding: 15px 20px;
  border: 0;
  display: inline-flex;        /* נוח ליישור תוכן פנימי */
  align-items: center;
  justify-content: center;
}

/* ===== בסיס חזק לשני הכפתורים: בתוך הפופאפ (#qs-popup) וה-FAB החיצוני (#qs-fab) ===== */
#qs-popup .qs-btn-primary,
#qs-fab {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  border-radius: 999px !important;       /* אליפסה תמיד */
  padding: 12px 18px !important;         /* מספיק גובה “כפתורי” */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font: inherit;
  text-decoration: none;
  overflow: hidden;                       /* שלא יברח מעבר לרדיוס */
  background: transparent;                /* הרקע יגיע מהאפקט */
  color: #fff !important;                 /* טקסט לבן כברירת־מחדל */
  box-sizing: border-box;
  cursor: pointer;
}
/* הטקסט הפנימי (אם קיים span) */
#qs-popup .qs-btn-primary .qs-btn-label,
#qs-fab .qs-btn-label { color:#fff !important; }

/* ===== אפקט A (pulse-button) – נוודא רדיוס ורקע לא נדרסים ===== */
#qs-popup .qs-btn-primary.pulse-button,
#qs-fab.pulse-button {
  border-radius: 999px !important;
  animation: borderPulse 1000ms infinite ease-out, colorShift 10000ms infinite ease-in;
}
#qs-popup .pulse-button:hover,
#qs-popup .pulse-button:focus,
#qs-fab.pulse-button:hover,
#qs-fab.pulse-button:focus {
  animation: borderPulse 1000ms infinite ease-out,
             colorShift 10000ms infinite ease-in,
             hoverShine 200ms;
}

/* ===== אפקט B (animated-button) – עם גל ברק ===== */
#qs-popup .qs-btn-primary.animated-button,
#qs-fab.animated-button {
  background: linear-gradient(45deg, #fbba00, #ebb215) !important;
  border-radius: 105px !important;
  min-height: 44px; /* מבטיח אליפסה גם אם יש איפוס גלובלי */
  position: relative;
  isolation: isolate;
}
#qs-popup .qs-btn-primary.animated-button::before,
#qs-fab.animated-button::before {
  content: "";
  position: absolute; inset: 0;
  left: -100%;
  background: linear-gradient(45deg, transparent, #ffffff, transparent);
  animation: qsWave 2s infinite linear;
  z-index: 0;
}
#qs-popup .qs-btn-primary.animated-button .qs-btn-label,
#qs-fab.animated-button .qs-btn-label { position: relative; z-index: 1; }

/* ===== אפקט C (button) – עם גרדיאנט פנימי ואספקט ===== */
#qs-popup .qs-btn-primary.button,
#qs-fab.button {
  --speed: 1.25s;
  container-type: size;
  width: 150px;
  aspect-ratio: 7 / 3;
  border-radius: 999px !important;
  background: hsl(0 0% 10%) !important;
  box-shadow:
    0 1px 0 0 hsl(0 0% 100% / 0.35) inset,
    0 -1px 0 0 hsl(0 0% 0% / 0.85);
  position: relative;
  padding: 0 !important;
}
#qs-popup .qs-btn-primary.button::after,
#qs-fab.button::after {
  content: attr(data-after);
  position: absolute; inset: 2px;
  border-radius: 999px;
  background: hsl(0 0% 10%);
  display: grid; place-items: center;
  color: hsl(0 0% 90%); font-weight: 700;
  font-size: 16px; /* 4vmin לפעמים קטן מדי בדסקטופ – אפשר להחזיר אם אהבת */
}
#qs-popup .qs-btn-primary.button .gradient,
#qs-fab.button .gradient {
  position: absolute;
  width: 100cqh; aspect-ratio: 1;
  left: 0; top: 50%; translate: 0 -50%;
  border-radius: 50%;
  animation: slide var(--speed) ease-in-out infinite alternate;
}
#qs-popup .qs-btn-primary.button .gradient::after,
#qs-fab.button .gradient::after {
  --spread: 90deg;
  content: "";
  position: absolute; inset: -100%;
  background: conic-gradient(
    from calc(270deg - (var(--spread) * 0.5)),
    transparent 0,
    hsl(0 0% 100% / 0.75) var(--spread),
    transparent var(--spread)
  );
  animation: rotate calc(var(--speed) * 2) infinite linear;
}

/* ===== אפקט D (testbutton) – ללא לולאת אנימציה ===== */
#qs-popup .qs-btn-primary.testbutton,
#qs-fab.testbutton {
  width: 150px; height: 50px;
  border-radius: 180px !important;
  background: linear-gradient(60deg,
    #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82) !important;
  position: relative; overflow: hidden; box-sizing: border-box;
}
#qs-popup .qs-btn-primary.testbutton::before,
#qs-fab.testbutton::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; background: inherit;
  filter: blur(18px); opacity: 0; transition: opacity .25s ease;
}
#qs-popup .qs-btn-primary.testbutton:hover::before,
#qs-fab.testbutton:hover::before { opacity: .9; }
#qs-popup .qs-btn-primary.testbutton::after,
#qs-fab.testbutton::after {
  content: attr(data-after);
  position: absolute; inset: 6px; z-index: 1;
  border-radius: inherit; display: grid; place-items: center;
  background: #131416; color: #ebebeb;
  font-weight: 700; font-size: 18px;
}

/* ===== Keyframes ===== */
@keyframes colorShift {
  0%, 100% { background: #0045e6; }
  33%      { background: #fb3e3e; }
  66%      { background: #0dcc00; }
}
@keyframes borderPulse {
  0%   { box-shadow: inset 0 0 0 5px rgba(255,255,255,.4), 0 0 0 0 rgba(255,255,255,1); }
  100% { box-shadow: inset 0 0 0 3px rgba(117,117,255,.2), 0 0 0 10px rgba(255,255,255,0); }
}
@keyframes hoverShine {
  0%   { background-image: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0) 100%); }
  50%  { background-image: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%); }
  100% { background-image: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,.4) 100%); }
}
@keyframes qsWave { 0% { left:-100%; } 100% { left:100%; } }
@keyframes rotate { 0% { rotate:0deg; } 15%,35% { rotate:90deg; } 65%,85% { rotate:270deg; } 100% { rotate:360deg; } }
@keyframes slide { to { transform: translate(calc(100cqw - 100%), 0); } }
/* ברירת מחדל: הכפתור מוצג */
#qs-fab { display: inline-flex; }

/* כשהפופאפ פתוח (data-open="1") – הסתר את ה-FAB */
#qs-popup[data-open="1"] ~ #qs-fab { 
  display: none !important;
}
#qs-fab{
  position: fixed;
  left: 20px;         /* ← שמאל קבוע */
  right: auto;        /* ← בטחון שלא “יירש” right ממקום אחר */
  bottom: 20px;
  z-index: 100000;
}
/* הגדלת פונט בכפתור ה-FAB */
#qs-fab {
  font-size: 22px !important;   /* טקסט כללי בכפתור */
  padding: 14px 22px !important; /* קצת יותר מרווח – אופציונלי */
}

/* אם קיים span פנימי לטקסט */
#qs-fab .qs-btn-label {
  font-size: inherit !important;
}

/* מקרה אפקט C (class "button") – הטקסט מוצג ב-::after */
#qs-fab.button::after {
  font-size: 20px !important;
}
/* מקבע את כפתור ה-FAB לצד שמאל בלבד ולא לרוחב מלא */
#qs-fab{
  position: fixed !important;
  left: 20px !important;              /* שמאל */
  right: auto !important;             /* מבטל מתיחה */

  bottom: 20px !important;
  width: auto !important;             /* לא 100% */
  max-width: none !important;
}

/* הגדלת פונט בכפתור */
#qs-fab,
#qs-fab .qs-btn-label{
  font-size: 22px !important;
}

/* אם האפקט הוא C (class "button") – הטקסט מוצג ב-::after */
#qs-fab.button::after{
  font-size: 22px !important;
}
