/* Spin Wheel Promo — Bucks County Smiles design */

:root {
	--swp-bg: #241647;
	--swp-bg-deep: #1a1035;
	--swp-surface: #2a1b52;
	--swp-text: #ffffff;
	--swp-muted: rgba(255, 255, 255, 0.82);
	--swp-mint: #70bca5;
	--swp-mint-soft: #9fd9c8;
	--swp-orange: #f39a2b;
	--swp-orange-deep: #e08618;
	--swp-segment-purple: #3a2d66;
	--swp-segment-slate: #4a447c;
	--swp-danger: #ff8a96;
	--swp-radius: 8px;
	--swp-font: "Nunito", "Segoe UI", sans-serif;
	--swp-font-eyebrow: "Roboto", "Segoe UI", sans-serif;
}

body.swp-locked {
	overflow: hidden;
}

.swp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(12, 6, 28, 0.78);
	backdrop-filter: blur(8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.swp-overlay[hidden] {
	display: none !important;
}

.swp-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.swp-modal {
	position: relative;
	width: min(100%, 780px);
	max-height: min(96vh, 1100px);
	overflow: auto;
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(125, 206, 184, 0.12), transparent 55%),
		radial-gradient(ellipse 70% 45% at 80% 100%, rgba(243, 154, 43, 0.1), transparent 50%),
		linear-gradient(180deg, #2d1d55 0%, var(--swp-bg) 45%, var(--swp-bg-deep) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
	color: var(--swp-text);
	font-family: var(--swp-font);
	padding: 48px 42px 36px;
	transform: translateY(16px) scale(0.985);
	transition: transform 0.3s ease;
	scrollbar-width: thin;
}

.swp-overlay.is-open .swp-modal {
	transform: translateY(0) scale(1);
}

.swp-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 5 !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: none !important;
	color: var(--swp-text) !important;
	font-size: 22px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
}

.swp-close:hover,
.swp-close:focus-visible {
	background: rgba(255, 255, 255, 0.16) !important;
	outline: none !important;
}

.swp-header {
	text-align: center;
	margin-bottom: 22px;
	padding: 0 18px;
}

.swp-eyebrow {
	margin: 0 0 10px;
	font-family: var(--swp-font-eyebrow);
	font-weight: 400;
	font-style: normal;
	font-size: 12px;
	line-height: 12px;
	letter-spacing: 2.5px;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
}

.swp-title {
	margin: 0 0 12px;
	font-family: var(--swp-font);
	font-weight: 600;
	font-style: normal;
	font-size: 75px;
	line-height: 67.5px;
	letter-spacing: -2px;
	text-align: center;
	text-transform: capitalize;
	color: #70bca5;
}

.swp-subtitle {
	margin: 0 auto;
	max-width: 36em;
	font-family: var(--swp-font);
	font-weight: 500;
	font-style: normal;
	font-size: 17px;
	line-height: 28px;
	letter-spacing: 0;
	text-align: center;
	vertical-align: middle;
	color: #ffffff;
}

.swp-wheel-wrap {
	position: relative;
	width: min(100%, 540px);
	margin: 12px auto 28px;
	aspect-ratio: 1;
}

.swp-wheel-ring {
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--swp-orange), #ffb85c, var(--swp-orange));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	z-index: 0;
}

.swp-wheel-ring::after {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background: #fff;
}

.swp-wheel {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
	padding: 10px;
	box-sizing: border-box;
}

.swp-pointer {
	position: absolute;
	top: -2px;
	left: 50%;
	z-index: 4;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--swp-orange);
	transform: translateX(-50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.swp-hub {
	position: absolute;
	inset: 50% auto auto 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #fff;
	border: 4px solid #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8%;
	box-sizing: border-box;
	pointer-events: none;
}

.swp-hub__logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.swp-spin-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 340px;
	margin: 0 auto;
	padding: 18px 26px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(180deg, #f5a53a 0%, var(--swp-orange) 55%, var(--swp-orange-deep) 100%);
	color: #fff;
	font-family: var(--swp-font-eyebrow);
	font-weight: 900;
	font-style: normal;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(243, 154, 43, 0.35);
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.swp-spin-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 14px 28px rgba(243, 154, 43, 0.42);
}

.swp-spin-btn:disabled {
	cursor: wait;
	opacity: 0.75;
	filter: saturate(0.85);
}

.swp-spin-btn__icon {
	flex-shrink: 0;
}

.swp-spin-btn.is-spinning .swp-spin-btn__icon {
	animation: swp-spin-icon 0.8s linear infinite;
}

.swp-panel--wheel {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.swp-panel--wheel.is-leaving {
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
}

.swp-panel[hidden] {
	display: none !important;
}

.swp-panel--form,
.swp-panel--success {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	animation: swp-fade-up 0.4s ease;
}

.swp-panel--form .swp-header,
.swp-panel--success .swp-header,
.swp-panel--success .swp-success {
	width: 100%;
}

.swp-prize-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 520px;
	margin: 0 auto 18px;
	padding: 16px 20px;
	border-radius: 12px;
	background: rgba(243, 154, 43, 0.14);
	border: 1px solid rgba(243, 154, 43, 0.35);
	text-align: center;
	box-sizing: border-box;
}

.swp-prize-banner__label {
	color: var(--swp-muted);
	font-size: 1.35rem;
	line-height: 1.3;
}

.swp-prize-banner__value {
	color: var(--swp-orange);
	font-size: 1.725rem;
	font-weight: 700;
	line-height: 1.3;
}

.swp-form {
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	box-sizing: border-box;
}

.swp-field {
	display: grid;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--swp-muted);
}

