/* =========================================================================
   Scratch Voucher — Luxury theme
   Deep charcoal + gold foil aesthetic, replacing the flat yellow/orange
   card from v1. Keeps the same class names for JS hooks (.svc-canvas,
   .svc-reveal, .svc-form, .svc-result, .svc-soldout) and adds new ones
   for the confetti layer, valid-till copy, and Instagram link.
   ========================================================================= */

.svc-widget {
	--svc-gold: #d4af6a;
	--svc-gold-light: #f3e0b0;
	--svc-gold-dark: #9c7a34;
	--svc-charcoal: #1b1b1f;
	--svc-charcoal-light: #2a2a30;
	--svc-cream: #faf6ec;

	max-width: 380px;
	margin: 0 auto;
	text-align: center;
	font-family: inherit;
}

.svc-widget--luxury .svc-title {
	margin-bottom: 6px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.3px;
	background: linear-gradient(135deg, var(--svc-gold-dark), var(--svc-gold) 45%, var(--svc-gold-light) 60%, var(--svc-gold-dark));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.svc-valid-till {
	margin: 0 0 16px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--svc-gold-dark);
}

.svc-card-wrap {
	position: relative;
	width: 320px;
	height: 180px;
	margin: 0 auto;
	padding: 3px;
	border-radius: 20px;
	overflow: hidden;
	background:
		linear-gradient(#0d0d10, #0d0d10) padding-box,
		linear-gradient(135deg, var(--svc-gold-dark), var(--svc-gold-light) 30%, var(--svc-gold) 55%, var(--svc-gold-dark) 80%, var(--svc-gold-light)) border-box;
	border: 3px solid transparent;
	box-shadow:
		0 16px 38px rgba(0, 0, 0, 0.4),
		0 0 24px rgba(212, 175, 106, 0.22);
	animation: svc-border-glow 4s ease-in-out infinite;
}

@keyframes svc-border-glow {
	0%, 100% { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 22px rgba(212, 175, 106, 0.18); }
	50%      { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 34px rgba(212, 175, 106, 0.4); }
}

/* Slow diagonal light sweep across the card for a premium foil shimmer.
   Purely decorative — sits above the canvas but ignores all pointer events
   so it never interferes with scratching. */
.svc-card-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: 17px;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.02) 56%, transparent 65%);
	background-size: 250% 250%;
	background-position: 0% 0%;
	animation: svc-shimmer 3.2s ease-in-out infinite;
	mix-blend-mode: overlay;
}

@keyframes svc-shimmer {
	0%   { background-position: -40% -40%; }
	50%  { background-position: 100% 100%; }
	100% { background-position: -40% -40%; }
}

