/* Christmas Deal Form — Brandfox dark/teal design.
 * Override any --cdf-* variable from your theme or Elementor custom CSS.
 * --cdf-brand drives the form's button, focus rings and glow.
 * --cdf-accent (Settings > Accent color) still drives the emails and success links. */
.cdf {
	--cdf-accent: #4a958e;
	--cdf-brand: #00E7D2;
	--cdf-brand-2: #03C9B7;
	--cdf-brand-text: #111114;
	--cdf-card: rgba(17, 17, 20, 0.74);
	--cdf-card-border: rgba(0, 231, 210, 0.45);
	--cdf-title: #FAFAFA;
	--cdf-muted: #A5A5A5;
	--cdf-field: #FAFAFA;
	--cdf-field-text: #111114;
	--cdf-placeholder: #8E8E95;
	--cdf-select-empty: #8E8E95;
	--cdf-error: #ff9b91;
	--cdf-gap: 12px;
	--cdf-ease: cubic-bezier(.2, .7, .2, 1);
	container-type: inline-size;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	color: var(--cdf-title);
	font-family: inherit;
	line-height: 1.5;
}
.cdf *, .cdf *::before, .cdf *::after { box-sizing: border-box; }
.cdf [hidden] { display: none !important; }
.cdf .cdf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Card: frosted glass with a teal edge, as in the mockup */
.cdf .cdf-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cdf-card);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--cdf-card-border);
	border-radius: 22px;
	padding: clamp(24px, 7cqi, 34px) clamp(18px, 6.5cqi, 30px) clamp(22px, 6cqi, 28px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 60px rgba(0, 231, 210, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: box-shadow 0.5s ease;
}
/* soft teal light along the top edge */
.cdf .cdf-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 140px;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(70% 100% at 50% 0%, rgba(0, 231, 210, 0.14), transparent 70%);
}
.cdf--festive .cdf-card { padding-top: clamp(40px, 10cqi, 50px); }
.cdf .cdf-body { position: relative; z-index: 2; }

/* Snow */
.cdf .cdf-snow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* String lights (brand colours) */
.cdf .cdf-lights { position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 40px; pointer-events: none; }
.cdf .cdf-lights svg { display: block; width: 100%; height: 40px; overflow: visible; }
.cdf .cdf-wire { fill: none; stroke: rgba(0, 231, 210, 0.28); stroke-width: 1.2; }
.cdf .cdf-socket { fill: #393C41; }
.cdf .cdf-glass { fill: var(--c); opacity: 0.18; transition: opacity 0.4s ease, filter 0.4s ease; }
.cdf .cdf-bulb.is-lit .cdf-glass {
	opacity: 1;
	filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 9px var(--c));
	animation: cdf-twinkle 2.6s ease-in-out infinite;
	animation-delay: var(--d);
}
.cdf .cdf-lights.is-celebrating .cdf-glass {
	animation: cdf-chase 0.9s ease-in-out infinite;
	animation-delay: calc(var(--i) * 70ms);
}
@keyframes cdf-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.68; } }
@keyframes cdf-chase { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Heading */
.cdf .cdf-title {
	margin: 0 0 6px;
	font-size: clamp(1.25rem, 5.4cqi, 1.6rem);
	text-wrap: balance;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--cdf-title);
}
.cdf .cdf-intro { margin: 0 0 20px; font-size: 0.9rem; line-height: 1.5; color: var(--cdf-muted); }

/* Layout */
.cdf .cdf-field { position: relative; margin: 0 0 var(--cdf-gap); min-width: 0; }
.cdf .cdf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@container (max-width: 340px) { .cdf .cdf-row { grid-template-columns: 1fr; } }

