/* Mount placeholder (page-cache safe) */
.ckb-jotform-mount {
	position: relative;
	min-height: 480px;
	background: #fff;
	overflow: visible;
}

.ckb-jotform-mount[aria-busy='true'] {
	background:
		linear-gradient(90deg, #f3f4f6 25%, #ebecef 37%, #f3f4f6 63%)
		#f3f4f6;
	background-size: 400% 100%;
	animation: ckbJotformMountPulse 1.2s ease-in-out infinite;
}

@keyframes ckbJotformMountPulse {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: 0 0;
	}
}

.ckb-jotform-embed {
	width: 100%;
	max-width: 100%;
	overflow: visible;
	position: relative;
}

/* Optional srcdoc frame (not used for GA — prefer inline) */
.ckb-jotform-frame {
	width: 100%;
	max-width: 100%;
	border: 0;
	background: transparent;
	display: block;
	vertical-align: top;
}

/* Keep Elementor column from clipping the badge */
.elementor-element:has(> .elementor-widget-html > .jotform-badge-wrap),
.elementor-element:has(> .elementor-widget-html > .ckb-jotform-mount),
.elementor-widget-html:has(.ckb-jotform-mount),
.elementor-widget-html:has(.jotform-badge-wrap) {
	overflow: visible !important;
}

/* Corner badge — same look as live iframe embeds */
.jotform-badge-wrap {
	position: relative;
	overflow: visible;
	border-radius: 20px;
}
.ckb-jotform-embed {
	border-radius: 20px;
}

.jotform-badge {
	position: absolute;
	top: -6px;
	right: -16px;
	z-index: 5;
	display: inline-block;
	padding: 8px 26px 8px 14px;
	border-radius: 999px;
	background: linear-gradient(to right, rgb(239, 35, 48), rgb(220, 11, 26));
	color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
	font-family: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(12deg);
	pointer-events: none;
}

.jotform-badge::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	transform: translateY(-50%);
}

@media (min-width: 768px) {
	.jotform-badge-wrap__sticky {
		position: sticky;
		top: var(--header-height);
	}
}

/* Optional popup shell */
.ckb-jotform-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.28s;
}

.ckb-jotform-popup.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

body.ckb-jotform-popup-open {
	overflow: hidden;
	touch-action: none;
}

.ckb-jotform-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px) saturate(1.2);
	-webkit-backdrop-filter: blur(8px) saturate(1.2);
	opacity: 0;
	transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ckb-jotform-popup.is-open .ckb-jotform-popup__overlay {
	opacity: 1;
}

.ckb-jotform-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 600px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: scale(0.96);
	transition:
		opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ckb-jotform-popup.is-open .ckb-jotform-popup__dialog {
	opacity: 1;
	transform: scale(1);
}

.ckb-jotform-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.06);
	color: #111;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.ckb-jotform-popup__close:hover {
	background: rgba(0, 0, 0, 0.12);
}

.ckb-jotform-popup__content {
	padding: 4px 10px;
	overflow: hidden;
}

/* Hide badge inside popup — dialog chrome already frames the form */
.ckb-jotform-popup .jotform-badge {
	display: none;
}

@media (max-width: 767.98px) {
	.ckb-jotform-popup {
		padding: 16px;
	}

	.ckb-jotform-popup__dialog {
		max-width: 100%;
		max-height: calc(100vh - 32px - env(safe-area-inset-bottom));
	}

	.jotform-badge {
		top: -4px;
		right: -8px;
		font-size: 12px;
		padding: 6px 22px 6px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ckb-jotform-popup,
	.ckb-jotform-popup__overlay,
	.ckb-jotform-popup__dialog {
		transition: none;
	}
}


.ckb-jotform-embed #cid_78 .form-header-group.header-large {
	margin: 0;
}
.ckb-jotform-embed .form-textbox:not(#productSearch-input),
.ckb-jotform-embed .form-textarea,
.ckb-jotform-embed li[data-type=control_fileupload] .qq-upload-button,
.ckb-jotform-embed .signature-wrapper {
	color: #212e5e !important;
}

.ckb-jotform-embed .form-textbox:not(#productSearch-input)::placeholder,
.ckb-jotform-embed .form-textarea::placeholder {
	color: #212e5e !important;
	opacity: 1;
}

.ckb-jotform-embed .form-textbox:not(#productSearch-input)::-webkit-input-placeholder,
.ckb-jotform-embed .form-textarea::-webkit-input-placeholder {
	color: #212e5e !important;
	opacity: 1;
}

.ckb-jotform-embed .form-textbox:not(#productSearch-input)::-moz-placeholder,
.ckb-jotform-embed .form-textarea::-moz-placeholder {
	color: #212e5e !important;
	opacity: 1;
}
.ckb-jotform-embed .form-all {
	margin: 0 !important;
	padding: 8px;
	border-radius: 20px !important;
}

.ckb-jotform-embed #cid_78 .form-subHeader,
.ckb-jotform-embed .form-line-column [data-layout=half].form-input-wide,
.ckb-jotform-embed #cid_25, .ckb-jotform-embed #cid_11, .ckb-jotform-embed #cid_35, .ckb-jotform-embed #cid_71 {
	margin: 0;
}
.ckb-jotform-embed #cid_108 .form-subHeader {
	margin-top: 0;
}
.ckb-jotform-embed li[data-type=control_head] {
	margin: 0 !important;
}
.ckb-jotform-embed #cid_108 .form-header,
.ckb-jotform-embed #header_104 {
    font-family:"Helvetica", Arial, sans-serif !important;
}