/**
 * GF Mystic Scroll — fairy-tale parchment (scoped under .gf-mystic-scroll).
 * Rollers stay fixed to the sheet edges; parchment stacks above the rods (z-index).
 * Avoids filter:url on the whole form so Gravity Fields stay crisp.
 */

.gf-mystic-scroll {
	--gfms-parchment-1: #f4e8d4;
	--gfms-parchment-2: #e6d2b0;
	--gfms-parchment-edge: #c4a574;
	--gfms-ink: #3d2918;
	--gfms-ink-soft: #5c4330;
	--gfms-wood-1: #5c3d28;
	--gfms-wood-2: #3d2618;
	--gfms-wood-shadow: #1a0f08;
	--gfms-wood-highlight: #8b6239;
	--gfms-gold: #d4a03a;
	--gfms-gold-deep: #8a6218;
	--gfms-glow: rgba(255, 210, 120, 0.35);
	--gfms-cap-height: clamp(48px, 11vw, 76px);
	--gfms-pad-x: clamp(1.15rem, 4.5vw, 2.85rem);
	--gfms-pad-y: clamp(1.35rem, 3.5vw, 2.5rem);
	--gfms-max-width: min(920px, 100%);
	--gfms-stage-bg: transparent;
	--gfms-dur-cap: 1.15s;
	--gfms-dur-sheet: 1.35s;
	--gfms-dur-sheet-delay: 0.15s;
	--gfms-dur-emerge: 0.9s;
	--gfms-dur-emerge-delay: 0.85s;
	--gfms-dur-ambient: 2.2s;
	--gfms-dur-motes-fade: 1.8s;
	--gfms-dur-motes-delay: 1s;
	--gfms-font-heading: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
	--gfms-font-body: "Crimson Pro", Georgia, "Times New Roman", serif;
	position: relative;
	display: block;
	width: 100%;
	max-width: var(--gfms-max-width);
	margin-inline: auto;
	margin-block: clamp(1.75rem, 5vw, 3.5rem);
	font-family: var(--gfms-font-body);
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--gfms-ink);
	background: transparent;
	box-shadow: none;
	isolation: isolate;
}

/* Optional full-bleed tint from form settings (--gfms-stage-bg); default transparent */
.gf-mystic-scroll::before {
	content: "";
	position: absolute;
	inset: -2rem -50vw;
	background: var(--gfms-stage-bg);
	z-index: -3;
	pointer-events: none;
}

.gf-mystic-scroll--no-motes .gf-mystic-scroll__motes {
	display: none !important;
}

/* --- Scene: keep grading subtle (heavy filter + huge glows read as a white “stage”) --- */
.gf-mystic-scroll__scene {
	position: relative;
	perspective: 1800px;
	perspective-origin: 50% 32%;
	filter: saturate(1.03);
}

/* Tight, low-contrast glow only over the scroll — no full-bleed off-white vignette */
.gf-mystic-scroll__ambient {
	pointer-events: none;
	position: absolute;
	inset: -4% -6% -8%;
	background:
		radial-gradient(ellipse 52% 42% at 50% 38%, var(--gfms-glow), transparent 62%),
		radial-gradient(ellipse 28% 32% at 12% 88%, rgba(90, 120, 160, 0.06), transparent 55%),
		radial-gradient(ellipse 28% 32% at 88% 85%, rgba(180, 110, 70, 0.07), transparent 55%);
	opacity: 0;
	transition: opacity var(--gfms-dur-ambient) ease 0.15s;
	z-index: 0;
}

.gf-mystic-scroll.is-ready .gf-mystic-scroll__ambient {
	opacity: 0.36;
}

@keyframes gfms-ambient-fade {
	to {
		opacity: 1;
	}
}

.gf-mystic-scroll__column {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: calc(100% - 8px);
	margin-inline: auto;
	background: transparent;
	/* No filter: drop-shadow — it composites a rectangle and reads like a white “card” */
}

.gf-mystic-scroll__scene,
.gf-mystic-scroll__unfurl,
.gf-mystic-scroll__inner {
	background: transparent;
}

/* Themes often paint the GF wrapper white; keep only parchment tan visible */
.gf-mystic-scroll .gform_wrapper,
.gf-mystic-scroll .gform_wrapper > form,
.gf-mystic-scroll .gform_body,
.gf-mystic-scroll .gform_fields,
.gf-mystic-scroll .gform_page {
	background: transparent !important;
}

