/* ============================================================
   Dr. Apurba Sticky Consultation CTA Stylesheet
   Pixel-perfect match to Reference Images 3 & 4 (Desktop) and Image 2 (Mobile)
   ============================================================ */

.dr-sticky-cta-wrap {
	position: fixed;
	z-index: var(--dr-cta-z-index, 99999);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Positions */
.dr-sticky-cta-wrap.dr-pos-bottom-right {
	bottom: var(--dr-cta-offset-bottom, 36px);
	right: var(--dr-cta-offset-side, 36px);
}

.dr-sticky-cta-wrap.dr-pos-bottom-left {
	bottom: var(--dr-cta-offset-bottom, 36px);
	left: var(--dr-cta-offset-side, 36px);
}

.dr-sticky-cta-wrap.dr-pos-mid-right {
	top: 50%;
	right: var(--dr-cta-offset-side, 36px);
	transform: translateY(-50%);
}

/* ─── 1. Main Floating Pill Button (Image 1 - Closed State) ── */
.dr-sticky-pill-container {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.dr-sticky-pill-btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	width: 292px;
	height: 72px;
	min-width: 292px;
	min-height: 72px;
	max-width: 292px;
	max-height: 72px;
	box-sizing: border-box;
	gap: 8px;
	margin: 0;
	padding: 0 16px;
	background-color: var(--dr-cta-bg, #0018c0);
	color: var(--dr-cta-color, #ffffff);
	border: var(--dr-cta-border-width, 1px) solid var(--dr-cta-border-color, #ffffff);
	border-radius: var(--dr-cta-btn-radius, 16px);
	font-size: var(--dr-cta-btn-font-size, 20px);
	font-weight: var(--dr-cta-btn-font-weight, 400);
	font-family: "Sofia Pro", "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1;
	letter-spacing: -0.02em;
	cursor: pointer;
	text-decoration: none;
	vertical-align: middle;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.25s ease;
	outline: none;
	user-select: none;
	white-space: nowrap;
}

.dr-sticky-pill-btn:hover,
.dr-sticky-pill-btn:focus-visible {
	background-color: var(--dr-cta-bg-hover, #00108a);
	color: var(--dr-cta-color-hover, var(--dr-cta-color, #ffffff));
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.dr-sticky-pill-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.dr-sticky-pill-btn .dr-sticky-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	max-width: 40px;
	max-height: 40px;
	flex: 0 0 40px;
	margin: 0;
	padding: 0;
	line-height: 0;
	box-sizing: border-box;
	color: inherit;
}

.dr-sticky-pill-btn .dr-sticky-icon svg {
	width: 40px;
	height: 40px;
	display: block;
	margin: 0;
	padding: 0;
}

.dr-sticky-pill-btn .dr-sticky-text {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	height: 40px;
	line-height: 1.2;
	margin: 0;
	padding: 0;
	font-family: "Sofia Pro", "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: -0.02em;
	text-align: left;
	color: inherit;
	flex: 0 0 auto;
	width: auto;
	white-space: nowrap;
	box-sizing: border-box;
}

/* ─── 2. Dropdown Menu Card & Subtract Button (Image 2 - Open State) ─ */
.dr-sticky-dropdown-card {
	display: none;
	flex-direction: column;
	align-items: flex-end;
	width: 230px;
	margin: 0 0 8px 0;
	padding: 0;
	gap: 8px;
	box-sizing: border-box;
	animation: drCtaSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dr-sticky-pill-container.dr-is-open .dr-sticky-dropdown-card {
	display: flex;
}

.dr-sticky-pill-container.dr-is-open .dr-sticky-pill-btn {
	display: none;
}

/* Subtract / Close 32x32 Circle Button */
.dr-sticky-dropdown-top {
	display: flex;
	justify-content: flex-end;
	width: 230px;
	margin: 0;
	padding: 0;
	line-height: 0;
	box-sizing: border-box;
}

.dr-sticky-close-circle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	max-width: 32px;
	max-height: 32px;
	border-radius: 50%;
	background-color: var(--dr-cta-close-bg, var(--dr-cta-bg, #0018c0));
	color: var(--dr-cta-close-color, var(--dr-cta-color, #ffffff));
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background-color 0.2s ease;
	outline: none;
	padding: 0;
	margin: 0;
	line-height: 0;
	box-sizing: border-box;
}

.dr-sticky-close-circle-btn:hover {
	background-color: var(--dr-cta-close-bg-hover, var(--dr-cta-bg-hover, #00108a));
	color: var(--dr-cta-close-color, var(--dr-cta-color, #ffffff));
	transform: scale(1.08);
}

.dr-sticky-close-circle-btn svg {
	width: 16px;
	height: 3px;
	display: block;
	margin: auto;
	padding: 0;
}

/* Dropdown Menu Box (230x138px, border-radius: 8px, padding: 16px) */
.dr-sticky-menu-nav {
	width: 230px;
	height: 138px;
	min-width: 230px;
	max-width: 230px;
	min-height: 138px;
	max-height: 138px;
	background-color: var(--dr-cta-menu-bg, var(--dr-cta-bg, #0018c0));
	border-radius: var(--dr-cta-menu-radius, 8px);
	padding: 16px;
	margin: 0;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
	border: none;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.dr-sticky-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	width: 100%;
}

.dr-sticky-menu-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--dr-cta-menu-divider, rgba(255, 255, 255, 0.5));
	display: flex;
	align-items: center;
	height: 35px;
	min-height: 35px;
	max-height: 35px;
	flex: 1 1 0;
	box-sizing: border-box;
	list-style: none;
}

.dr-sticky-menu-item:last-child {
	border-bottom: none;
}

.dr-sticky-menu-item a {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--dr-cta-menu-font-family, "Inter", sans-serif);
	font-weight: var(--dr-cta-menu-font-weight, 500);
	font-size: var(--dr-cta-menu-font-size, 19.13px);
	line-height: 1;
	letter-spacing: -0.96px;
	vertical-align: middle;
	color: var(--dr-cta-menu-color, #ffffff);
	text-decoration: none;
	transition: opacity 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dr-sticky-menu-item a:hover {
	opacity: 0.85;
	color: var(--dr-cta-menu-color-hover, var(--dr-cta-menu-color, #ffffff));
}

/* ─── 3. Mobile Stacked Circular Icons (Screenshot 2) ──────── */
.dr-sticky-mobile-stack {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.dr-mob-circle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--dr-cta-mob-bg, var(--dr-cta-bg, #0018a8));
	color: var(--dr-cta-mob-color, var(--dr-cta-color, #ffffff));
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: all 0.2s ease;
	border: 1.5px solid var(--dr-cta-border-color, rgba(255, 255, 255, 0.3));
}

.dr-mob-circle-btn:hover,
.dr-mob-circle-btn:active {
	background-color: var(--dr-cta-mob-bg-hover, var(--dr-cta-bg-hover, #00107a));
	color: var(--dr-cta-mob-color, var(--dr-cta-color, #ffffff));
	transform: scale(1.08);
}

.dr-mob-circle-btn svg {
	width: 20px;
	height: 20px;
}

/* Responsive Breakpoint (< 768px) */
@media (max-width: 768px) {
	.dr-sticky-cta-wrap {
		bottom: 24px !important;
		right: 18px !important;
		left: auto !important;
		top: auto !important;
		transform: none !important;
	}

	/* Circular stack mode */
	.dr-sticky-cta-wrap.dr-mob-circular_stack .dr-sticky-pill-container {
		display: none !important;
	}
	.dr-sticky-cta-wrap.dr-mob-circular_stack .dr-sticky-mobile-stack {
		display: flex !important;
	}

	/* Pill mode on mobile */
	.dr-sticky-cta-wrap.dr-mob-pill_menu .dr-sticky-pill-btn {
		padding: 10px 20px;
		font-size: 14px;
	}
	.dr-sticky-cta-wrap.dr-mob-pill_menu .dr-sticky-menu-nav {
		min-width: 210px;
		padding: 14px 18px;
	}
	.dr-sticky-cta-wrap.dr-mob-pill_menu .dr-sticky-menu-item a {
		font-size: 15px;
		padding: 10px 0;
	}

	/* Hide mode on mobile */
	.dr-sticky-cta-wrap.dr-mob-hide {
		display: none !important;
	}
}

/* Animations */
@keyframes drCtaSlideUp {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
