/* ==========================================================================
   SkyBridge Infotech — Case Studies
   Scoped stylesheet. Every selector is namespaced `cs-` so this file can be
   dropped into the existing site without touching style.css.
   Built from Figma: Sky_Website / "Case study_Landing page" (node 8766:7)
   ========================================================================== */

.cs-page {
	--cs-primary: #0189de;
	--cs-primary-light: #3eb5ff;
	--cs-pill-bg: #d0edff;

	--cs-ink: #0a0c10;
	--cs-heading: #0f172a;
	--cs-body: #6b7394;
	--cs-sub: #475569;

	--cs-hero-bg: #000308;
	--cs-hero-body: #808a98;
	--cs-stat-bg: #000f24;
	--cs-hairline: rgba(255, 255, 255, 0.09);

	--cs-card-border: #bbbbbb;
	--cs-card-radius: 12px;
	--cs-img-placeholder: #e4e6e3;
	--cs-tint: #f1f9ff;

	--cs-gutter: 80px;
	--cs-card-w: 403px;
	--cs-gap: 32px;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cs-page *,
.cs-page *::before,
.cs-page *::after {
	box-sizing: border-box;
}

.cs-shell {
	width: 100%;
	padding-left: var(--cs-gutter);
	padding-right: var(--cs-gutter);
	padding-inline: var(--cs-gutter);
}

/* --------------------------------------------------------------------------
   Shared pill button
   -------------------------------------------------------------------------- */

.cs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 3px 3px 20px;
	border: 1px solid transparent;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cs-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.cs-btn:focus-visible {
	outline: 3px solid var(--cs-primary-light);
	outline-offset: 3px;
}

.cs-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.cs-btn__icon svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
	transform: rotate(-45deg); /* feather arrow-right -> points up-right */
}

/* Primary: solid blue body, white icon disc */
.cs-btn--primary {
	background: var(--cs-primary);
	color: #fff;
	padding-left: 40px;
}

.cs-btn--primary:hover {
	color: #fff;
	box-shadow: 0 10px 26px rgba(1, 137, 222, 0.35);
}

.cs-btn--primary .cs-btn__icon {
	background: #fff;
	color: var(--cs-primary);
}

/* Ghost: white body, blue icon disc, arrow points down (scroll cue) */
.cs-btn--ghost {
	background: #fff;
	border-color: #fff;
	color: var(--cs-primary);
}

.cs-btn--ghost:hover {
	color: var(--cs-primary);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.cs-btn--ghost .cs-btn__icon {
	background: var(--cs-primary);
	color: #fff;
}

.cs-btn--ghost .cs-btn__icon svg {
	transform: rotate(90deg); /* points down */
}

/* Card CTA: pale blue body, white icon disc */
.cs-btn--card {
	background: var(--cs-pill-bg);
	border-color: #fff;
	color: var(--cs-primary);
}

.cs-btn--card:hover {
	color: var(--cs-primary);
	background: #bde5ff;
}

.cs-btn--card .cs-btn__icon {
	background: #fff;
	color: var(--cs-primary);
}

/* Outline: white body, blue border */
.cs-btn--outline {
	background: #fff;
	border-color: var(--cs-primary);
	color: var(--cs-primary);
}

.cs-btn--outline:hover {
	color: var(--cs-primary);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.cs-btn--outline .cs-btn__icon {
	background: var(--cs-pill-bg);
	color: var(--cs-primary);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.cs-hero {
	position: relative;
	background-color: var(--cs-hero-bg);
	overflow: hidden;
}

.cs-hero__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.cs-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 601px;
	padding-top: 72px; padding-bottom: 72px; padding-block: 72px;
}

.cs-hero__copy {
	position: relative;
	z-index: 3;
	max-width: 663px;
}

.cs-hero__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 56px;
	font-weight: 800;
	line-height: 1.175;
	letter-spacing: -1.68px;
}

.cs-hero__title span {
	color: var(--cs-primary-light);
}

.cs-hero__lede {
	margin: 0 0 32px;
	max-width: 646px;
	color: var(--cs-hero-body);
	font-size: 16px;
	line-height: 27.2px;
}

.cs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Cut-out photograph, bottom-aligned against the stat strip */
.cs-hero__art {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 40.3%;
	z-index: 1;
	pointer-events: none;
}

.cs-hero__art img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: bottom right;
}

