/**
 * GDC Exit-Intent Modal — Bottom Sheet Content Styles
 *
 * Layers onto the base bottom-sheet component (bottom-sheet.css) with
 * modal-specific interior: headline lead, benefit list, optional form
 * fields, and two-button action row.
 *
 * Scope is .gdc-bottom-sheet--exit-intent to avoid bleed into the
 * calculator or any other bottom-sheet surface.
 *
 * @package GDC
 * @since   0.12.0
 */

/* ==========================================================
   SHEET-LEVEL OVERRIDES
   ========================================================== */

.gdc-bottom-sheet--exit-intent {
	max-width: 480px;
}

@media (min-width: 768px) {
	.gdc-bottom-sheet--exit-intent {
		max-width: 400px;
	}
}

/* ==========================================================
   CONTENT LAYOUT
   ========================================================== */

.gdc-exit-intent {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--gdc-text-primary);
}

.gdc-exit-intent__lead {
	margin: 0;

	font-family: var(--gdc-font-serif, 'Cormorant Garamond', serif);
	font-size: 1.375rem;
	line-height: 1.3;
	color: var(--gdc-text-primary);
}

/* ==========================================================
   BENEFITS LIST — checkmark bullets
   ========================================================== */

.gdc-exit-intent__benefits {
	margin: 0;
	padding: 0;
	list-style: none;

	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gdc-exit-intent__benefits li {
	position: relative;
	padding-left: 28px;

	font-family: var(--gdc-font-sans);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--gdc-text-secondary);
}

.gdc-exit-intent__benefits li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 4px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234DD4C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* ==========================================================
   FORM FIELDS — optional divers capture
   ========================================================== */

.gdc-exit-intent__form {
	display: flex;
	flex-direction: column;
	gap: 12px;

	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
}

.gdc-exit-intent__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gdc-exit-intent__field-label {
	font-family: var(--gdc-font-sans);
	font-size: 0.875rem;
	color: var(--gdc-text-secondary);
}

.gdc-exit-intent__field select {
	min-height: 44px;
	padding: 0 32px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: var(--gdc-bg-abyss);
	color: var(--gdc-text-primary);

	font-family: var(--gdc-font-sans);
	font-size: 0.9375rem;

	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
}

.gdc-exit-intent__field select:focus-visible {
	outline: 2px solid var(--gdc-accent-cta);
	outline-offset: 2px;
}

.gdc-exit-intent__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;

	font-family: var(--gdc-font-sans);
	font-size: 0.875rem;
	color: var(--gdc-text-secondary);
	cursor: pointer;
}

.gdc-exit-intent__toggle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--gdc-accent-cta);
	cursor: pointer;
}

/* ==========================================================
   ACTIONS — stacked primary + ghost
   ========================================================== */

.gdc-exit-intent__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gdc-exit-intent__actions .gdc-btn {
	width: 100%;
	min-height: 56px;
}

@media (min-width: 480px) {
	.gdc-exit-intent__actions {
		flex-direction: row-reverse;
	}

	.gdc-exit-intent__actions .gdc-btn {
		flex: 1 1 0;
	}
}

/* ==========================================================
   FOOTNOTE
   ========================================================== */

.gdc-exit-intent__footnote {
	margin: 0;

	font-family: var(--gdc-font-sans);
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--gdc-text-muted);
	text-align: center;
}
