/* ===== Apkavit Lifesciences - Sticky slide-up form + Popup ===== */

/* ---------- 1) STICKY "PLACE A QUERY" (desktop only) ---------- */
.tsf-sticky {
	display:none;                       /* hidden on tablet / mobile */
	position:fixed;
	right:24px;
	bottom:14px;
	width:var(--tsf-w,325px);
	max-width:calc(100vw - 48px);
	z-index:99990;
	transition:bottom .55s cubic-bezier(.22,.8,.3,1);
}
@media (min-width:992px) { .tsf-sticky { display:block; } }
.tsf-sticky.is-open { bottom:0; }

.tsf-sticky-bar {
	display:flex; align-items:center; justify-content:center; gap:10px;
	width:100%; margin:0; padding:7px 18px;
	background:var(--tsf-bar,#00a0a0); color:#fff;
	border:0; border-radius:22px;
	font-family:Oswald,"Arial Narrow",Impact,sans-serif; font-size:22px; font-weight:600; line-height:1.25;
	letter-spacing:.2px; text-transform:uppercase; text-shadow:none;
	cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.22);
	transition:filter .2s, box-shadow .2s;
}
.tsf-sticky-bar:hover { filter:brightness(1.07); }
.tsf-sticky-bar:focus-visible { outline:3px solid rgba(0,0,0,.35); outline-offset:2px; }
.tsf-sticky.is-open .tsf-sticky-bar { border-radius:22px 22px 0 0; box-shadow:none; }

.tsf-sticky-chev {
	width:9px; height:9px; margin-top:-3px;
	border-right:3px solid #fff; border-top:3px solid #fff;
	transform:rotate(-45deg);           /* points up when closed */
	transition:transform .45s ease, margin .45s ease;
}
.tsf-sticky.is-open .tsf-sticky-chev { transform:rotate(135deg); margin-top:-6px; }  /* points down when open */

/* Body slides open (grid 0fr -> 1fr = smooth height animation, grows upward from the bar) */
.tsf-sticky-body {
	display:grid; grid-template-rows:0fr; visibility:hidden;
	background:#fff; box-shadow:0 -8px 32px rgba(0,0,0,.20);
	transition:grid-template-rows .55s cubic-bezier(.22,.8,.3,1), visibility 0s linear .55s;
}
.tsf-sticky.is-open .tsf-sticky-body { grid-template-rows:1fr; visibility:visible; transition-delay:0s; }
.tsf-sticky-inner { min-height:0; overflow:hidden; }
.tsf-sticky-inner .tsf-form-wrap {
	padding:20px 20px 22px; max-height:calc(100vh - 80px); overflow-y:auto; box-sizing:border-box;
	opacity:0; transform:translateY(14px); transition:opacity .4s ease .12s, transform .5s ease .1s;
}
.tsf-sticky.is-open .tsf-sticky-inner .tsf-form-wrap { opacity:1; transform:none; }

/* ---------- 2) POPUP (all devices) ---------- */
.tsf-popup {
	position:fixed; inset:0; z-index:100000;
	display:flex; align-items:center; justify-content:center; padding:16px; box-sizing:border-box;
	visibility:hidden; opacity:0;
	transition:opacity .3s ease, visibility 0s linear .3s;
}
.tsf-popup.is-open { visibility:visible; opacity:1; transition-delay:0s; }
.tsf-popup-overlay { position:absolute; inset:0; background:rgba(0,0,0,.55); }
.tsf-popup-box {
	position:relative; width:100%; max-width:460px; max-height:92vh; overflow-y:auto; box-sizing:border-box;
	background:#fff; border-radius:4px; padding:34px 34px 30px; outline:none;
	box-shadow:0 20px 60px rgba(0,0,0,.35);
	transform:translateY(26px) scale(.97); transition:transform .38s cubic-bezier(.22,.8,.3,1);
}
.tsf-popup.is-open .tsf-popup-box { transform:none; }
.tsf-popup-close {
	position:absolute; top:10px; right:12px; width:30px; height:30px; padding:0; margin:0;
	background:transparent; border:0; color:#9a9a9a; font-size:26px; line-height:30px; cursor:pointer; box-shadow:none;
	transition:color .2s, transform .2s;
}
.tsf-popup-close:hover { color:#333; transform:rotate(90deg); background:transparent; }
html.tsf-popup-lock, html.tsf-popup-lock body { overflow:hidden; }

@media (max-width:640px) {
	.tsf-popup-box { padding:30px 18px 22px; }
	.tsf-popup .tsf-half { flex:1 1 100%; width:100%; }   /* stack Name / Email on small phones */
}

/* [apkavit_popup_button] default look (override freely with class="") */
.tsf-popup-btn {
	display:inline-block; padding:10px 22px; border-radius:4px; background:#c9a063; color:#fff !important;
	font-weight:600; text-decoration:none !important; transition:filter .2s;
}
.tsf-popup-btn:hover { filter:brightness(.93); }

@media (prefers-reduced-motion:reduce) {
	.tsf-sticky, .tsf-sticky-body, .tsf-sticky-chev, .tsf-sticky-inner .tsf-form-wrap,
	.tsf-popup, .tsf-popup-box { transition-duration:.01s !important; transition-delay:0s !important; }
}
