/* PaintMe Spin Wheel — brand: crimson #B11036, gold #C9A24B, grey #58595B
   Layout: Wheelio-style split modal — wheel on branded panel, form on light panel. */

.pmsw-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(25, 15, 18, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.pmsw-overlay.pmsw-visible {
	opacity: 1;
}

.pmsw-modal {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	max-width: 840px;
	width: 100%;
	max-height: 94vh;
	overflow: hidden auto;
	transform: scale(0.94) translateY(10px);
	transition: transform 0.35s ease;
}

.pmsw-overlay.pmsw-visible .pmsw-modal {
	transform: scale(1) translateY(0);
}

.pmsw-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 6;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #58595B;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: all 0.2s ease;
}

.pmsw-close:hover {
	color: #B11036;
	transform: rotate(90deg);
}

.pmsw-inner {
	display: flex;
	align-items: stretch;
}

/* ---------- Left panel: the wheel ---------- */

.pmsw-wheel-col {
	flex: 0 0 47%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 44px 26px;
	background:
		radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 42%),
		radial-gradient(circle at 75% 85%, rgba(0, 0, 0, 0.25), transparent 55%),
		linear-gradient(150deg, #C41540 0%, #B11036 45%, #810b27 100%);
}

.pmsw-wheel-wrap {
	position: relative;
	width: clamp(250px, 30vw, 320px);
	height: clamp(250px, 30vw, 320px);
}

/* outer rim ring that holds the bulbs */
.pmsw-bulbs {
	position: absolute;
	inset: -16px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, #7e0a24, #5d0719);
	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.45),
		inset 0 2px 6px rgba(255, 255, 255, 0.18),
		inset 0 -3px 8px rgba(0, 0, 0, 0.5);
}

.pmsw-bulb {
	position: absolute;
	width: 7px;
	height: 7px;
	margin: -3.5px;
	border-radius: 50%;
	background: #FFE9A8;
	box-shadow: 0 0 6px 1px rgba(255, 226, 140, 0.9);
}

.pmsw-bulb:nth-child(odd) {
	animation: pmsw-blink 1.1s ease-in-out infinite;
}

.pmsw-bulb:nth-child(even) {
	animation: pmsw-blink 1.1s ease-in-out 0.55s infinite;
}

@keyframes pmsw-blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.35; box-shadow: 0 0 2px 0 rgba(255, 226, 140, 0.4); }
}

.pmsw-wheel {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		#B11036   0deg  45deg,
		#FBF3E0  45deg  90deg,
		#C9A24B  90deg 135deg,
		#58595B 135deg 180deg,
		#B11036 180deg 225deg,
		#FBF3E0 225deg 270deg,
		#C9A24B 270deg 315deg,
		#58595B 315deg 360deg
	);
	box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.3);
	transition: transform 4.5s cubic-bezier(0.12, 0.65, 0.18, 1);
	will-change: transform;
}

/* thin separators on segment boundaries */
.pmsw-wheel::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: repeating-conic-gradient(
		from -0.4deg,
		rgba(255, 255, 255, 0.85) 0deg 0.8deg,
		transparent 0.8deg 45deg
	);
	pointer-events: none;
}