/* Fields: white pills */
.cdf input[type="text"],
.cdf input[type="email"],
.cdf input[type="tel"],
.cdf select,
.cdf textarea {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	font: inherit;
	font-size: 0.9rem;
	color: var(--cdf-field-text);
	background-color: var(--cdf-field);
	border: 2px solid transparent;
	border-radius: 999px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--cdf-ease);
}
.cdf textarea {
	height: auto;
	min-height: 100px;
	padding: 12px 18px;
	border-radius: 18px;
	line-height: 1.45;
	resize: vertical;
}
.cdf input::placeholder, .cdf textarea::placeholder { color: var(--cdf-placeholder); opacity: 1; }
.cdf select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23393C41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.cdf select.is-empty { color: var(--cdf-select-empty); }
.cdf select option { color: #111114; }
.cdf input:hover, .cdf select:hover, .cdf textarea:hover { border-color: rgba(0, 231, 210, 0.35); }
.cdf input:focus, .cdf select:focus, .cdf textarea:focus {
	border-color: var(--cdf-brand);
	box-shadow: 0 0 0 4px rgba(0, 231, 210, 0.25), 0 0 22px rgba(0, 231, 210, 0.25);
}

/* Teal tick once a field is filled in correctly */
.cdf .cdf-field.is-valid input { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2303C9B7'/%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cdf .cdf-field.is-valid select:not(.is-empty) { border-color: rgba(3, 201, 183, 0.55); }
.cdf .cdf-field.just-valid input { animation: cdf-valid 0.45s var(--cdf-ease); }
@keyframes cdf-valid { 40% { transform: scale(1.015); } }

.cdf .has-error input, .cdf .has-error select, .cdf .has-error textarea { border-color: var(--cdf-error); animation: cdf-shake 0.4s ease; }
@keyframes cdf-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.cdf .cdf-error { margin: 5px 0 0 18px; font-size: 0.78rem; line-height: 1.35; color: var(--cdf-error); }
.cdf .cdf-error:empty { display: none; }

/* Honeypot */
.cdf .cdf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Alert */
.cdf .cdf-alert {
	margin: 0 0 12px;
	padding: 10px 16px;
	font-size: 0.85rem;
	color: #ffc6bf;
	background: rgba(255, 120, 110, 0.12);
	border: 1px solid rgba(255, 120, 110, 0.3);
	border-radius: 14px;
}

/* Button: bright teal pill with an arrow */
.cdf button.cdf-submit {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	margin: 4px 0 0;
	padding: 0 24px;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	color: var(--cdf-brand-text);
	background: var(--cdf-brand);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 24px -8px rgba(0, 231, 210, 0.6);
	cursor: pointer;
	transition: transform 0.2s var(--cdf-ease), box-shadow 0.25s ease, background-color 0.25s ease;
}
.cdf .cdf-submit-label::after {
	content: "\2192";
	display: inline-block;
	margin-left: 8px;
	transition: transform 0.25s var(--cdf-ease);
}
.cdf button.cdf-submit::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	pointer-events: none;
}
.cdf button.cdf-submit:hover,
.cdf button.cdf-submit:focus {
	color: var(--cdf-brand-text);
	background: var(--cdf-brand);
	transform: translateY(-2px);
	box-shadow: 0 0 0 4px rgba(0, 231, 210, 0.18), 0 14px 32px -8px rgba(0, 231, 210, 0.7);
}
.cdf button.cdf-submit:hover .cdf-submit-label::after { transform: translateX(4px); }
.cdf button.cdf-submit:hover::after { transform: translateX(120%); transition: transform 0.75s ease; }
.cdf button.cdf-submit:focus-visible { outline: 3px solid #FAFAFA; outline-offset: 3px; }
.cdf button.cdf-submit:active { transform: translateY(0); }
.cdf button.cdf-submit[disabled] { cursor: progress; opacity: 0.85; transform: none; }
.cdf .cdf-form.is-complete button.cdf-submit:not([disabled]) { animation: cdf-ready 2.2s ease-out infinite; }
@keyframes cdf-ready {
	0% { box-shadow: 0 0 0 0 rgba(0, 231, 210, 0.6); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(0, 231, 210, 0); }
}

.cdf .cdf-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(17, 17, 20, 0.3);
	border-top-color: #111114;
	border-radius: 50%;
	animation: cdf-spin 0.7s linear infinite;
}
.cdf .is-loading .cdf-spinner { display: inline-block; }
.cdf .is-loading .cdf-submit-label::after { display: none; }
@keyframes cdf-spin { to { transform: rotate(360deg); } }

.cdf .cdf-note { max-width: 44ch; margin: 14px auto 0; text-align: center; font-size: 0.76rem; line-height: 1.5; color: var(--cdf-muted); }

/* Success */
.cdf .cdf-success { padding: 6px 0 4px; text-align: center; outline: none; }
.cdf .cdf-gift { display: inline-block; margin: 0 0 12px; filter: drop-shadow(0 0 18px rgba(0, 231, 210, 0.35)); }
.cdf .cdf-gift svg { display: block; overflow: visible; }
.cdf .cdf-gift-lid { transform-box: fill-box; transform-origin: 100% 100%; }
.cdf .cdf-success:not([hidden]) .cdf-gift { animation: cdf-pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.cdf .cdf-success:not([hidden]) .cdf-gift-lid { animation: cdf-lid 0.8s 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes cdf-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes cdf-lid { to { transform: translate(3px, -5px) rotate(12deg); } }
.cdf .cdf-success-title { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.2; color: var(--cdf-title); }
.cdf .cdf-success-text p { max-width: 46ch; margin: 0 auto 10px; font-size: 0.92rem; color: var(--cdf-muted); }
.cdf .cdf-success-text a { font-weight: 600; color: var(--cdf-brand); }
.cdf .cdf-closed { margin: 0; text-align: center; font-size: 1.05rem; color: var(--cdf-muted); }

/* Celebration particles */
.cdf .cdf-particle { position: absolute; z-index: 3; line-height: 1; pointer-events: none; will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
	.cdf *, .cdf *::before, .cdf *::after { animation: none !important; transition: none !important; }
}
