/* GEFEN – דף ההצטרפות. שאלה אחת בכל מסך, באותה שפה של הדף הראשי. */
.jp-body { background: var(--sage); }
.jp { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.jp::after { background: radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--sage) 55%, transparent), color-mix(in srgb, var(--sage) 90%, transparent)); }

/* ---------- פס עליון ---------- */
.jp__top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--sage) 85%, transparent), transparent); }
.jp__top .logo { color: #fff; }
.jp__progress { flex: 1; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .22); overflow: hidden; }
.jp__progress i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(270deg, #fff, #E9D3A6); transform-origin: right; transform: scaleX(var(--jp, .02)); transition: transform .7s var(--ease); }
.jp__count { font-family: var(--font-head); font-weight: 600; font-size: 17px; direction: ltr; min-width: 52px; text-align: center; }
.jp__count b { font-size: 22px; }
.jp__x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 20px; transition: transform .4s var(--ease), background-color .3s; }
.jp__x:hover { transform: rotate(90deg); background: rgb(255 255 255 / .24); }
@media (max-width: 560px) { .jp__top .logo__word { display: none; } }

/* ---------- הכוס ---------- */
.jp__glass { position: fixed; z-index: 0; bottom: 6vh; left: clamp(16px, 5vw, 80px); width: clamp(70px, 9vw, 150px); opacity: .95; pointer-events: none; }
.jp__glass svg { width: 100%; height: auto; overflow: visible; }
.jp__glass .glass__line { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jp__glass .glass__shine { fill: none; stroke: rgb(255 255 255 / .45); stroke-width: 4; stroke-linecap: round; }
.jp__glass .glass__wine { transform: translateY(calc(192px - var(--fill, .05) * 150px)); transition: transform 1s var(--ease); }
.jp__glass .glass__wave { fill: var(--wine); animation: wave 3.4s linear infinite; }
.jp__glass.clink { animation: clink .9s var(--bounce); }
@keyframes clink { 30% { transform: rotate(-14deg) translateY(-8px); } 60% { transform: rotate(8deg); } }
@media (max-width: 899px) { .jp__glass { display: none; } }

/* ---------- הבמה ---------- */
.jp__stage { position: relative; z-index: 1; display: grid; align-items: center; width: min(860px, 100% - 32px); margin-inline: auto; padding-block: clamp(20px, 5vh, 60px) 30px; }
.jp__form { display: grid; gap: 10px; }
.q { display: grid; gap: 18px; align-content: start; }
.q.enter { animation: qIn .7s var(--ease) both; }
.q.enter-back { animation: qInBack .7s var(--ease) both; }
.q.leave { animation: qOut .38s ease-in both; }
.q.leave-back { animation: qOutBack .38s ease-in both; }
@keyframes qIn { from { opacity: 0; transform: translateY(60px); filter: blur(8px); } }
@keyframes qInBack { from { opacity: 0; transform: translateY(-60px); filter: blur(8px); } }
@keyframes qOut { to { opacity: 0; transform: translateY(-50px); filter: blur(8px); } }
@keyframes qOutBack { to { opacity: 0; transform: translateY(50px); filter: blur(8px); } }
.q__kicker { font-family: var(--font-thin); font-weight: 300; letter-spacing: .22em; font-size: 16px; color: #fff; }
.q__title { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; color: var(--ink); }
.q__title .js-first { color: #fff; }
.q__hint { color: var(--muted-light); font-size: 17px; }
/* מילים בכותרת עולות אחת אחרי השנייה */
.q.enter .q__title .w { display: inline-block; animation: wordUp .7s var(--ease) both; animation-delay: calc(var(--i) * 50ms + 80ms); }
@keyframes wordUp { from { opacity: 0; transform: translateY(.5em) rotate(3deg); } }

/* ---------- חבילות ---------- */
.plans2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans2 { grid-template-columns: 1fr 1fr; } }
.plan2 { position: relative; cursor: pointer; }
.plan2 input { position: absolute; opacity: 0; }
.plan2__in { position: relative; display: grid; gap: 4px; padding: 24px 26px; border-radius: var(--r); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-ink); border: 3px solid transparent; transition: transform .45s var(--bounce), border-color .3s, box-shadow .3s; overflow: hidden; }
.plan2--dark .plan2__in { background: var(--ink); color: #fff; }
.plan2:hover .plan2__in { transform: translateY(-6px) rotate(-.6deg); }
.plan2 input:checked + .plan2__in { border-color: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .25), var(--shadow-ink); transform: scale(1.02); }
.plan2 input:focus-visible + .plan2__in { outline: 3px solid #fff; outline-offset: 4px; }
.plan2__in b { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.plan2__in > span:not(.plan2__bottles) { font-weight: 600; opacity: .75; }
.plan2__in strong { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--wine); line-height: 1.1; }
.plan2--dark .plan2__in strong { color: #F0C7B0; }
.plan2__in small { font-size: 17px; font-weight: 600; opacity: .7; }
.plan2__bottles { display: flex; gap: 4px; height: 34px; align-items: flex-end; margin-bottom: 6px; }
.plan2__bottles i { width: 9px; height: 26px; border-radius: 3px 3px 2px 2px; background: var(--olive); position: relative; animation: bottleIn .6s var(--bounce) both; animation-delay: calc(var(--i, 0) * 60ms + 300ms); }
.plan2--dark .plan2__bottles i { background: var(--leaf); }
.plan2__bottles i::before { content: ""; position: absolute; width: 4px; height: 7px; left: 2.5px; top: -6px; border-radius: 2px 2px 0 0; background: inherit; }
@keyframes bottleIn { from { opacity: 0; transform: translateY(-40px); } }
.plan2__in::after { content: "✓"; position: absolute; top: 18px; left: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #fff; font-weight: 700; transform: scale(0); transition: transform .4s var(--bounce); }
.plan2 input:checked + .plan2__in::after { transform: scale(1); }

/* ---------- שדות ---------- */
.fields { display: grid; gap: 18px 22px; }
@media (min-width: 640px) {
  .fields--2 { grid-template-columns: 1fr 1fr; }
  .fields--addr { grid-template-columns: repeat(6, 1fr); }
  .fields--addr .f--city { grid-column: span 3; } .fields--addr .f--street { grid-column: span 3; }
  .fields--addr .f--s { grid-column: span 2; } .fields--addr .f--wide { grid-column: 1 / -1; }
}
.f { display: grid; gap: 6px; font-weight: 600; font-size: 16px; color: #fff; }
.f input, .f textarea { width: 100%; font: inherit; font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: #fff; background: transparent; border: 0; border-bottom: 2.5px solid rgb(255 255 255 / .45); border-radius: 0; padding: 8px 2px 10px; min-height: 56px; transition: border-color .3s; }
.f input::placeholder, .f textarea::placeholder { color: rgb(255 255 255 / .45); font-size: .7em; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: #fff; }
.f--area textarea { border: 2.5px solid rgb(255 255 255 / .45); border-radius: 22px; padding: 16px 18px; resize: vertical; min-height: 130px; background: rgb(255 255 255 / .08); }
.f--area textarea:focus { border-color: #fff; }
.f.bad input, .f.bad textarea { border-color: #FFB4A8; animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
[data-revealed] { animation: qIn .5s var(--ease) both; }

/* ---------- בחירות ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--ink); font-family: var(--font-head); font-size: 19px; font-weight: 500; box-shadow: 0 10px 24px -16px rgb(0 0 0 / .5); transition: transform .35s var(--bounce), background-color .25s, color .25s; user-select: none; }
.q.enter .chips label { animation: chipIn .55s var(--bounce) both; animation-delay: calc(var(--i, 0) * 45ms + 250ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(24px) scale(.85); } }
.chips label:hover span { transform: translateY(-3px); }
.chips label:active span { transform: scale(.94); }
.chips input:checked + span { background: var(--ink); color: #fff; transform: scale(1.04); }
.chips input:checked + span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; animation: pop .4s var(--bounce); }
@keyframes pop { from { transform: scale(0); } }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.chips--big span { min-height: 64px; padding: 12px 28px; font-size: 22px; }
.chips--stack { flex-direction: column; align-items: stretch; }
.chips--stack span { width: 100%; border-radius: 22px; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgb(0 0 0 / .1); flex: none; }
.dot--red { background: #7A1F2B; } .dot--white { background: #F1E6B8; } .dot--rose { background: #E8A0A0; }
.dot--bubbles { background: radial-gradient(circle at 30% 30%, #fff 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, #fff 0 2px, transparent 3px), #EBD58A; }
.chips input:checked + span .dot { display: none; }
.q .f--wide { margin-top: 6px; }
/* טיפה קטנה שקופצת בבחירה */
.burst { position: fixed; z-index: 50; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); pointer-events: none; animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- רמת ידע ---------- */
.levels { display: grid; gap: 12px; }
@media (min-width: 640px) { .levels { grid-template-columns: 1fr 1fr; } }
.levels label { position: relative; cursor: pointer; }
.levels input { position: absolute; opacity: 0; }
.levels span { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 22px; border-radius: 24px; background: rgb(255 255 255 / .94); color: var(--ink); font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.25; transition: transform .35s var(--bounce), background-color .25s, color .25s; box-shadow: 0 10px 24px -16px rgb(0 0 0 / .5); }
.levels em { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--olive); color: #fff; font-style: normal; font-weight: 700; }
.q.enter .levels label { animation: chipIn .55s var(--bounce) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
.levels label:hover span { transform: translateY(-4px) rotate(-.5deg); }
.levels input:checked + span { background: var(--ink); color: #fff; transform: scale(1.03); }
.levels input:checked + span em { background: var(--wine); }
.levels input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- סיכום ---------- */
.summary { display: grid; gap: 12px; }
.summary__box { position: relative; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 18px 22px; box-shadow: var(--shadow-ink); }
.q.enter .summary__box { animation: chipIn .6s var(--bounce) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
.summary__box h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: 16px; color: var(--leaf); font-weight: 600; }
.summary__plan { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.summary__plan b { font-family: var(--font-head); font-size: 24px; }
.summary__plan strong { font-family: var(--font-head); font-size: 32px; color: var(--wine); }
.summary__prefs { display: grid; gap: 4px; font-size: 16px; }
.summary__prefs span { opacity: .65; }
.summary__edit { position: absolute; top: 12px; left: 14px; background: none; border: 0; color: var(--wine); font-weight: 700; text-decoration: underline; padding: 6px; font-size: 15px; min-height: 32px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: #fff; cursor: pointer; font-weight: 600; }
.agree input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.agree .linkish { font-weight: 700; }

/* ---------- ניווט ---------- */
.jp__msg { min-height: 1.5em; color: #fff; font-weight: 700; font-size: 17px; }
.jp__msg:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 50%; background: var(--wine); font-size: 14px; }
.jp__nav { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.jp__nav [data-next], .jp__nav [data-pay] { margin-inline-start: auto; }
.jp__enter { font-size: 15px; color: var(--muted-light); display: none; }
.jp__enter kbd { font-family: inherit; font-weight: 700; background: rgb(255 255 255 / .16); border-radius: 6px; padding: 1px 7px; }
@media (hover: hover) and (min-width: 900px) { .jp__enter { display: inline; margin-inline-start: auto; } .jp__nav [data-next], .jp__nav [data-pay] { margin-inline-start: 0; } }
.flip { transform: scaleX(-1); }
.btn:hover .flip { transform: scaleX(-1) translateX(-5px); }

/* ---------- סיום ---------- */
.done { display: grid; justify-items: center; text-align: center; gap: 22px; animation: qIn .8s var(--ease) both; }
.done__ico { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: #fff; color: var(--wine); font-size: 50px; box-shadow: var(--shadow-ink); animation: popBig .9s var(--bounce) both .2s; }
@keyframes popBig { from { transform: scale(0) rotate(-40deg); } }
.done p { max-width: 44ch; font-size: 21px; color: #fff; }
.done__thanks { font-family: var(--font-head); font-weight: 600; font-size: 26px !important; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 12px; border-radius: 50%; animation: fall var(--t, 2.6s) linear forwards; }
.confetti i.leaf { border-radius: 0 60% 0 60%; }
@keyframes fall { to { transform: translate(var(--dx, 0), 110vh) rotate(var(--r, 360deg)); } }

.jp__warn { position: relative; z-index: 1; margin: 0; background: #120709; color: #fff; text-align: center; font-size: 15px; padding: 10px 16px; }

@media (prefers-reduced-motion: reduce) {
  .q.enter, .q.enter-back, .q.leave, .q.leave-back, .q.enter .q__title .w, .q.enter .chips label, .q.enter .levels label, .q.enter .summary__box { animation: none !important; }
}

/* ---------- פונט דק וחד יותר (Heebo) ---------- */
.q__title { font-weight: 600; letter-spacing: -.8px; }
.plan2__in b { font-weight: 600; }
.plan2__in strong, .summary__plan strong { font-weight: 600; }
.chips span, .levels span { font-weight: 400; }
.levels em { font-weight: 500; }
.jp__count, .jp__count b { font-weight: 500; }

/* ---------- "ניתן לשנות את הבחירה" מתחת לשאלות הטעם ---------- */
.jp__tastenote { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 18px; border-radius: 20px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); color: #fff; font-size: 16px; font-weight: 400; width: fit-content; max-width: 100%; animation: qIn .5s var(--ease) both; }
.jp__tastenote svg { font-size: 18px; color: #F0C7B0; flex: none; }