.pmsw-labels {
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* radial label strip: anchored at the center, rotated per segment */
.pmsw-label {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50%;
	height: 30px;
	margin-top: -15px;
	transform-origin: 0 50%;
	display: flex;
	align-items: center;
	padding: 0 9% 0 24%;
	pointer-events: none;
}

.pmsw-label span {
	display: block;
	width: 100%;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

/* text colors per segment background (8 segments, 4 colors x2) */
.pmsw-label-0 span, .pmsw-label-4 span { color: #fff; }      /* crimson */
.pmsw-label-1 span, .pmsw-label-5 span { color: #B11036; }   /* cream */
.pmsw-label-2 span, .pmsw-label-6 span { color: #fff; }      /* gold */
.pmsw-label-3 span, .pmsw-label-7 span { color: #EFDA96; }   /* grey */

.pmsw-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #ffffff, #FBF3E0 75%);
	border: 3px solid #8e0c2a;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
	z-index: 3;
}

.pmsw-hub img {
	display: block;
	width: 72%;
	height: auto;
}

.pmsw-pointer {
	position: absolute;
	top: -24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	width: 0;
	height: 0;
	border-left: 13px solid transparent;
	border-right: 13px solid transparent;
	border-top: 30px solid #EFC868;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.pmsw-pointer::after {
	content: '';
	position: absolute;
	top: -30px;
	left: -7px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #EFC868;
}

/* ---------- Right panel: the form ---------- */

.pmsw-form-col {
	flex: 1 1 auto;
	min-width: 0;
	padding: 38px 36px 32px;
	background: #fff;
}

.pmsw-title {
	font-family: 'BerlinerInsScript', cursive;
	color: #B11036;
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.1;
	margin: 0 0 8px;
}

.pmsw-subtitle {
	color: #58595B;
	font-size: 14.5px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.pmsw-perks {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.pmsw-perks li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 7px;
	color: #444;
	font-size: 13.5px;
	line-height: 1.4;
}

.pmsw-perks li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #B11036;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pmsw-form {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.pmsw-input {
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	border: 1.5px solid #ddd2c2;
	border-radius: 8px;
	background: #fff;
	color: #333;
	transition: all 0.2s ease;
}

.pmsw-input:focus {
	outline: none;
	border-color: #B11036;
	box-shadow: 0 0 0 3px rgba(177, 16, 54, 0.1);
}

.pmsw-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pmsw-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #777;
	line-height: 1.4;
	cursor: pointer;
}

.pmsw-consent input {
	margin-top: 2px;
	flex: 0 0 auto;
	accent-color: #B11036;
}

.pmsw-consent a {
	color: #B11036;
	text-decoration: underline;
}

.pmsw-spin-btn {
	display: inline-block;
	width: 100%;
	padding: 15px 24px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #3b2a10;
	background: linear-gradient(to bottom, #EFDA96, #D0AB66);
	border: 1px solid #B11036;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 4px 12px rgba(177, 16, 54, 0.22);
}

.pmsw-spin-btn:hover:not(:disabled) {
	background: linear-gradient(to bottom, #f5e4ab, #dab877);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(177, 16, 54, 0.3);
}

.pmsw-spin-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.pmsw-error {
	color: #B11036;
	font-size: 13px;
	margin: 10px 0 0;
	font-weight: 600;
}

/* ---------- Result ---------- */

.pmsw-result {
	text-align: center;
	padding-top: 14px;
	animation: pmsw-pop 0.5s ease;
}

.pmsw-result-icon {
	font-size: 46px;
	margin-bottom: 4px;
}

.pmsw-result-prize {
	font-family: 'BerlinerInsScript', cursive;
	color: #B11036;
	font-size: 34px;
	margin: 0 0 10px;
}

.pmsw-result-text {
	color: #444;
	font-size: 14.5px;
	line-height: 1.55;
	margin: 0 0 10px;
}

.pmsw-result-hint {
	color: #999;
	font-size: 12px;
	margin: 0;
}

@keyframes pmsw-pop {
	0%   { transform: scale(0.85); opacity: 0; }
	100% { transform: scale(1);    opacity: 1; }
}

/* ---------- Confetti ---------- */

.pmsw-confetti {
	position: absolute;
	top: -12px;
	width: 8px;
	height: 13px;
	border-radius: 2px;
	z-index: 7;
	pointer-events: none;
	animation: pmsw-fall linear forwards;
}

@keyframes pmsw-fall {
	0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
	85%  { opacity: 1; }
	100% { transform: translateY(105vh) rotate(640deg); opacity: 0; }
}

/* ---------- Mobile ---------- */

@media (max-width: 680px) {
	.pmsw-inner {
		flex-direction: column;
	}

	.pmsw-wheel-col {
		flex: 0 0 auto;
		padding: 34px 16px 30px;
	}

	.pmsw-wheel-wrap {
		width: min(66vw, 250px);
		height: min(66vw, 250px);
	}

	.pmsw-label span {
		font-size: 8.5px;
	}

	.pmsw-hub {
		width: 56px;
		height: 56px;
	}

	.pmsw-form-col {
		padding: 24px 22px 26px;
	}

	.pmsw-title,
	.pmsw-subtitle {
		text-align: center;
	}

	.pmsw-perks {
		margin-bottom: 14px;
	}
}
