/**
 * Intelliguard — canonical CTA widget (intelliguard_cta).
 *
 * Consolidates the seven page-specific CTA bands into one styleset.
 * Brand tokens live on the widget wrapper (.ig-cta) — no :root usage — so the
 * widget is self-contained and cannot collide with the host theme.
 *
 * Variants:
 *   .ig-cta--teal   teal full-width band       (Request Demo, Mira Prep/MCWS/MCCab/MI)
 *   .ig-cta--navy   navy full-width band       (Capsa)
 *   .ig-cta--muted  muted section + navy panel (FAQ)
 *   .ig-cta--centered / .ig-cta--split         layout
 */

/* =========================================================================
   Brand tokens (mirrors assets/css/widgets.css) + resets
   ========================================================================= */
.ig-cta {
	--ig-navy: hsl(225 70% 17%);
	--ig-navy-light: hsl(225 50% 30%);
	--ig-gold: hsl(38 91% 55%);
	--ig-gold-light: hsl(38 91% 70%);
	--ig-teal: hsl(174 60% 42%);
	--ig-teal-light: hsl(174 50% 60%);
	--ig-background: var(--ig-surface, hsl(0 0% 100%));
	--ig-foreground: var(--ig-ink, hsl(225 70% 17%));
	--ig-muted: hsl(210 20% 97%);
	--ig-muted-foreground: hsl(220 10% 46%);
	--ig-border: hsl(220 20% 90%);
	--ig-card: hsl(0 0% 100%);
	--ig-radius: 0.75rem;

	position: relative;
	overflow: hidden;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
}

.ig-cta * {
	box-sizing: border-box;
}

/* =========================================================================
   Background variants
   ========================================================================= */
.ig-cta--teal {
	padding: 6rem 0;
	background: var(--ig-surface, var(--ig-teal));
	color: var(--ig-ink, #fff);
}

.ig-cta--navy {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-navy));
	color: var(--ig-ink, #fff);
}

.ig-cta--muted {
	padding: 5rem 0;
	background: var(--ig-surface, var(--ig-muted));
}

/* =========================================================================
   Container
   ========================================================================= */
.ig-cta__container {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

/* Narrower measure for centered bands (matches the old 3xl containers). */
.ig-cta--teal.ig-cta--centered .ig-cta__container,
.ig-cta--navy.ig-cta--centered .ig-cta__container {
	max-width: 48rem;
}

/* Muted variant panel is capped like the old 5xl container. */
.ig-cta--muted .ig-cta__container {
	max-width: 64rem;
}

/* =========================================================================
   Panel — transparent pass-through for band variants; navy rounded card for muted
   ========================================================================= */
.ig-cta__panel {
	position: relative;
}

.ig-cta--muted .ig-cta__panel {
	overflow: hidden;
	border-radius: 1.5rem;
	background-image: linear-gradient(to bottom right, var(--ig-navy), var(--ig-navy-light), var(--ig-navy));
	padding: 2.5rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
	color: #fff;
}

@media (min-width: 768px) {
	.ig-cta--muted .ig-cta__panel {
		padding: 3.5rem;
	}
}

/* Soft blur accents inside the panel. */
.ig-cta__blur {
	position: absolute;
	width: 12rem;
	height: 12rem;
	border-radius: 9999px;
	filter: blur(48px);
	pointer-events: none;
}

.ig-cta__blur--gold {
	top: -3rem;
	right: -3rem;
	background: hsl(38 91% 55% / 0.2);
}

.ig-cta__blur--teal {
	bottom: -3rem;
	left: -3rem;
	background: hsl(174 60% 42% / 0.2);
}

/* =========================================================================
   Grid / layout
   ========================================================================= */
.ig-cta__grid {
	position: relative;
	z-index: 10;
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.ig-cta--centered .ig-cta__grid {
	justify-items: center;
	text-align: center;
}

.ig-cta--split .ig-cta__grid {
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.ig-cta--split .ig-cta__grid {
		grid-template-columns: 1fr auto;
		text-align: left;
	}
}

.ig-cta__body {
	min-width: 0;
}

/* =========================================================================
   Eyebrow
   ========================================================================= */
.ig-cta__eyebrow {
	margin-bottom: 1rem;
}

/* Plain label — gold, or gold-light on dark bands. */
.ig-cta__eyebrow--plain {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ig-gold);
}

.ig-cta--navy .ig-cta__eyebrow--plain,
.ig-cta--muted .ig-cta__eyebrow--plain {
	color: var(--ig-gold-light);
}

/* Animated radio icon + text. */
.ig-cta__eyebrow--radio {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ig-cta--centered .ig-cta__eyebrow--radio {
	justify-content: center;
}

.ig-cta__radio {
	color: rgba(255, 255, 255, 0.8);
	display: inline-flex;
	animation: ig-cta-radio-wiggle 2s ease-in-out infinite;
}

.ig-cta__eyebrow--radio .ig-cta__eyebrow-text {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.7);
}

/* Badge pill. */
.ig-cta__eyebrow--badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: hsl(38 91% 55% / 0.2);
}

.ig-cta__eyebrow--badge svg {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--ig-gold);
}

.ig-cta__eyebrow--badge .ig-cta__eyebrow-text {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ig-gold-light);
}