/* --- Wood rollers + finials: stay pinned to parchment; paper stacks above rod (z-index) --- */
.gf-mystic-scroll__cap {
	position: relative;
	overflow: visible;
	width: calc(100% + 28px);
	max-width: calc(100% + 28px);
	margin-inline: auto;
	left: 0;
	right: 0;
	height: var(--gfms-cap-height);
	border-radius: 999px;
	border: 3px solid var(--gfms-wood-shadow);
	box-sizing: border-box;
	z-index: 1;
	background:
		/* specular streaks (cel highlights) */
		linear-gradient(
			105deg,
			transparent 0%,
			rgba(255, 255, 255, 0.22) 18%,
			transparent 22%,
			transparent 48%,
			rgba(255, 255, 255, 0.12) 52%,
			transparent 58%,
			transparent 78%,
			rgba(255, 220, 170, 0.18) 88%,
			transparent 100%
		),
		/* wood grain bands */
		repeating-linear-gradient(
			92deg,
			rgba(0, 0, 0, 0.12) 0 1px,
			transparent 1px 5px,
			rgba(255, 255, 255, 0.04) 5px 6px,
			transparent 6px 14px
		),
		/* cylinder body */
		radial-gradient(ellipse 9% 88% at 0% 50%, rgba(0, 0, 0, 0.45), transparent 58%),
		radial-gradient(ellipse 9% 88% at 100% 50%, rgba(0, 0, 0, 0.45), transparent 58%),
		linear-gradient(
			180deg,
			var(--gfms-wood-highlight) 0%,
			var(--gfms-wood-1) 22%,
			#6a4a32 48%,
			var(--gfms-wood-2) 72%,
			var(--gfms-wood-shadow) 100%
		);
	box-shadow:
		inset 0 5px 10px rgba(255, 255, 255, 0.14),
		inset 0 -14px 22px rgba(0, 0, 0, 0.55),
		0 5px 0 rgba(0, 0, 0, 0.32),
		0 0 0 1px rgba(55, 38, 22, 0.45);
	transform: translateZ(0);
	opacity: 0;
	will-change: opacity;
	transition: opacity var(--gfms-dur-cap) cubic-bezier(0.22, 1, 0.36, 1) var(--gfms-dur-sheet-delay);
}

.gf-mystic-scroll.is-ready .gf-mystic-scroll__cap--top,
.gf-mystic-scroll.is-ready .gf-mystic-scroll__cap--bottom {
	opacity: 1;
}

.gf-mystic-scroll__cap--top {
	transform-origin: 50% 100%;
	margin-bottom: calc(-0.5 * var(--gfms-cap-height));
}

.gf-mystic-scroll__cap--bottom {
	transform-origin: 50% 0%;
	margin-top: calc(-0.5 * var(--gfms-cap-height));
}

/* turned wooden knobs at rod ends */
.gf-mystic-scroll__finial {
	position: absolute;
	top: 50%;
	width: clamp(15px, 4vw, 22px);
	height: clamp(28px, 7.5vw, 42px);
	transform: translateY(-50%);
	border-radius: 38% 38% 42% 42%;
	pointer-events: none;
	z-index: 2;
	background:
		repeating-linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.12) 0 1px,
			transparent 1px 5px,
			rgba(255, 255, 255, 0.06) 5px 6px,
			transparent 6px 11px
		),
		linear-gradient(
			95deg,
			var(--gfms-wood-shadow) 0%,
			var(--gfms-wood-2) 28%,
			var(--gfms-wood-1) 52%,
			var(--gfms-wood-highlight) 78%,
			#2a1a10 100%
		);
	border: 2px solid #1a1008;
	box-shadow:
		inset 0 3px 5px rgba(255, 240, 210, 0.2),
		inset 0 -8px 14px rgba(0, 0, 0, 0.45),
		0 4px 10px rgba(0, 0, 0, 0.35);
}

.gf-mystic-scroll__finial::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 18%;
	bottom: 18%;
	width: 34%;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(80, 55, 30, 0.25));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	opacity: 0.85;
}

.gf-mystic-scroll__finial--left {
	left: clamp(-18px, -4.5vw, -26px);
}

.gf-mystic-scroll__finial--right {
	right: clamp(-18px, -4.5vw, -26px);
}

/*
 * Unfurl: rod overlap is padding on the inner + matching parchment paint (one surface, no extra strips).
 * content-box + max-height:0 still shows padding, so the wood stays covered while the sheet unspools.
 */
