/*
 * Popup Component — Mobile-First
 *
 * Two-column modal: product image (left) + content (right).
 * Dark theme by default, optional .gambit-popup--light modifier.
 * Hidden via [hidden] attribute, revealed via .is-visible class.
 *
 * Supports two content types:
 *   - CTA: headline + body + button link
 *   - Lead Capture: headline + embedded Gravity Form (AJAX)
 */

/* ==========================================================================
   Overlay + Container
   ========================================================================== */

.gambit-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.55, 0, 0.55, 0.2),
	            visibility 0.3s;
}

.gambit-popup[hidden] {
	display: none;
}

.gambit-popup.is-visible {
	opacity: 1;
	visibility: visible;
}

.gambit-popup__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(55, 55, 55, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

/* ==========================================================================
   Dialog Box
   ========================================================================== */

.gambit-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	background-color: var(--deep-charcoal);
	border: 1px solid rgba(247, 245, 242, 0.1);
	border-radius: var(--radius-card);
	overflow: hidden;
	transform: translateY(24px);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);

	/* Mobile: single column stacked */
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
}

.gambit-popup.is-visible .gambit-popup__dialog {
	transform: translateY(0);
}

/* Desktop: two-column layout */
@media (min-width: 640px) {
	.gambit-popup__dialog {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr;
	}
}

/* ==========================================================================
   Close Button
   ========================================================================== */

.gambit-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
	z-index: 2;
}

.gambit-popup__close:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.gambit-popup__close:focus-visible {
	outline: 2px solid var(--warm-white);
	outline-offset: 2px;
}
/* ==========================================================================
   Image Column
   ========================================================================== */

.gambit-popup__image-col {
	position: relative;
	overflow: hidden;
	/* Mobile: image on top */
	max-height: 200px;
}

@media (min-width: 640px) {
	.gambit-popup__image-col {
		max-height: none;
		min-height: 320px;
	}
}

.gambit-popup__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Badge (discount overlay on image)
   ========================================================================== */

.gambit-popup__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background-color: var(--clinical-teal);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.1;
	text-align: center;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Content Column
   ========================================================================== */

.gambit-popup__content {
	padding: 32px 24px 28px;
	display: flex;
	flex-direction: column;
}

@media (min-width: 640px) {
	.gambit-popup__content {
		padding: 40px 32px 36px;
		justify-content: center;
	}
}

.gambit-popup__headline {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(22px, 4vw, 26px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--warm-white);
	margin: 0 0 8px;
}

.gambit-popup__subheadline {
	font-family: var(--font-body);
	font-style: italic;
	font-size: 15px;
	line-height: 1.5;
	color: var(--off-white);
	opacity: 0.7;
	margin: 0 0 16px;
}

.gambit-popup__body {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--off-white);
	opacity: 0.75;
	margin: 0 0 24px;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.gambit-popup__cta {
	width: 100%;
	margin-bottom: 12px;
}

/* ==========================================================================
   Dismiss Link
   ========================================================================== */

.gambit-popup__dismiss {
	display: inline-block;
	background: none;
	border: none;
	color: var(--off-white);
	opacity: 0.45;
	font-family: var(--font-body);
	font-size: 14px;
	cursor: pointer;
	padding: 8px 0;
	transition: opacity 0.15s ease;
	text-align: center;
}

.gambit-popup__dismiss:hover {
	opacity: 0.75;
}

.gambit-popup__dismiss:focus-visible {
	outline: 2px solid var(--warm-white);
	outline-offset: 2px;
	opacity: 0.75;
}
/* ==========================================================================
   Embedded Gravity Form (Lead Capture type)
   ========================================================================== */

/* Remove GF default spacing inside popup */
.gambit-popup__form .gform_wrapper {
	margin: 0 !important;
}

.gambit-popup__form .gform_wrapper .gform_body {
	margin: 0;
}

.gambit-popup__form .gform_wrapper .gfield {
	margin-bottom: 16px;
}

/* Field labels */
.gambit-popup__form .gform_wrapper .gfield_label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--off-white);
	opacity: 0.7;
	margin-bottom: 6px;
}

/* Hide "Required" indicator entirely in popup forms */
.gambit-popup__form .gform_wrapper .gfield_required {
	display: none !important;
}

