/**
 * Sunday giveaway block.
 *
 * Deliberately the same card as the discount ticket it replaces — same width,
 * same surface, same dashed accent — so the page does not change shape when the
 * promotion ends and the coupon comes back.
 */

.tfp {
	position: relative;
	isolation: isolate;
	max-width: 34rem;
	margin-inline: auto;
	border-radius: var(--r, 16px);
	background: var(--surface, #fff);
	/* A soft pink halo under the card, so the ring reads as a glow rather than
	   as a stripe drawn on the edge. */
	box-shadow: 0 0 2rem #FF4D8D26, var(--sh-md, 0 2px 6px #1E123312, 0 14px 34px -10px #1E123326);
	text-align: center;
	overflow: hidden;
}

/* The ring. A conic gradient on a square large enough to cover the card,
   spun slowly; .tfp-body sits on top and masks all but a 2px edge. */
.tfp-glow {
	position: absolute;
	left: 50%;
	top: 50%;
	/* Square, and big enough to cover even a narrow card that has grown tall —
	   on a phone the form stacks and the card can be taller than it is wide.
	   Anything past the edge is clipped, so over-sizing costs nothing. */
	width: max(200%, 26rem);
	aspect-ratio: 1;
	translate: -50% -50%;
	background: conic-gradient(
		from 0deg,
		transparent 0deg 200deg,
		#FF4D8D40 250deg,
		#FF4D8D 300deg,
		#FFA6C9 330deg,
		#FF4D8D 350deg,
		transparent 360deg
	);
	animation: tfp-spin 4.5s linear infinite;
	z-index: 0;
	pointer-events: none;
}

.tfp-body {
	position: relative;
	z-index: 1;
	margin: 2px;
	padding: calc(clamp(1.5rem, 4vw, 2.25rem) - 2px);
	border-radius: calc(var(--r, 16px) - 2px);
	background: var(--surface, #fff);
}

@keyframes tfp-spin {
	to { rotate: 360deg; }
}

/* Motion is decoration here; the ring still reads as pink when it is stilled. */
@media (prefers-reduced-motion: reduce) {
	.tfp-glow {
		animation: none;
		background: #FF4D8D;
	}
}

/* Inside a tool's refusal notice the card already sits on a card, so lose the
   drop shadow but keep the glow. */
.fl-notice .tfp,
.ig-offer .tfp {
	margin-top: 1.5rem;
	box-shadow: 0 0 1.5rem #FF4D8D26;
}

.tfp-wrap {
	padding: 0 1.25rem clamp(2.5rem, 6vw, 4rem);
}

.tfp-eyebrow {
	margin: 0 0 .35rem;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--violet, #9B23D4);
}

.tfp-title {
	margin: 0 0 .6rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink, #1E1233);
}

.tfp-lede {
	margin: 0 0 1.35rem;
	font-size: .96rem;
	font-weight: 600;
	line-height: 1.6;
	color: var(--ink-2, #4C3D66);
}

/* Same dashed frame as the coupon stub, holding a field instead of a code. */
.tfp-form {
	display: flex;
	align-items: stretch;
	max-width: 24rem;
	margin: 0 auto .9rem;
	border: 2px dashed var(--violet, #9B23D4);
	border-radius: var(--r-sm, 10px);
	background: var(--violet-soft, #9B23D414);
	overflow: hidden;
}

.tfp-form .tfp-input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: .85rem .9rem;
	border: 0;
	background: none;
	font: inherit;
	font-size: 1rem;
	color: var(--ink, #1E1233);
	box-shadow: none;
}

.tfp-form .tfp-input:focus {
	outline: 0;
	background: #fff;
}

.tfp-form .tfp-input::placeholder {
	color: var(--muted, #7C6B94);
}

.tfp-form .tfp-input:disabled {
	opacity: .6;
}

.tfp-btn {
	flex: 0 0 auto;
	padding: 0 1.15rem;
	border: 0;
	border-left: 2px dashed var(--violet, #9B23D4);
	background: none;
	color: var(--violet, #9B23D4);
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .16s, color .16s;
}

.tfp-btn:hover:not(:disabled) {
	background: var(--violet, #9B23D4);
	color: #fff;
}

.tfp-btn:disabled {
	opacity: .6;
	cursor: default;
}

.tfp-note {
	margin: 0;
	font-size: .84rem;
	line-height: 1.5;
	color: var(--muted, #7C6B94);
}

.tfp-note.is-ok {
	font-weight: 650;
	color: var(--ink, #1E1233);
}

.tfp-note.is-warn {
	font-weight: 650;
	color: #B3261E;
}

/* Once someone has registered the card keeps its shape but loses the field. */
.tfp.is-done .tfp-title {
	margin-bottom: .4rem;
}

.tfp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tfp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 30rem) {
	.tfp-form {
		flex-direction: column;
	}

	.tfp-btn {
		border-left: 0;
		border-top: 2px dashed var(--violet, #9B23D4);
		padding: .8rem 1rem;
	}
}