.gf-mystic-scroll__unfurl {
	display: block;
	position: relative;
	z-index: 4;
	margin-top: calc(-0.5 * var(--gfms-cap-height));
	margin-bottom: calc(-0.5 * var(--gfms-cap-height));
	overflow: visible;
}

.gf-mystic-scroll__unfurl-inner {
	--gfms-lip: calc(0.5 * var(--gfms-cap-height));
	position: relative;
	z-index: 6;
	max-height: 0;
	padding-top: var(--gfms-lip);
	padding-bottom: var(--gfms-lip);
	box-sizing: content-box;
	overflow: hidden;
	min-height: 0;
	transition: max-height var(--gfms-dur-sheet) cubic-bezier(0.37, 0.02, 0.21, 1) var(--gfms-dur-sheet-delay);
}

.gf-mystic-scroll__unfurl-inner::before,
.gf-mystic-scroll__unfurl-inner::after {
	content: "";
	position: absolute;
	left: clamp(0.5rem, 2.5vw, 1.15rem);
	right: clamp(0.5rem, 2.5vw, 1.15rem);
	height: var(--gfms-lip);
	z-index: 4;
	pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(80, 55, 30, 0.028) 0 1px, transparent 1px 2px),
		repeating-linear-gradient(90deg, rgba(60, 40, 25, 0.022) 0 1px, transparent 1px 3px),
		linear-gradient(168deg, var(--gfms-parchment-1) 0%, #efe0c8 52%, var(--gfms-parchment-2) 100%);
	clip-path: polygon(
		0.9% 0%,
		0% 14%,
		1.1% 34%,
		0.45% 56%,
		1.15% 76%,
		0.65% 100%,
		99.35% 100%,
		98.85% 76%,
		99.55% 56%,
		98.9% 34%,
		100% 14%,
		99.1% 0%
	);
}

.gf-mystic-scroll__unfurl-inner::before {
	top: 0;
	box-shadow: inset 0 -8px 14px -8px rgba(35, 22, 10, 0.2);
}

.gf-mystic-scroll__unfurl-inner::after {
	bottom: 0;
	box-shadow: inset 0 8px 14px -8px rgba(35, 22, 10, 0.18);
}

.gf-mystic-scroll.is-ready .gf-mystic-scroll__unfurl-inner {
	max-height: min(7200px, 1000vh);
}

.gf-mystic-scroll.is-unfurled .gf-mystic-scroll__unfurl-inner {
	overflow: visible;
	max-height: none;
}

/* --- Sheet: pulled into lip padding so one continuous parchment read (no “tan box” layer) --- */
.gf-mystic-scroll__sheet {
	position: relative;
	z-index: 5;
	margin-inline: clamp(0.5rem, 2.5vw, 1.15rem);
	margin-top: calc(-1 * var(--gfms-lip));
	margin-bottom: calc(-1 * var(--gfms-lip));
	border-radius: 3px;
	box-shadow:
		0 12px 24px -14px rgba(10, 5, 2, 0.26),
		0 4px 10px -5px rgba(24, 14, 6, 0.18),
		inset 0 12px 22px -16px rgba(42, 26, 14, 0.14),
		inset 0 -10px 18px -12px rgba(42, 26, 14, 0.1);
}