/* Input styling — dark mode */
.gambit-popup__form .gform_wrapper input[type="email"],
.gambit-popup__form .gform_wrapper input[type="text"],
.gambit-popup__form .gform_wrapper input[type="tel"],
.gambit-popup__form .gform_wrapper input[type="number"],
.gambit-popup__form .gform_wrapper textarea,
.gambit-popup__form .gform_wrapper select {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--warm-white);
	background: rgba(247, 245, 242, 0.05);
	border: 1px solid rgba(247, 245, 242, 0.15);
	border-radius: 6px;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gambit-popup__form .gform_wrapper input::placeholder,
.gambit-popup__form .gform_wrapper textarea::placeholder {
	color: rgba(247, 245, 242, 0.35);
}

.gambit-popup__form .gform_wrapper input:hover,
.gambit-popup__form .gform_wrapper textarea:hover {
	border-color: rgba(247, 245, 242, 0.25);
}

.gambit-popup__form .gform_wrapper input:focus-visible,
.gambit-popup__form .gform_wrapper textarea:focus-visible {
	outline: none;
	background: rgba(247, 245, 242, 0.08);
	border-color: var(--clinical-teal);
	box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25);
}

/* Submit button — match gambit-btn--primary */
.gambit-popup__form .gform_wrapper .gform_footer,
.gambit-popup__form .gform_wrapper .gform_page_footer {
	margin: 4px 0 0;
	padding: 0;
}

.gambit-popup__form .gform_wrapper.gform_wrapper :is(input, button)[type="submit"] {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px !important;
	padding: 12px 32px !important;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2 !important;
	color: var(--warm-white);
	background-color: var(--signal-red);
	border: none;
	border-radius: var(--radius-button);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.gambit-popup__form .gform_wrapper.gform_wrapper :is(input, button)[type="submit"]:hover {
	background-color: var(--signal-red-hover);
}

.gambit-popup__form .gform_wrapper.gform_wrapper :is(input, button)[type="submit"]:focus-visible {
	outline: 2px solid var(--warm-white);
	outline-offset: 2px;
}

.gambit-popup__form .gform_wrapper.gform_wrapper :is(input, button)[type="submit"]:active {
	transform: scale(0.98);
}

/* Mobile submit button tightening — all popup variants */
@media (max-width: 639px) {
	.gambit-popup__form .gform_wrapper.gform_wrapper :is(input, button)[type="submit"] {
		min-height: 44px !important;
		padding: 10px 24px !important;
		font-size: 15px;
	}
}

/* GF confirmation message (thank you) */
.gambit-popup__form .gform_confirmation_message {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--clinical-teal);
	text-align: center;
	padding: 20px 0;
}

/* GF validation errors */
.gambit-popup__form .gform_wrapper .validation_message {
	font-size: 13px;
	color: var(--signal-red);
	margin-top: 4px;
}
/* ==========================================================================
   Light Mode — .gambit-popup--light
   ========================================================================== */