/* =========================================================================
   Heading + sub copy
   ========================================================================= */
.ig-cta__heading {
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
	line-height: 1.15;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
}

/* Request Demo band runs a larger, heavier headline. */
.ig-cta--teal.ig-cta--centered .ig-cta__heading {
	font-weight: 800;
	font-size: clamp(1.875rem, 5vw, 3rem);
	margin-bottom: 1.25rem;
}

/* When a plain/radio eyebrow precedes the heading, tighten the top margin. */
.ig-cta__eyebrow + .ig-cta__heading {
	margin-top: 0;
}

.ig-cta__sub {
	max-width: 42rem;
	margin: 0 0 2rem;
	line-height: 1.6;
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.8);
}

.ig-cta--centered .ig-cta__sub {
	margin-left: auto;
	margin-right: auto;
}

/* Navy band sub copy is a touch dimmer (Capsa). */
.ig-cta--navy .ig-cta__sub {
	color: rgba(255, 255, 255, 0.7);
	max-width: 36rem;
}

/* Panel body text (FAQ) — no bottom margin, sits beside the button. */
.ig-cta--muted .ig-cta__sub {
	max-width: 36rem;
	margin-bottom: 0;
	font-size: 1rem;
}

.ig-cta--split .ig-cta__sub {
	margin-bottom: 0;
}

.ig-cta__phone {
	color: var(--ig-gold);
	text-decoration: underline;
	white-space: nowrap;
}

/* =========================================================================
   Actions / buttons
   ========================================================================= */
.ig-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.ig-cta--centered .ig-cta__actions {
	justify-content: center;
	margin-top: 0.5rem;
}

.ig-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	border-radius: 9999px;
	padding: 0.75rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Gold pill (default across product/FAQ/Capsa bands). */
.ig-cta__btn--gold {
	background: var(--ig-gold);
	color: var(--ig-navy);
}

.ig-cta__btn--gold:hover {
	background: var(--ig-gold-light);
	color: var(--ig-navy);
}

.ig-cta__btn-chevron {
	width: 1rem;
	height: 1rem;
}

/* Secondary button — subtle glass pill that reads on any band. */
.ig-cta__btn--secondary {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
}

.ig-cta__btn--secondary:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* On the muted (light) section outside the panel, keep the secondary readable. */
.ig-cta--muted .ig-cta__btn--secondary {
	background: transparent;
	border-color: var(--ig-navy);
	color: var(--ig-navy);
}

.ig-cta--muted .ig-cta__btn--secondary:hover {
	background: var(--ig-navy);
	color: #fff;
}

/* Navy pill with gold slide-up hover fill (Request Demo). */
.ig-cta__btn--navy-fill {
	position: relative;
	overflow: hidden;
	background: var(--ig-navy);
	color: #fff;
	font-weight: 700;
	padding: 1rem 2.5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.ig-cta__btn-fill {
	position: absolute;
	inset: 0;
	background: var(--ig-gold);
	border-radius: 9999px;
	transform: translateY(100%);
	transition: transform 0.3s ease-out;
}

.ig-cta__btn--navy-fill:hover .ig-cta__btn-fill {
	transform: translateY(0);
}

.ig-cta__btn-label {
	position: relative;
	z-index: 10;
	transition: color 0.3s ease;
}

.ig-cta__btn--navy-fill:hover .ig-cta__btn-label {
	color: var(--ig-navy);
}

/* =========================================================================
   Decoration — RFID rings + gold ribbons
   ========================================================================= */
.ig-cta__rings {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ig-cta__ring {
	position: absolute;
	left: 50%;
	top: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 9999px;
	transform: translate(-50%, -50%);
	animation: ig-cta-ring-expand 4s ease-out infinite;
}

.ig-cta__ring--0 { --ig-ring-max: 600px; animation-delay: 0s; }
.ig-cta__ring--1 { --ig-ring-max: 800px; animation-delay: 0.8s; }
.ig-cta__ring--2 { --ig-ring-max: 1000px; animation-delay: 1.6s; }
.ig-cta__ring--3 { --ig-ring-max: 1200px; animation-delay: 2.4s; }
.ig-cta__ring--4 { --ig-ring-max: 1400px; animation-delay: 3.2s; }

.ig-cta__ribbon {
	position: absolute;
	width: 300px;
	height: 60px;
	background: var(--ig-gold);
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

.ig-cta__ribbon--top {
	top: -15px;
	left: 0;
	clip-path: polygon(0 0, 100% 10%, 90% 100%, 0 100%);
	transform: translateX(-100%);
}

.ig-cta__ribbon--bottom {
	bottom: -15px;
	right: 0;
	clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 90%);
	transform: translateX(100%);
}

/* =========================================================================
   Keyframes
   ========================================================================= */
@keyframes ig-cta-ring-expand {
	0%   { width: 80px; height: 80px; opacity: 0.4; }
	100% { width: var(--ig-ring-max, 600px); height: var(--ig-ring-max, 600px); opacity: 0; }
}

@keyframes ig-cta-radio-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(15deg); }
	75%      { transform: rotate(-15deg); }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.ig-cta__ring,
	.ig-cta__radio {
		animation: none !important;
	}
	.ig-cta__ribbon {
		transition: none !important;
	}
}