/* --- Parchment: deckle edges; lips already cover rods so padding stays normal --- */
.gf-mystic-scroll__parchment {
	position: relative;
	z-index: 1;
	padding: var(--gfms-pad-y) var(--gfms-pad-x);
	clip-path: polygon(
		0.9% 0%,
		0% 2.5%,
		1.1% 6%,
		0.35% 11%,
		1.25% 16%,
		0.45% 22%,
		1.15% 28%,
		0.5% 35%,
		1.2% 42%,
		0.4% 50%,
		1.1% 58%,
		0.55% 66%,
		1.05% 74%,
		0.45% 82%,
		1.2% 90%,
		0.3% 96%,
		0.85% 100%,
		99.15% 100%,
		100% 96%,
		99.55% 90%,
		98.8% 82%,
		99.45% 74%,
		98.95% 66%,
		99.6% 58%,
		98.9% 50%,
		99.5% 42%,
		98.85% 35%,
		99.55% 28%,
		98.75% 22%,
		99.65% 16%,
		98.9% 11%,
		99.25% 6%,
		100% 2.5%,
		99.1% 0%
	);
	background-color: var(--gfms-parchment-1);
	background-image:
		/* soft shadow where paper tucks under the rod */
		linear-gradient(180deg, rgba(55, 36, 20, 0.1) 0%, transparent 12%),
		linear-gradient(0deg, rgba(55, 36, 20, 0.09) 0%, transparent 11%),
		/* ink stains / age */
		radial-gradient(ellipse 55% 35% at 18% 22%, rgba(160, 120, 70, 0.12), transparent 55%),
		radial-gradient(ellipse 40% 30% at 88% 12%, rgba(140, 100, 60, 0.1), transparent 50%),
		radial-gradient(ellipse 30% 25% at 72% 78%, rgba(120, 90, 50, 0.08), transparent 45%),
		/* fine grain */
		repeating-linear-gradient(
			0deg,
			rgba(80, 55, 30, 0.03) 0 1px,
			transparent 1px 2px
		),
		repeating-linear-gradient(
			90deg,
			rgba(60, 40, 25, 0.025) 0 1px,
			transparent 1px 3px
		),
		/* soft ruled story lines (very faint, hand-drawn feel) */
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 27px,
			rgba(90, 70, 45, 0.045) 27px,
			rgba(90, 70, 45, 0.045) 28px
		),
		/* corner darkening */
		radial-gradient(ellipse 120% 80% at 50% 100%, rgba(60, 40, 20, 0.08), transparent 55%),
		radial-gradient(ellipse 100% 70% at 50% 0%, rgba(236, 218, 188, 0.22), transparent 48%),
		linear-gradient(168deg, var(--gfms-parchment-1) 0%, #efe0c8 40%, var(--gfms-parchment-2) 100%);
	border-left: 2px solid rgba(100, 72, 40, 0.35);
	border-right: 2px solid rgba(100, 72, 40, 0.35);
	border-radius: 2px 2px 4px 4px;
	box-shadow:
		inset 0 0 100px rgba(120, 85, 45, 0.1),
		inset 0 0 0 1px rgba(255, 248, 232, 0.18),
		0 0 0 1px rgba(60, 40, 22, 0.12);
}

/* torn side strips (depth + deckle read) */
.gf-mystic-scroll__sheet::before,
.gf-mystic-scroll__sheet::after {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	width: clamp(12px, 3vw, 20px);
	z-index: 2;
	pointer-events: none;
	opacity: 0.88;
	mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
	background: linear-gradient(90deg, rgba(72, 48, 26, 0.35), rgba(120, 88, 52, 0.08), transparent);
}

.gf-mystic-scroll__sheet::before {
	left: 0;
	border-radius: 55% 12% 70% 10% / 45% 10% 38% 12%;
	box-shadow: inset -4px 0 10px rgba(28, 16, 8, 0.22);
}

.gf-mystic-scroll__sheet::after {
	right: 0;
	border-radius: 12% 55% 10% 70% / 10% 45% 12% 38%;
	background: linear-gradient(270deg, rgba(72, 48, 26, 0.35), rgba(120, 88, 52, 0.08), transparent);
	box-shadow: inset 4px 0 10px rgba(28, 16, 8, 0.22);
}

.gf-mystic-scroll__inner {
	position: relative;
	z-index: 3;
	opacity: 0;
	transform: translateY(6px);
	animation: gfms-form-emerge var(--gfms-dur-emerge) cubic-bezier(0.25, 0.1, 0.25, 1) var(--gfms-dur-emerge-delay) forwards;
}