/* Confetti sits above the reveal + scratch canvas, ignores pointer events. */
.svc-confetti {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.svc-reveal {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 140% at 20% 15%, rgba(255, 255, 255, 0.10), transparent 55%),
		linear-gradient(135deg, #262229 0%, #1b1b1f 55%, #100f12 100%);
	color: var(--svc-gold-light);
}

.svc-reveal-percent {
	font-size: 50px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(180deg, #f6e6bb 0%, var(--svc-gold) 55%, #b6873f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.svc-reveal-label {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 4px;
	color: var(--svc-gold);
}

.svc-canvas {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
	touch-action: none;
	border-radius: 18px;
}

.svc-hint {
	margin-top: 12px;
	font-size: 12.5px;
	letter-spacing: 0.3px;
	color: #8a8a92;
}

/* "Claim Your Voucher" button — shown under the card once scratched, in
   case the visitor dismisses the popup before entering their number. */
.svc-reopen-btn {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 18px auto 0;
	background: linear-gradient(135deg, var(--svc-gold-light), var(--svc-gold) 55%, var(--svc-gold-dark));
	color: #1b1204;
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(156, 122, 52, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc-reopen-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(156, 122, 52, 0.45);
}

/* ---------------------------------------------------------------------
   Popup modal — collects the WhatsApp number after the card is scratched.
   --------------------------------------------------------------------- */

.svc-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 9, 8, 0.72);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.svc-modal-overlay.svc-modal-open {
	opacity: 1;
}

.svc-modal {
	position: relative;
	width: 100%;
	max-width: 360px;
	background:
		radial-gradient(120% 140% at 20% 0%, rgba(212, 175, 106, 0.12), transparent 55%),
		linear-gradient(165deg, #201c14 0%, #16130d 60%, #0e0c08 100%);
	border-radius: 20px;
	padding: 30px 26px 26px;
	text-align: center;
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(212, 175, 106, 0.4),
		0 0 30px rgba(212, 175, 106, 0.15);
	transform: translateY(14px) scale(0.97);
	transition: transform 0.22s ease;
}

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

.svc-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	color: var(--svc-gold-light);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.75;
	padding: 4px;
}

.svc-modal-close:hover {
	opacity: 1;
}

.svc-modal-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	margin: 0 auto 14px;
	background: radial-gradient(circle at 30% 25%, #2a241a, #14110b 70%);
	box-shadow: 0 0 0 2px rgba(212, 175, 106, 0.55), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.svc-modal-percent {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(180deg, #f6e6bb 0%, var(--svc-gold) 55%, #b6873f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.svc-modal-percent-label {
	margin-top: 2px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2.5px;
	color: var(--svc-gold);
}

.svc-modal .svc-form-copy {
	color: var(--svc-cream);
}

.svc-modal .svc-form-row {
	border-color: rgba(212, 175, 106, 0.4);
	background: #f7f1de;
}

.svc-modal .svc-country-code {
	background: #efe4c4;
	border-right-color: rgba(212, 175, 106, 0.4);
}

.svc-form-note {
	margin-top: 12px;
	font-size: 11.5px;
	letter-spacing: 0.3px;
	color: #a89a78;
}

.svc-modal .svc-error {
	color: #ff8a7a;
}

.svc-modal-result .svc-result-headline {
	color: var(--svc-cream);
}

.svc-modal-result .svc-result-code {
	background: linear-gradient(135deg, var(--svc-cream), #f1e6c8);
}

.svc-modal-done {
	display: inline-block;
	margin-top: 16px;
	background: transparent;
	border: 1px solid rgba(212, 175, 106, 0.5);
	color: var(--svc-gold-light);
	border-radius: 10px;
	padding: 10px 22px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.svc-modal-done:hover {
	background: rgba(212, 175, 106, 0.1);
}

.svc-form-copy {
	font-size: 15px;
	margin-bottom: 14px;
	color: var(--svc-charcoal);
}

.svc-form-row {
	display: flex;
	align-items: center;
	border: 1px solid #e3d8bd;
	border-radius: 10px;
	overflow: hidden;
	max-width: 280px;
	margin: 0 auto 14px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.svc-country-code {
	padding: 11px 13px;
	background: var(--svc-cream);
	font-weight: 600;
	color: var(--svc-charcoal);
	border-right: 1px solid #e3d8bd;
}

.svc-phone-input {
	flex: 1;
	padding: 11px 13px;
	border: none;
	outline: none;
	font-size: 15px;
	background: transparent;
}

.svc-submit-btn {
	background: linear-gradient(135deg, var(--svc-gold-light), var(--svc-gold) 55%, var(--svc-gold-dark));
	color: #2a1f04;
	border: none;
	border-radius: 10px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(156, 122, 52, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc-submit-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(156, 122, 52, 0.42);
}

.svc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

.svc-error {
	color: #c0392b;
	font-size: 13px;
	margin-top: 8px;
}

.svc-result {
	margin-top: 20px;
}

.svc-result-headline {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--svc-charcoal);
}

.svc-result-code {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: var(--svc-charcoal);
	background: linear-gradient(135deg, var(--svc-cream), #f1e6c8);
	border: 1px dashed var(--svc-gold-dark);
	border-radius: 10px;
	padding: 11px;
	display: inline-block;
}

.svc-result-valid-till {
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: var(--svc-gold-dark);
}

.svc-wa-btn,
.svc-ig-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	margin-left: 6px;
	margin-right: 6px;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
}

.svc-wa-btn {
	background: #25D366;
	color: #fff;
}

.svc-ig-btn {
	color: #fff;
	background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}

.svc-ig-icon {
	width: 15px;
	height: 15px;
	display: inline-block;
	border: 1.6px solid currentColor;
	border-radius: 5px;
	position: relative;
}

.svc-ig-icon::before {
	content: "";
	position: absolute;
	inset: 3px;
	border: 1.6px solid currentColor;
	border-radius: 50%;
}

.svc-ig-icon::after {
	content: "";
	position: absolute;
	top: 1.5px;
	right: 1.5px;
	width: 2px;
	height: 2px;
	background: currentColor;
	border-radius: 50%;
}

.svc-soldout p {
	font-size: 15px;
	color: #777;
}

@media (max-width: 400px) {
	.svc-widget,
	.svc-card-wrap {
		max-width: 92vw;
		width: 92vw;
	}
}