.swp-field--plain > span:not(.screen-reader-text):not(.swp-date-fake) {
	display: none;
}

.swp-field input,
.swp-field select,
.swp-field textarea {
	width: 100%;
	margin-bottom: 0;
	padding: 18px 20px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.08);
	color: var(--swp-text);
	font-family: var(--swp-font);
	font-size: 1rem;
	line-height: 1.3;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
	appearance: none;
}

.swp-field select {
	background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
	background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 42px;
	cursor: pointer;
}

.swp-field--date {
	position: relative;
}

.swp-field--date .swp-date-fake {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 0 20px;
	color: rgba(255, 255, 255, 0.45);
	pointer-events: none;
	font-size: 1rem;
	line-height: 1.3;
	font-family: var(--swp-font);
}

.swp-field--date.has-value .swp-date-fake {
	display: none;
}

.swp-field--date input[type="date"] {
	position: relative;
	z-index: 1;
	color: transparent;
	cursor: pointer;
}

.swp-field--date:not(.has-value) input[type="date"]::-webkit-datetime-edit,
.swp-field--date:not(.has-value) input[type="date"]::-webkit-datetime-edit-fields-wrapper {
	color: transparent;
}

.swp-field--date.has-value input[type="date"] {
	color: var(--swp-text);
	z-index: 2;
}

.swp-field--date input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 3;
}

.swp-field textarea {
	min-height: 150px;
	resize: vertical;
	line-height: 1.45;
}

.swp-field input::placeholder,
.swp-field textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.swp-field select:invalid {
	color: rgba(255, 255, 255, 0.45);
}

.swp-field select option {
	color: #1a1035;
	background: #fff;
}

.swp-field input:focus,
.swp-field select:focus,
.swp-field textarea:focus {
	border-color: var(--swp-mint);
	box-shadow: 0 0 0 3px rgba(125, 206, 184, 0.22);
	background: rgba(255, 255, 255, 0.1);
}

.swp-btn {
	appearance: none;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 8px;
	padding: 20px 22px;
	margin-top: 4px;
	width: 100%;
	max-width: 520px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #f5a53a 0%, var(--swp-orange) 100%);
	color: #fff;
	font-family: var(--swp-font-eyebrow);
	font-weight: 900;
	font-size: 1rem;
	line-height: 100%;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.swp-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.swp-btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.swp-error {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(227, 93, 106, 0.12);
	border: 1px solid rgba(227, 93, 106, 0.35);
	color: var(--swp-danger);
	font-size: 0.9rem;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}

.swp-success {
	text-align: center;
	padding: 18px 8px 8px;
}

.swp-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: rgba(125, 206, 184, 0.18);
	border: 2px solid var(--swp-mint);
	color: var(--swp-mint);
	font-size: 1.8rem;
	animation: swp-pop 0.45s ease;
}

@keyframes swp-fade-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

@keyframes swp-spin-icon {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.swp-modal {
		padding: 28px 16px 20px;
		border-radius: 14px;
		width: min(100%, 100%);
	}

	.swp-wheel-wrap {
		width: min(100%, 300px);
	}

	.swp-title {
		font-size: clamp(42px, 12vw, 75px);
		line-height: 0.9;
		letter-spacing: -1.5px;
	}

	.swp-subtitle {
		font-size: 17px;
		line-height: 28px;
	}

	.swp-spin-btn {
		max-width: 100%;
		font-size: 18px;
	}
}