@keyframes gfms-form-emerge {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gf-mystic-scroll__veil {
	pointer-events: none;
	position: absolute;
	inset: 0;
	box-shadow:
		inset 0 0 160px rgba(45, 28, 14, 0.12),
		inset 0 12px 48px rgba(240, 224, 198, 0.18),
		inset 0 -40px 90px rgba(120, 80, 40, 0.08);
	z-index: 2;
	border-radius: 2px;
}

.gf-mystic-scroll__motes {
	pointer-events: none;
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 2;
	opacity: 0;
	animation: gfms-ambient-fade var(--gfms-dur-motes-fade) ease var(--gfms-dur-motes-delay) forwards;
}

.gf-mystic-scroll__motes span {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: radial-gradient(circle, #fffef5 0%, rgba(255, 228, 170, 0.55) 55%, transparent 78%);
	box-shadow:
		0 0 14px rgba(255, 235, 190, 0.85),
		0 0 28px rgba(255, 210, 140, 0.35);
	animation: gfms-mote 9s ease-in-out infinite;
}

.gf-mystic-scroll__motes span:nth-child(1) {
	left: 12%;
	top: 22%;
	animation-delay: 0s;
}
.gf-mystic-scroll__motes span:nth-child(2) {
	left: 78%;
	top: 18%;
	animation-delay: 1.2s;
}
.gf-mystic-scroll__motes span:nth-child(3) {
	left: 44%;
	top: 55%;
	animation-delay: 2.4s;
}
.gf-mystic-scroll__motes span:nth-child(4) {
	left: 63%;
	top: 72%;
	animation-delay: 0.8s;
}
.gf-mystic-scroll__motes span:nth-child(5) {
	left: 28%;
	top: 80%;
	animation-delay: 3s;
}
.gf-mystic-scroll__motes span:nth-child(6) {
	left: 52%;
	top: 12%;
	width: 3px;
	height: 3px;
	animation-delay: 0.4s;
	animation-duration: 11s;
}
.gf-mystic-scroll__motes span:nth-child(7) {
	left: 18%;
	top: 48%;
	width: 5px;
	height: 5px;
	animation-delay: 2.1s;
	animation-duration: 7.5s;
}
.gf-mystic-scroll__motes span:nth-child(8) {
	left: 86%;
	top: 44%;
	width: 3px;
	height: 3px;
	animation-delay: 1.6s;
	animation-duration: 10s;
}

@keyframes gfms-mote {
	0%,
	100% {
		transform: translate3d(0, 0, 0) scale(1);
		opacity: 0.35;
	}
	50% {
		transform: translate3d(10px, -26px, 0) scale(1.25);
		opacity: 1;
	}
}

/* --- Gravity Forms: storybook typography --- */
.gf-mystic-scroll .gform_wrapper {
	margin: 0;
	max-width: none;
}

.gf-mystic-scroll .gform_heading,
.gf-mystic-scroll .gform_title {
	font-family: var(--gfms-font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	font-size: clamp(1.35rem, 3.5vw, 1.85rem) !important;
	color: var(--gfms-ink) !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gf-mystic-scroll .gform_description {
	font-family: var(--gfms-font-body) !important;
	color: var(--gfms-ink-soft) !important;
	opacity: 1 !important;
	font-size: 1.02rem !important;
}

.gf-mystic-scroll .gfield_label,
.gf-mystic-scroll .gform-field-label,
.gf-mystic-scroll legend.gfield_label {
	font-family: var(--gfms-font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: 0.05em !important;
	font-size: 0.82rem !important;
	color: var(--gfms-ink) !important;
	text-transform: none !important;
}

.gf-mystic-scroll .gfield_required,
.gf-mystic-scroll .gfield_required .gfield_required_text,
.gf-mystic-scroll .gfield_required span {
	color: #9a3a1f !important;
	font-family: var(--gfms-font-body) !important;
	font-style: italic !important;
	font-weight: 500 !important;
}

.gf-mystic-scroll .gfield_description,
.gf-mystic-scroll .gform-field-description {
	font-family: var(--gfms-font-body) !important;
	color: var(--gfms-ink-soft) !important;
	font-size: 0.95rem !important;
}

.gf-mystic-scroll .iti--allow-dropdown input {
	padding-left: 52px !important;
}

.gf-mystic-scroll .gsection_title {
	font-family: var(--gfms-font-heading) !important;
	letter-spacing: 0.1em !important;
	color: var(--gfms-gold-deep) !important;
	border-bottom: 2px solid rgba(138, 98, 24, 0.35) !important;
	padding-bottom: 0.35rem !important;
	margin-top: 1.25rem !important;
}

/* Inputs: inkwell / wax-seal vibe */
.gf-mystic-scroll .gform_wrapper input[type="text"],
.gf-mystic-scroll .gform_wrapper input[type="email"],
.gf-mystic-scroll .gform_wrapper input[type="tel"],
.gf-mystic-scroll .gform_wrapper input[type="url"],
.gf-mystic-scroll .gform_wrapper input[type="number"],
.gf-mystic-scroll .gform_wrapper input[type="password"],
.gf-mystic-scroll .gform_wrapper select,
.gf-mystic-scroll .gform_wrapper textarea {
	font-family: var(--gfms-font-body) !important;
	font-size: 1.05rem !important;
	color: var(--gfms-ink) !important;
	background: linear-gradient(180deg, rgba(255, 252, 244, 0.95), rgba(250, 242, 225, 0.82)) !important;
	border: 2px solid #8a6630 !important;
	border-radius: 12px !important;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.65),
		inset 0 -10px 24px rgba(180, 150, 100, 0.08),
		0 2px 0 rgba(40, 25, 10, 0.12) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.gf-mystic-scroll .gform_wrapper input:focus,
.gf-mystic-scroll .gform_wrapper select:focus,
.gf-mystic-scroll .gform_wrapper textarea:focus {
	border-color: var(--gfms-gold-deep) !important;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.7),
		0 0 0 3px rgba(212, 160, 58, 0.35),
		0 2px 0 rgba(40, 25, 10, 0.1) !important;
	outline: none !important;
}

.gf-mystic-scroll .gform_wrapper .gform_button,
.gf-mystic-scroll .gform_wrapper .gform_next_button,
.gf-mystic-scroll .gform_wrapper .gform_previous_button,
.gf-mystic-scroll .gform_wrapper input[type="submit"] {
	font-family: var(--gfms-font-heading) !important;
	letter-spacing: 0.12em !important;
	text-transform: none !important;
	font-weight: 600 !important;
	padding: 0.65rem 1.75rem !important;
	border-radius: 999px !important;
	border: 2px solid #5a3d12 !important;
	background: linear-gradient(180deg, #f0c860, #d4a03a 45%, #b8831f 100%) !important;
	color: #2a1a08 !important;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.45),
		0 4px 0 #5a3d12,
		0 8px 18px rgba(40, 22, 8, 0.35) !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gf-mystic-scroll .gform_wrapper .gform_button:hover,
.gf-mystic-scroll .gform_wrapper input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.5),
		0 5px 0 #5a3d12,
		0 10px 22px rgba(40, 22, 8, 0.38) !important;
}

/* Signature canvas: matches parchment (no stark white slab) */
.gf-mystic-scroll .gfield_signature .gfield_signature_container,
.gf-mystic-scroll .gfield_signature .ginput_container {
	border-radius: 14px !important;
	padding: 12px !important;
	background: linear-gradient(
		165deg,
		rgba(255, 250, 236, 0.72) 0%,
		rgba(248, 236, 214, 0.55) 50%,
		rgba(238, 222, 196, 0.5) 100%
	) !important;
	border: 2px solid rgba(110, 78, 38, 0.55) !important;
	outline: 2px solid rgba(212, 168, 72, 0.35) !important;
	outline-offset: 2px !important;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.45),
		inset 0 8px 24px rgba(180, 150, 110, 0.12),
		0 3px 12px rgba(40, 24, 12, 0.18) !important;
}

.gf-mystic-scroll .gfield_signature canvas {
	border-radius: 10px !important;
	border: 2px dashed rgba(95, 68, 38, 0.45) !important;
	background: linear-gradient(
		180deg,
		var(--gfms-parchment-1) 0%,
		rgba(250, 238, 216, 0.96) 100%
	) !important;
	box-shadow: inset 0 2px 0 rgba(255, 248, 232, 0.35) !important;
}

.gf-mystic-scroll .gfield_signature canvas,
.gf-mystic-scroll .gfield_signature .gfield_signature_container {
	max-width: 100% !important;
	height: auto !important;
}

/* HTML fields & rich text: keep storybook typography (themes often force sans) */
.gf-mystic-scroll .gfield_html,
.gf-mystic-scroll .gfield_html * {
	font-family: var(--gfms-font-body) !important;
	color: var(--gfms-ink-soft) !important;
}

.gf-mystic-scroll .gfield_html p,
.gf-mystic-scroll .gfield_html li,
.gf-mystic-scroll .gfield_html span {
	font-family: var(--gfms-font-body) !important;
}

@media (max-width: 640px) {
	.gf-mystic-scroll .gfield_signature .ginput_container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gf-mystic-scroll__cap {
		width: calc(100% + 18px);
		max-width: calc(100% + 18px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gf-mystic-scroll__ambient,
	.gf-mystic-scroll__motes,
	.gf-mystic-scroll__inner {
		animation: none !important;
	}

	.gf-mystic-scroll__ambient,
	.gf-mystic-scroll__motes {
		opacity: 0.65;
	}

	.gf-mystic-scroll__cap {
		transition: none !important;
		opacity: 1 !important;
	}

	.gf-mystic-scroll:not(.is-ready) .gf-mystic-scroll__cap--top,
	.gf-mystic-scroll:not(.is-ready) .gf-mystic-scroll__cap--bottom {
		opacity: 1 !important;
	}

	.gf-mystic-scroll__unfurl-inner {
		transition: none !important;
		max-height: none !important;
	}

	.gf-mystic-scroll.is-ready .gf-mystic-scroll__ambient {
		opacity: 0.32;
	}

	.gf-mystic-scroll__inner {
		opacity: 1;
		transform: none !important;
	}
}