/* -- Decorative floating data chips ------------------------------------- */

.cs-chip {
	position: absolute;
	z-index: 4;
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.cs-chip--growth {
	left: 50%;
	top: 6%;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 16px 18px;
	background: #fff;
}

.cs-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--cs-primary);
	color: #fff;
}

.cs-chip__badge svg {
	width: 22px;
	height: 22px;
}

.cs-chip__title {
	margin: 0 0 4px;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.cs-chip__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #6b7394;
	white-space: nowrap;
}

.cs-chip__meta .fa-star {
	color: #f5a623;
}

.cs-chip__meta strong {
	color: #0f172a;
	font-weight: 600;
}

.cs-chip--revenue {
	right: 4.44%; /* 1440 - (1190 + 186) */
	top: 28%;
	padding: 16px 18px;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cs-chip--revenue .cs-chip__label {
	margin: 0 0 6px;
	color: #6b7394;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.cs-chip--revenue .cs-chip__value {
	margin: 0;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.cs-chip--revenue svg {
	width: 30px;
	height: 30px;
	color: var(--cs-primary);
}

.cs-chip--visitors {
	right: 1.39%; /* 1440 - (1232 + 188) */
	top: 83%;
	width: 188px;
	padding: 14px 12px 12px;
	background: #0a1b2e;
	color: #fff;
}

.cs-chip--visitors .cs-chip__label {
	margin: 0 0 4px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
}

.cs-chip__figure {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.cs-chip__figure b {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.cs-chip__figure em {
	font-size: 11px;
	font-style: normal;
	color: #34d399;
}

.cs-spark {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 5px;
	height: 56px;
}

.cs-spark__bar {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	gap: 4px;
}

.cs-spark__bar i {
	display: block;
	width: 100%;
	border-radius: 3px;
	background: var(--cs-primary-light);
}

.cs-spark__bar span {
	font-size: 9px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.6);
}

.cs-spark__bar--peak i {
	background: var(--cs-primary);
}

/* -- Stat strip ---------------------------------------------------------- */

.cs-stats {
	position: relative;
	z-index: 3;
	background: var(--cs-stat-bg);
	border-top: 1px solid var(--cs-hairline);
}

.cs-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	margin-inline: auto;
	padding-left: 100px;
	padding-right: 100px;
	padding-inline: 100px;
}

.cs-stat {
	padding: 27px 24px 22px;
	border-right: 1px solid var(--cs-hairline);
}

.cs-stat:last-child {
	border-right: 0;
}

.cs-stat__value {
	margin: 0 0 7px;
	color: var(--cs-primary-light);
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.39px;
}

.cs-stat__label {
	margin: 0;
	color: #fff;
	font-size: 16px;
	line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Category sections
   -------------------------------------------------------------------------- */

.cs-section {
	padding-top: 80px; padding-bottom: 80px; padding-block: 80px;
	background: #fff;
}

.cs-section--tint {
	background: var(--cs-tint);
}

.cs-section__head {
	max-width: 1064px;
	margin-bottom: 32px;
}

.cs-section__title {
	margin: 0 0 8px;
	color: var(--cs-heading);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.72px;
}

.cs-section__intro {
	margin: 0;
	color: var(--cs-sub);
	font-size: 18px;
	line-height: 25.5px;
}

/* Horizontally scrollable card rail — matches the Figma, where a 4-card row
   overflows the 1440px frame and the last card peeks in from the right. */
.cs-rail {
	display: flex;
	gap: var(--cs-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-left: var(--cs-gutter);
	padding-left: var(--cs-gutter);
	padding-right: var(--cs-gutter);
	padding-inline: var(--cs-gutter);
	padding-bottom: 8px;
	margin-left: calc(var(--cs-gutter) * -1);
	margin-right: calc(var(--cs-gutter) * -1);
	margin-inline: calc(var(--cs-gutter) * -1);
	scrollbar-width: thin;
	scrollbar-color: rgba(1, 137, 222, 0.35) transparent;
}

.cs-rail::-webkit-scrollbar {
	height: 6px;
}

.cs-rail::-webkit-scrollbar-track {
	background: transparent;
}

.cs-rail::-webkit-scrollbar-thumb {
	background: rgba(1, 137, 222, 0.3);
	border-radius: 999px;
}

.cs-rail:hover::-webkit-scrollbar-thumb {
	background: rgba(1, 137, 222, 0.55);
}

.cs-rail.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.cs-rail.is-dragging a {
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Case study card
   -------------------------------------------------------------------------- */

.cs-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 var(--cs-card-w);
	width: var(--cs-card-w);
	min-height: 626px;
	background: #fff;
	border: 1px solid var(--cs-card-border);
	border-radius: var(--cs-card-radius);
	overflow: hidden;
	scroll-snap-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.cs-card__media {
	flex: 0 0 300px;
	height: 300px;
	background: var(--cs-img-placeholder);
	overflow: hidden;
}

.cs-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cs-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 23px 24px;
}

.cs-card__title {
	margin: 0 0 12px;
	color: var(--cs-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 32px;
	letter-spacing: -1px;
}

.cs-card__text {
	margin: 0 0 24px;
	max-width: 343px;
	color: var(--cs-body);
	font-size: 16px;
	line-height: 26px;
}

.cs-card__foot {
	margin-top: auto;
}

/* --------------------------------------------------------------------------
   Summary + conversion band
   -------------------------------------------------------------------------- */

.cs-outro {
	position: relative;
	background: #000509;
	background-image: radial-gradient(
		120% 148% at 100% 50%,
		#012547 0%,
		#011324 50%,
		#000912 75%,
		#000509 87.5%,
		#000000 100%
	);
	color: #fff;
	padding-top: 100px; padding-bottom: 100px; padding-block: 100px;
}

.cs-outro__grid {
	display: grid;
	grid-template-columns: minmax(0, 631px) minmax(0, 509px);
	gap: 64px;
	align-items: start;
	max-width: 1360px;
	margin-left: auto;
	margin-right: auto;
	margin-inline: auto;
}

.cs-outro__title {
	margin: 0 0 24px;
	font-size: 41px;
	font-weight: 900;
	line-height: 46px;
	letter-spacing: -1.62px;
}

.cs-outro__body p {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 16px;
	line-height: 21.4px;
}

.cs-outro__body p:last-child {
	margin-bottom: 0;
}

.cs-cta {
	padding-top: 37px;
}

.cs-cta__eyebrow {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 16px;
	font-weight: 700;
	line-height: 19px;
	letter-spacing: 2.16px;
	text-transform: uppercase;
}

.cs-cta__title {
	margin: 0 0 14px;
	font-size: 41px;
	font-weight: 900;
	line-height: 46px;
	letter-spacing: -1.62px;
}

.cs-cta__text {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 16px;
	line-height: 29.4px;
}

.cs-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large desktop and down — shrink the page gutter */
@media (max-width: 1399px) {
	.cs-page {
		--cs-gutter: 48px;
	}

	.cs-stats__grid {
		padding-left: 48px;
		padding-right: 48px;
		padding-inline: 48px;
	}
}

/* Below 1200px the decorative hero chips have nowhere safe to sit */
@media (max-width: 1199px) {
	.cs-chip {
		display: none;
	}

	.cs-hero__title {
		font-size: 46px;
		letter-spacing: -1.2px;
	}

	.cs-section__title {
		font-size: 40px;
	}

	.cs-outro__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.cs-cta {
		padding-top: 0;
	}
}

/* Tablet — hero art is dropped, copy goes full width */
@media (max-width: 991px) {
	.cs-page {
		--cs-gutter: 32px;
		--cs-card-w: 360px;
	}

	.cs-hero__art {
		display: none;
	}

	.cs-hero__inner {
		min-height: 0;
		padding-top: 64px; padding-bottom: 64px; padding-block: 64px;
	}

	.cs-hero__copy {
		max-width: 100%;
	}

	.cs-hero__title {
		font-size: 40px;
	}

	.cs-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-left: 32px;
		padding-right: 32px;
		padding-inline: 32px;
	}

	.cs-stat:nth-child(2n) {
		border-right: 0;
	}

	.cs-stat:nth-child(-n + 2) {
		border-bottom: 1px solid var(--cs-hairline);
	}

	.cs-section {
		padding-top: 64px; padding-bottom: 64px; padding-block: 64px;
	}

	.cs-section__title {
		font-size: 34px;
		letter-spacing: -0.5px;
	}

	.cs-section__intro {
		font-size: 17px;
	}

	.cs-outro {
		padding-top: 72px; padding-bottom: 72px; padding-block: 72px;
	}

	.cs-outro__title,
	.cs-cta__title {
		font-size: 34px;
		line-height: 40px;
		letter-spacing: -1px;
	}
}

/* Phone */
@media (max-width: 767px) {
	.cs-page {
		--cs-gutter: 20px;
		--cs-gap: 16px;
		--cs-card-w: 300px;
	}

	.cs-hero__inner {
		padding-top: 48px; padding-bottom: 48px; padding-block: 48px;
	}

	.cs-hero__title {
		font-size: 32px;
		line-height: 1.2;
		letter-spacing: -0.8px;
	}

	.cs-hero__lede {
		font-size: 15px;
		line-height: 25px;
		margin-bottom: 24px;
	}

	.cs-hero__actions .cs-btn {
		width: 100%;
		justify-content: space-between;
	}

	.cs-stats__grid {
		padding-left: 20px;
		padding-right: 20px;
		padding-inline: 20px;
	}

	.cs-stat {
		padding: 20px 16px;
	}

	.cs-stat__value {
		font-size: 26px;
	}

	.cs-stat__label {
		font-size: 14px;
	}

	.cs-section {
		padding-top: 48px; padding-bottom: 48px; padding-block: 48px;
	}

	.cs-section__head {
		margin-bottom: 24px;
	}

	.cs-section__title {
		font-size: 28px;
	}

	.cs-section__intro {
		font-size: 16px;
		line-height: 24px;
	}

	.cs-card {
		min-height: 0;
	}

	.cs-card__media {
		flex-basis: 220px;
		height: 220px;
	}

	.cs-card__title {
		font-size: 21px;
		line-height: 28px;
		letter-spacing: -0.6px;
	}

	.cs-card__text {
		font-size: 15px;
		line-height: 24px;
		margin-bottom: 20px;
	}

	.cs-outro {
		padding-top: 56px; padding-bottom: 56px; padding-block: 56px;
	}

	.cs-outro__title,
	.cs-cta__title {
		font-size: 28px;
		line-height: 34px;
	}

	.cs-cta__eyebrow {
		font-size: 13px;
		letter-spacing: 1.6px;
	}

	.cs-cta__actions .cs-btn {
		width: 100%;
		justify-content: space-between;
	}
}

/* Very small phones */
@media (max-width: 380px) {
	.cs-stats__grid {
		grid-template-columns: 1fr;
	}

	.cs-stat {
		border-right: 0;
		border-bottom: 1px solid var(--cs-hairline);
	}

	.cs-stat:last-child {
		border-bottom: 0;
	}
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.cs-page *,
	.cs-page *::before,
	.cs-page *::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Gated case-study access modal
   Figma: "1_AI_CRM Case study form UI UX Design_Light"
   ========================================================================== */

.cs-modal[hidden] {
	display: none;
}

.cs-modal {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cs-modal__scrim {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: cs-fade 0.18s ease both;
}

.cs-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 756px;
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(2, 20, 38, 0.35);
	animation: cs-pop 0.2s ease both;
}

@keyframes cs-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes cs-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.985); }
	to { opacity: 1; transform: none; }
}

.cs-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: #fff;
	color: #0f172a;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(2, 20, 38, 0.28);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.cs-modal__close:hover {
	transform: scale(1.08);
}

.cs-modal__close:focus-visible {
	outline: 3px solid var(--cs-primary-light);
	outline-offset: 2px;
}

.cs-modal__close svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.5;
}