.gambit-popup--light .gambit-popup__dialog {
	background-color: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

/* Typography */
.gambit-popup--light .gambit-popup__headline {
	color: var(--deep-charcoal);
}

.gambit-popup--light .gambit-popup__subheadline {
	color: rgba(26, 26, 30, 0.6);
	opacity: 1;
}

.gambit-popup--light .gambit-popup__body {
	color: rgba(26, 26, 30, 0.7);
	opacity: 1;
}

/* Dismiss link */
.gambit-popup--light .gambit-popup__dismiss {
	color: rgba(26, 26, 30, 0.5);
	opacity: 1;
}

.gambit-popup--light .gambit-popup__dismiss:hover {
	color: rgba(26, 26, 30, 0.7);
}

.gambit-popup--light .gambit-popup__dismiss:focus-visible {
	outline-color: var(--deep-charcoal);
	color: rgba(26, 26, 30, 0.7);
}

/* GF form — light mode inputs */
.gambit-popup--light .gambit-popup__form .gform_wrapper .gfield_label {
	color: var(--deep-charcoal);
	opacity: 0.6;
}

.gambit-popup--light .gambit-popup__form .gform_wrapper input[type="email"],
.gambit-popup--light .gambit-popup__form .gform_wrapper input[type="text"],
.gambit-popup--light .gambit-popup__form .gform_wrapper input[type="tel"],
.gambit-popup--light .gambit-popup__form .gform_wrapper input[type="number"],
.gambit-popup--light .gambit-popup__form .gform_wrapper textarea,
.gambit-popup--light .gambit-popup__form .gform_wrapper select {
	color: var(--deep-charcoal);
	background: #fff;
	border-color: rgba(26, 26, 30, 0.2);
}

.gambit-popup--light .gambit-popup__form .gform_wrapper input::placeholder,
.gambit-popup--light .gambit-popup__form .gform_wrapper textarea::placeholder {
	color: rgba(26, 26, 30, 0.35);
}

.gambit-popup--light .gambit-popup__form .gform_wrapper input:hover,
.gambit-popup--light .gambit-popup__form .gform_wrapper textarea:hover {
	border-color: rgba(26, 26, 30, 0.35);
}

.gambit-popup--light .gambit-popup__form .gform_wrapper input:focus-visible,
.gambit-popup--light .gambit-popup__form .gform_wrapper textarea:focus-visible {
	background: #fff;
	border-color: var(--clinical-teal);
	box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

/* ==========================================================================
   Style: Gradient Lead Capture — .gambit-popup--gradient
   Colored background behind padded product image, lead capture form.
   ========================================================================== */

.gambit-popup--gradient .gambit-popup__dialog {
	max-width: 900px;
	border-radius: 0;
	background-color: var(--deep-charcoal);
	border: 1px solid rgba(247, 245, 242, 0.08);
}

@media (min-width: 640px) {
	.gambit-popup--gradient .gambit-popup__dialog {
		grid-template-columns: 0.45fr 0.55fr;
	}
}

/* Image column — hero-style gradient on deep charcoal */
.gambit-popup--gradient .gambit-popup__image-col {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	max-height: 240px;
	overflow: hidden;
	background-color: #000;
	background-image: linear-gradient(180deg, #000000 0%, #2A0A08 100%);
}

@media (min-width: 640px) {
	.gambit-popup--gradient .gambit-popup__image-col {
		max-height: none;
		min-height: 440px;
		padding: 12px;
		border-right: 1px solid rgba(247, 245, 242, 0.06);
	}
}

/* Image card */
.gambit-popup--gradient .gambit-popup__image-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: none;
}

.gambit-popup--gradient .gambit-popup__image {
	position: relative;
	z-index: 1;
	object-fit: contain;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
}

.gambit-popup--gradient .gambit-popup__badge {
	z-index: 1;
	top: 25%;
	left: auto;
	right: 16px;
	width: auto;
	height: auto;
	padding: 8px 20px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.gambit-popup--gradient .gambit-popup__content {
	padding: 12px 24px 20px;
}

@media (min-width: 640px) {
	.gambit-popup--gradient .gambit-popup__content {
		padding: 44px 36px 40px;
		justify-content: center;
	}
}

.gambit-popup--gradient .gambit-popup__headline {
	font-size: clamp(28px, 5vw, 36px);
	line-height: 1.15;
	color: var(--warm-white);
	margin-bottom: 12px;
}

.gambit-popup--gradient .gambit-popup__subheadline {
	font-size: 17px;
	opacity: 0.6;
	color: var(--off-white);
	font-style: normal;
	margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 639px) {
	.gambit-popup--gradient .gambit-popup__dialog {
		grid-template-rows: auto auto;
		max-height: 90vh;
		overflow-y: auto;
	}

	.gambit-popup--gradient .gambit-popup__image-col {
		max-height: 150px;
		min-height: 110px;
		padding: 8px;
	}

	.gambit-popup--gradient .gambit-popup__content {
		padding: 10px 20px 16px;
	}

	.gambit-popup--gradient .gambit-popup__headline {
		font-size: 26px;
	}

	.gambit-popup--gradient .gambit-popup__subheadline {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.gambit-popup--gradient .gambit-popup__form .gfield {
		margin-bottom: 10px;
	}

	.gambit-popup--gradient .gambit-popup__form input[type="email"],
	.gambit-popup--gradient .gambit-popup__form input[type="text"],
	.gambit-popup--gradient .gambit-popup__form input[type="tel"] {
		padding: 10px 14px;
	}

	.gambit-popup--gradient .gambit-popup__consent {
		font-size: 9px;
	}

	.gambit-popup--gradient .gambit-popup__disclaimer {
		font-size: 9px;
	}
}

.gambit-popup--gradient .gambit-popup__dismiss {
	display: none;
}

.gambit-popup--gradient .gambit-popup__consent {
	font-family: var(--font-body);
	font-size: 11px;
	line-height: 1.5;
	color: var(--off-white);
	opacity: 0.4;
	margin-top: 4px;
	margin-bottom: 0;
}

.gambit-popup--gradient .gambit-popup__consent a {
	color: var(--off-white);
	opacity: 1;
	text-decoration: underline;
}

.gambit-popup--gradient .gambit-popup__close {
	left: 12px;
	right: auto;
	background: transparent;
	color: rgba(247, 245, 242, 0.4);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.gambit-popup--gradient .gambit-popup__close:hover {
	background: transparent;
	color: var(--warm-white);
}

.gambit-popup--gradient .gambit-popup__disclaimer {
	font-family: var(--font-body);
	font-size: 10px;
	color: rgba(247, 245, 242, 0.35);
	text-align: center;
	margin-top: 12px;
}
/* ==========================================================================
   Style: Clean Lead Capture — .gambit-popup--clean
   ========================================================================== */

.gambit-popup--clean .gambit-popup__dialog {
	max-width: 900px;
	border-radius: 0;
	background-color: var(--deep-charcoal);
	border: 1px solid rgba(247, 245, 242, 0.08);
}

@media (min-width: 640px) {
	.gambit-popup--clean .gambit-popup__dialog {
		grid-template-columns: 0.45fr 0.55fr;
	}
}

.gambit-popup--clean .gambit-popup__image-col {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	max-height: 240px;
}

@media (min-width: 640px) {
	.gambit-popup--clean .gambit-popup__image-col {
		max-height: none;
		min-height: 440px;
		padding: 56px 40px;
	}
}

.gambit-popup--clean .gambit-popup__image-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 32px 24px 24px;
	border-radius: 24px;
	background: var(--signal-red-8, rgba(196, 61, 47, 0.08));
}

.gambit-popup--clean .gambit-popup__image {
	position: relative;
	z-index: 1;
	object-fit: contain;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
}

.gambit-popup--clean .gambit-popup__disclaimer {
	font-family: var(--font-body);
	font-size: 10px;
	color: rgba(247, 245, 242, 0.35);
	text-align: center;
	margin-top: 12px;
}

.gambit-popup--clean .gambit-popup__content {
	padding: 12px 24px 20px;
}

@media (min-width: 640px) {
	.gambit-popup--clean .gambit-popup__content {
		padding: 44px 36px 40px;
		justify-content: center;
	}
}

.gambit-popup--clean .gambit-popup__headline {
	font-size: clamp(28px, 5vw, 36px);
	line-height: 1.15;
	color: var(--warm-white);
	margin-bottom: 12px;
}

.gambit-popup--clean .gambit-popup__subheadline {
	font-size: 17px;
	opacity: 0.6;
	color: var(--off-white);
	font-style: normal;
	margin-bottom: 24px;
}

.gambit-popup--clean .gambit-popup__close {
	left: 12px;
	right: auto;
	background: transparent;
	color: rgba(247, 245, 242, 0.4);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.gambit-popup--clean .gambit-popup__close:hover {
	background: transparent;
	color: var(--warm-white);
}

.gambit-popup--clean .gambit-popup__badge {
	display: none;
}

.gambit-popup--clean .gambit-popup__dismiss {
	display: none;
}

.gambit-popup--clean .gambit-popup__consent {
	font-family: var(--font-body);
	font-size: 11px;
	line-height: 1.5;
	color: var(--off-white);
	opacity: 0.4;
	margin-top: 4px;
	margin-bottom: 0;
}

.gambit-popup--clean .gambit-popup__consent a {
	color: var(--off-white);
	opacity: 1;
	text-decoration: underline;
}

@media (max-width: 639px) {
	.gambit-popup--clean .gambit-popup__dialog {
		grid-template-rows: auto auto;
		max-height: 90vh;
		overflow-y: auto;
	}

	.gambit-popup--clean .gambit-popup__image-col {
		max-height: 150px;
		min-height: 110px;
		padding: 16px 20px 0;
	}

	.gambit-popup--clean .gambit-popup__content {
		padding: 10px 20px 16px;
	}

	.gambit-popup--clean .gambit-popup__headline {
		font-size: 26px;
	}

	.gambit-popup--clean .gambit-popup__subheadline {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.gambit-popup--clean .gambit-popup__form .gfield {
		margin-bottom: 10px;
	}

	.gambit-popup--clean .gambit-popup__form input[type="email"],
	.gambit-popup--clean .gambit-popup__form input[type="text"],
	.gambit-popup--clean .gambit-popup__form input[type="tel"] {
		padding: 10px 14px;
	}

	.gambit-popup--clean .gambit-popup__consent {
		font-size: 9px;
	}

	.gambit-popup--clean .gambit-popup__disclaimer {
		font-size: 9px;
	}
}

/* Light mode overrides for Clean */
.gambit-popup--clean.gambit-popup--light .gambit-popup__dialog {
	background-color: #fff;
	border-color: rgba(0, 0, 0, 0.06);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__image-col {
	background-color: rgba(0, 0, 0, 0.02);
	border-right-color: rgba(0, 0, 0, 0.06);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__close {
	color: rgba(26, 26, 30, 0.3);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__close:hover {
	color: var(--deep-charcoal);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__disclaimer {
	color: rgba(26, 26, 30, 0.35);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__consent {
	color: rgba(26, 26, 30, 0.5);
}

.gambit-popup--clean.gambit-popup--light .gambit-popup__consent a {
	color: rgba(26, 26, 30, 0.6);
}
/* ==========================================================================
   Style: Showcase CTA — .gambit-popup--showcase
   Wide horizontal popup, image in card, pricing, two buttons. No form.
   ========================================================================== */

/* ---------- Dialog ---------- */
.gambit-popup--showcase .gambit-popup__dialog {
	max-width: 1520px;
	border-radius: var(--radius-card);
	background-color: var(--deep-charcoal);
	border: 1px solid rgba(247, 245, 242, 0.08);
}

/* Override base 640px two-column — showcase stays stacked until 700px */
@media (min-width: 640px) and (max-width: 699px) {
	.gambit-popup--showcase .gambit-popup__dialog {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 700px) {
	.gambit-popup--showcase .gambit-popup__dialog {
		grid-template-columns: 0.5fr 0.5fr;
		grid-template-rows: 1fr;
		min-height: 580px;
		max-height: 680px;
	}
}

/* ---------- Image column ---------- */
.gambit-popup--showcase .gambit-popup__image-col {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 24px;
	min-height: 220px;
}

@media (min-width: 700px) {
	.gambit-popup--showcase .gambit-popup__image-col {
		max-height: none;
		padding: 28px;
	}
}

/* Image card */
.gambit-popup--showcase .gambit-popup__image-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	align-self: stretch;
	padding: 28px 20px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(247, 245, 242, 0.06) 0%, rgba(196, 61, 47, 0.08) 100%);
}

.gambit-popup--showcase .gambit-popup__image {
	object-fit: contain;
	width: auto;
	max-width: 100%;
	flex: 1;
	min-height: 0;
}

/* Hide disclaimer and badge */
.gambit-popup--showcase .gambit-popup__disclaimer {
	display: none;
}

.gambit-popup--showcase .gambit-popup__badge {
	display: none;
}

/* ---------- Content ---------- */
.gambit-popup--showcase .gambit-popup__content {
	padding: 32px 28px 28px;
}

@media (min-width: 700px) {
	.gambit-popup--showcase .gambit-popup__content {
		padding: 56px 56px 48px;
		justify-content: center;
	}
}

/* Label pill */
.gambit-popup--showcase .gambit-popup__label {
	display: inline-block;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 4px;
	background-color: var(--clinical-teal);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
}

.gambit-popup--showcase .gambit-popup__headline {
	font-size: 34px;
	line-height: 1.18;
	color: var(--warm-white);
	margin-bottom: 14px;
}

.gambit-popup--showcase .gambit-popup__headline em {
	font-style: italic;
	font-family: var(--font-body);
	color: var(--signal-red);
}

.gambit-popup--showcase .gambit-popup__subheadline {
	display: none;
}

.gambit-popup--showcase .gambit-popup__body {
	font-size: 16px;
	line-height: 1.65;
	color: var(--off-white);
	opacity: 0.7;
	margin-bottom: 20px;
}

/* ---------- Price ---------- */
.gambit-popup--showcase .gambit-popup__price {
	font-size: 36px;
	margin: 0 0 32px;
	padding-top: 20px;
	border-top: 1px solid rgba(247, 245, 242, 0.1);
}

.gambit-popup--showcase .gambit-popup__price-prefix,
.gambit-popup--showcase .gambit-popup__price-suffix {
	display: inline;
	font-size: 15px;
	font-weight: 400;
	opacity: 0.6;
}

.gambit-popup--showcase .gambit-popup__price-amount {
	display: inline;
	font-weight: inherit;
}

/* ---------- Two buttons side by side ---------- */
.gambit-popup--showcase .gambit-popup__buttons {
	margin-bottom: 0;
}

.gambit-popup--showcase .gambit-popup__cta,
.gambit-popup--showcase .gambit-popup__cta-secondary {
	flex: 1;
	text-align: center;
	min-height: 52px;
	padding: 14px 28px;
	font-size: 16px;
	margin: 0;
	border: 2px solid transparent;
}

.gambit-popup--showcase .gambit-popup__cta {
	border-color: var(--signal-red);
}

.gambit-popup--showcase .gambit-popup__cta-secondary {
	border-color: var(--warm-white);
}

/* ---------- Close button ---------- */
.gambit-popup--showcase .gambit-popup__close {
	left: 12px;
	right: auto;
	background: transparent;
	color: rgba(247, 245, 242, 0.4);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.gambit-popup--showcase .gambit-popup__close:hover {
	background: transparent;
	color: var(--warm-white);
}

.gambit-popup--showcase .gambit-popup__dismiss {
	display: none;
}

.gambit-popup--showcase .gambit-popup__consent {
	display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
	.gambit-popup--showcase .gambit-popup__dialog {
		border-radius: 16px;
		grid-template-rows: auto auto;
		max-height: 90vh;
		overflow-y: auto;
	}

	.gambit-popup--showcase .gambit-popup__image-col {
		padding: 20px 20px 0;
	}

	.gambit-popup--showcase .gambit-popup__image-card {
		padding: 12px 12px 0;
	}

	.gambit-popup--showcase .gambit-popup__content {
		padding: 12px 24px 24px;
	}

	.gambit-popup--showcase .gambit-popup__headline {
		font-size: 22px;
	}

	.gambit-popup--showcase .gambit-popup__body {
		font-size: 13px;
		margin-bottom: 12px;
	}

	.gambit-popup--showcase .gambit-popup__price {
		font-size: 24px;
		margin-bottom: 16px;
	}

	.gambit-popup--showcase .gambit-popup__buttons {
		flex-direction: column;
	}
}

/* ---------- Showcase: light-mode overrides ---------- */
.gambit-popup--showcase.gambit-popup--light .gambit-popup__dialog {
	background-color: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__close {
	color: rgba(26, 26, 30, 0.45);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__close:hover {
	color: var(--deep-charcoal);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__headline {
	color: var(--deep-charcoal);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__body {
	color: rgba(26, 26, 30, 0.7);
	opacity: 1;
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__price {
	color: var(--deep-charcoal);
	border-top-color: rgba(26, 26, 30, 0.1);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__cta-secondary {
	border-color: var(--deep-charcoal);
	color: var(--deep-charcoal);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__cta-secondary:hover {
	background-color: var(--deep-charcoal);
	color: var(--warm-white);
}

.gambit-popup--showcase.gambit-popup--light .gambit-popup__image-card {
	background: linear-gradient(180deg, rgba(26, 26, 30, 0.04) 0%, rgba(196, 61, 47, 0.08) 100%);
}

/* ==========================================================================
   New Elements — Label, Price, Button Row
   ========================================================================== */

.gambit-popup__label {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--clinical-teal);
	margin-bottom: 12px;
}

.gambit-popup__price {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	color: var(--warm-white);
	margin: 16px 0 24px;
}

.gambit-popup--light .gambit-popup__price {
	color: var(--deep-charcoal);
}

.gambit-popup__buttons {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

@media (max-width: 639px) {
	.gambit-popup__buttons {
		flex-direction: column;
	}
}

.gambit-popup--light .gambit-popup__buttons .gambit-btn--outline {
	color: var(--deep-charcoal);
	border-color: var(--deep-charcoal);
}

.gambit-popup--light .gambit-popup__buttons .gambit-btn--outline:hover {
	background-color: var(--deep-charcoal);
	color: var(--warm-white);
}

/* ==========================================================================
   Style: Blog Lead Capture — .gambit-popup--blog
   Narrow, light, minimal popup for blog/content pages with email capture.
   ========================================================================== */

/* ---------- Dialog ---------- */
.gambit-popup--blog .gambit-popup__dialog {
	max-width: 680px;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
	.gambit-popup--blog .gambit-popup__dialog {
		grid-template-columns: 0.45fr 0.55fr;
		grid-template-rows: 1fr;
	}
}

/* ---------- Image column ---------- */
.gambit-popup--blog .gambit-popup__image-col {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	padding: 32px 24px;
	max-height: 260px;
}

@media (min-width: 640px) {
	.gambit-popup--blog .gambit-popup__image-col {
		max-height: none;
		min-height: 360px;
		padding: 40px 32px;
		border-radius: 16px 0 0 16px;
	}
}

/* Image card — no card styling, image floats clean */
.gambit-popup--blog .gambit-popup__image-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: none;
}

.gambit-popup--blog .gambit-popup__image {
	object-fit: contain;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
}

/* ---------- Hidden elements ---------- */
.gambit-popup--blog .gambit-popup__badge,
.gambit-popup--blog .gambit-popup__disclaimer,
.gambit-popup--blog .gambit-popup__dismiss,
.gambit-popup--blog .gambit-popup__label,
.gambit-popup--blog .gambit-popup__price,
.gambit-popup--blog .gambit-popup__subheadline,
.gambit-popup--blog .gambit-popup__consent,
.gambit-popup--blog .gambit-popup__cta-secondary {
	display: none;
}

/* ---------- Content ---------- */
.gambit-popup--blog .gambit-popup__content {
	padding: 28px 24px 24px;
}

@media (min-width: 640px) {
	.gambit-popup--blog .gambit-popup__content {
		padding: 40px 36px;
		justify-content: center;
	}
}

.gambit-popup--blog .gambit-popup__headline {
	font-size: clamp(36px, 6vw, 46px);
	line-height: 1.1;
	color: var(--deep-charcoal);
	margin-bottom: 12px;
}

.gambit-popup--blog .gambit-popup__body {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(26, 26, 30, 0.65);
	opacity: 1;
	margin-bottom: 20px;
}

/* ---------- Close button ---------- */
.gambit-popup--blog .gambit-popup__close {
	left: 12px;
	right: auto;
	background: transparent;
	color: rgba(26, 26, 30, 0.35);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.gambit-popup--blog .gambit-popup__close:hover {
	background: transparent;
	color: var(--deep-charcoal);
}

/* ---------- GF form — light inputs ---------- */
.gambit-popup--blog .gambit-popup__form .gform_wrapper .gfield_label {
	color: var(--deep-charcoal);
	opacity: 0.7;
}

.gambit-popup--blog .gambit-popup__form .gform_wrapper input[type="email"],
.gambit-popup--blog .gambit-popup__form .gform_wrapper input[type="text"],
.gambit-popup--blog .gambit-popup__form .gform_wrapper input[type="tel"] {
	color: var(--deep-charcoal);
	background: #fff;
	border: 1px solid rgba(26, 26, 30, 0.2);
	border-radius: 8px;
}

.gambit-popup--blog .gambit-popup__form .gform_wrapper input::placeholder {
	color: rgba(26, 26, 30, 0.35);
}

.gambit-popup--blog .gambit-popup__form .gform_wrapper input:hover {
	border-color: rgba(26, 26, 30, 0.35);
}

.gambit-popup--blog .gambit-popup__form .gform_wrapper input:focus-visible {
	background: #fff;
	border-color: var(--signal-red);
	box-shadow: 0 0 0 3px rgba(196, 61, 47, 0.15);
}

.gambit-popup--blog .gambit-popup__form .gform_wrapper .gform_confirmation_message {
	color: var(--clinical-teal);
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
	.gambit-popup--blog .gambit-popup__dialog {
		grid-template-rows: auto auto;
		max-height: 90vh;
		overflow-y: auto;
	}

	.gambit-popup--blog .gambit-popup__image-col {
		max-height: 300px;
		min-height: 240px;
		padding: 24px 20px;
		border-radius: 16px 16px 0 0;
	}

	.gambit-popup--blog .gambit-popup__content {
		padding: 16px 20px 20px;
	}

	.gambit-popup--blog .gambit-popup__headline {
		font-size: 28px;
	}

	.gambit-popup--blog .gambit-popup__form .gfield {
		margin-bottom: 10px;
	}

	.gambit-popup--blog .gambit-popup__form input[type="email"],
	.gambit-popup--blog .gambit-popup__form input[type="text"],
	.gambit-popup--blog .gambit-popup__form input[type="tel"] {
		padding: 10px 14px;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.gambit-popup,
	.gambit-popup__dialog {
		transition: none;
	}
}