.cs-modal__grid {
	display: grid;
	grid-template-columns: 325px minmax(0, 1fr);
	max-height: calc(100vh - 48px);
	border-radius: 16px;
	overflow: hidden;
}

/* -- Left: pitch panel -------------------------------------------------- */

.cs-modal__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 34px 28px;
	background:
		radial-gradient(120% 90% at 0% 0%, #dff1fb 0%, rgba(223, 241, 251, 0) 60%),
		radial-gradient(120% 90% at 100% 100%, #fbe4ee 0%, rgba(251, 228, 238, 0) 62%),
		linear-gradient(160deg, #eaf6fd 0%, #f6f0fb 52%, #fdeef4 100%);
	overflow: hidden;
}

.cs-modal__greet {
	margin: 0 0 22px;
	color: var(--cs-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.3px;
}

.cs-modal__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(1, 137, 222, 0.25);
	border-radius: 999px;
	color: var(--cs-primary);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.cs-modal__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cs-primary);
}

.cs-modal__pitch {
	margin: 0 0 10px;
	color: var(--cs-heading);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.35px;
}

.cs-modal__pitch b {
	color: var(--cs-primary);
	font-weight: 700;
}

.cs-modal__pitchsub {
	margin: 0;
	color: #5b6b80;
	font-size: 13.5px;
	line-height: 1.55;
}

/* Decorative ground. Replace with the Figma illustration when exported —
   see new/img/case-studies/README-assets.txt */
.cs-modal__art {
	position: relative;
	flex: 1 1 auto;
	min-height: 120px;
	margin-top: 20px;
}

.cs-modal__art::before,
.cs-modal__art::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(24px);
	opacity: 0.55;
}

.cs-modal__art::before {
	left: -10%;
	bottom: -18%;
	width: 62%;
	padding-top: 62%;
	background: #bfe3fa;
}

.cs-modal__art::after {
	right: -8%;
	bottom: 6%;
	width: 48%;
	padding-top: 48%;
	background: #f3cfe2;
}

.cs-modal__art img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom center;
}

/* -- Right: form panel --------------------------------------------------- */

.cs-modal__pane {
	padding: 30px 30px 26px;
	background: linear-gradient(170deg, #ffffff 0%, #fdfbfc 55%, #fdf6f9 100%);
	overflow-y: auto;
}

.cs-modal__eyebrow {
	margin: 0 0 6px;
	color: var(--cs-primary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.cs-modal__title {
	margin: 0 0 8px;
	color: var(--cs-heading);
	font-size: 25px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.6px;
}

.cs-modal__intro {
	margin: 0 0 20px;
	color: #5b6b80;
	font-size: 13.5px;
	line-height: 1.55;
}

/* -- Fields -------------------------------------------------------------- */

.cs-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 14px;
	margin-bottom: 18px;
}

.cs-field {
	position: relative;
}

.cs-field--wide {
	grid-column: 1 / -1;
}

.cs-field > label {
	position: absolute;
	top: -7px;
	left: 11px;
	z-index: 1;
	padding: 0 5px;
	background: #fff;
	color: #64748b;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1;
	pointer-events: none;
}

.cs-field > label .req {
	color: var(--cs-primary);
}

.cs-field:focus-within > label {
	color: var(--cs-primary);
}

.cs-field input,
.cs-field select,
.cs-field textarea {
	width: 100%;
	padding: 13px 14px;
	background: #fff;
	border: 1px solid #cfd9e4;
	border-radius: 8px;
	color: var(--cs-heading);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.3;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.cs-field textarea {
	min-height: 78px;
	resize: vertical;
}

.cs-field input::placeholder,
.cs-field textarea::placeholder {
	color: #9aa8b8;
}

.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
	outline: none;
	border-color: var(--cs-primary);
	box-shadow: 0 0 0 3px rgba(1, 137, 222, 0.15);
}

.cs-field.is-invalid input,
.cs-field.is-invalid select,
.cs-field.is-invalid textarea {
	border-color: #dc2626;
}

.cs-field.is-invalid input:focus,
.cs-field.is-invalid textarea:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.cs-field__error {
	display: none;
	margin: 5px 0 0;
	color: #dc2626;
	font-size: 11.5px;
	line-height: 1.3;
}

.cs-field.is-invalid .cs-field__error {
	display: block;
}

/* Honeypot — never shown, never announced */
.cs-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* -- Submit -------------------------------------------------------------- */

.cs-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	background: var(--cs-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-submit:hover:not(:disabled) {
	background: #0176be;
	box-shadow: 0 8px 22px rgba(1, 137, 222, 0.32);
}

.cs-submit:focus-visible {
	outline: 3px solid var(--cs-primary-light);
	outline-offset: 2px;
}

.cs-submit:disabled {
	opacity: 0.62;
	cursor: not-allowed;
}

.cs-submit svg {
	width: 15px;
	height: 15px;
	stroke-width: 2.5;
	transform: rotate(-45deg);
}

.cs-submit__loader {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cs-spin 0.7s linear infinite;
}

.cs-submit.is-busy .cs-submit__loader {
	display: block;
}

.cs-submit.is-busy svg {
	display: none;
}

@keyframes cs-spin {
	to { transform: rotate(360deg); }
}

.cs-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: #6b7a8d;
	font-size: 11.5px;
}

.cs-trust svg {
	width: 13px;
	height: 13px;
	color: #16a34a;
}

.cs-formnote {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.cs-formnote--error {
	color: #dc2626;
}

/* -- Success state ------------------------------------------------------- */

.cs-done {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 30px;
	text-align: center;
}

.cs-modal.is-done .cs-done {
	display: flex;
}

.cs-modal.is-done .cs-modal__form-wrap {
	display: none;
}

.cs-done__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	background: #dcfce7;
	border-radius: 50%;
	color: #16a34a;
}

.cs-done__tick svg {
	width: 26px;
	height: 26px;
	stroke-width: 2.5;
}

.cs-done h3 {
	margin: 0 0 8px;
	color: var(--cs-heading);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.4px;
}

.cs-done p {
	margin: 0;
	color: #5b6b80;
	font-size: 14px;
	line-height: 1.55;
}

/* -- Modal responsive ---------------------------------------------------- */

@media (max-width: 767px) {
	.cs-modal {
		padding: 14px;
	}

	.cs-modal__dialog {
		max-height: calc(100vh - 28px);
	}

	.cs-modal__grid {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 28px);
		overflow-y: auto;
	}

	/* Collapse the pitch panel to a compact header on phones */
	.cs-modal__aside {
		padding: 22px 20px 18px;
	}

	.cs-modal__greet {
		margin-bottom: 12px;
		font-size: 17px;
	}

	.cs-modal__pitch {
		font-size: 17px;
	}

	.cs-modal__art {
		display: none;
	}

	.cs-modal__pane {
		padding: 22px 20px 20px;
		overflow: visible;
	}

	.cs-modal__title {
		font-size: 21px;
	}

	.cs-form__row {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.cs-modal__close {
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 400px) {
	.cs-modal {
		padding: 0;
	}

	.cs-modal__dialog {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.cs-modal__grid {
		max-height: 100vh;
		border-radius: 0;
	}
}

/* Locks background scroll while the modal is open */
body.cs-modal-open {
	overflow: hidden;
}

/* Old-browser fallback: min() support (Chrome < 79) keeps the default width above. */
@supports (width: min(1px, 2px)) {
	@media (max-width: 767px) {
		.cs-page { --cs-card-w: min(84vw, 340px); }
	}
}
