/**
 * Contact cockpit — rail + session stream.
 * Scoped under .se-cp-cockpit. Uses globals .container / .btn / .eyebrow.
 */

/*
 * Genesis sets overflow-x:hidden on html/body, which breaks position:sticky.
 * Use clip so the Direct line rail can stick while scrolling the stream.
 */
html:has(.se-cp-cockpit),
html:has(.se-cp-cockpit) body,
body.page-template-templatescontact-page-php {
	overflow-x: clip !important;
}

.se-cp-cockpit.contact-cockpit {
	padding-block: var(--section-pad-industry, 120px);
	background:
		radial-gradient(ellipse 45% 50% at 0% 0%, rgba(139, 127, 212, 0.07), transparent 55%),
		#f7f6fb;
	color: #12111f;
	/* Do not set overflow hidden/clip here — it traps sticky. */
	overflow: visible;
	max-width: 100%;
	padding-top: 60px;
}

.se-cp-cockpit > .container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
	overflow: visible;
}

.se-cp-cockpit .contact-cockpit__inner {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
	gap: clamp(2rem, 4vw, 3.25rem);
	align-items: start;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.se-cp-cockpit .contact-rail {
	position: sticky;
	top: calc(var(--nav-h, 5rem) + 1.25rem);
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.5rem;
	border-radius: 20px;
	background: #6b62ac;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 24px 60px rgba(15, 10, 40, 0.35);
	min-width: 0;
	max-width: 100%;
	z-index: 2;
}

.admin-bar .se-cp-cockpit .contact-rail {
	top: calc(var(--nav-h, 5rem) + 1.25rem + 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .se-cp-cockpit .contact-rail {
		top: calc(var(--nav-h, 5rem) + 1.25rem + 46px);
	}
}

.se-cp-cockpit .contact-rail__eyebrow {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.se-cp-cockpit .contact-rail h2.contact-rail__title,
.se-cp-cockpit .contact-rail__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #ffffff;
}

.se-cp-cockpit .contact-rail__pulse {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
}

.se-cp-cockpit .contact-rail__pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
	animation: se-cp-cockpit-pulse 1.8s ease-out infinite;
	flex-shrink: 0;
}

@keyframes se-cp-cockpit-pulse {
	0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
	70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.se-cp-cockpit .contact-rail__list {
	display: grid;
	gap: 0.85rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.se-cp-cockpit .contact-rail__list a,
.se-cp-cockpit .contact-rail__list address,
.se-cp-cockpit .contact-rail__list > li > span:not(.contact-rail__label) {
	font-style: normal;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.45;
	margin-bottom: 0;
}

.se-cp-cockpit .contact-rail__list a,
.se-cp-cockpit .contact-rail__list address,
.se-cp-cockpit .contact-rail__list > li > span:not(.contact-rail__label) {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.se-cp-cockpit .contact-rail__list a {
	transition: color 0.2s ease, opacity 0.2s ease;
	align-items: flex-start;
}

.se-cp-cockpit .contact-rail__list a:hover {
	color: #ffffff;
	opacity: 0.88;
}

.se-cp-cockpit .contact-rail__locations {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.se-cp-cockpit .contact-rail__locations a,
.se-cp-cockpit .contact-rail__location-static {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #ffffff;
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration: none;
}

.se-cp-cockpit .contact-rail__locations a span {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.se-cp-cockpit .contact-rail__locations a:hover span {
	text-decoration-color: var(--color-primary, #6b62ac);
}

.se-cp-cockpit .contact-rail__list li span br {
	display: none;
}

.se-cp-cockpit .contact-rail__list .icon,
.se-cp-cockpit .contact-rail__nav-icon .icon {
	flex-shrink: 0;
	color: #ffffff !important;
	opacity: 0.95;
	filter: brightness(0) invert(1);
}

.se-cp-cockpit .contact-rail__list .icon *,
.se-cp-cockpit .contact-rail__nav-icon .icon * {
	stroke: currentColor !important;
	color: currentColor !important;
}

.se-cp-cockpit .contact-rail__list a .icon {
	margin-top: 3px;
}

.se-cp-cockpit .contact-rail__list .icon {
	margin-top: 0.1em;
}

.se-cp-cockpit .contact-rail__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 1);
}

.se-cp-cockpit .contact-rail__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.se-cp-cockpit .contact-rail__nav-link {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	font-size: 0.8rem;
	line-height: 1.35;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	padding: 0.55rem 0.6rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.se-cp-cockpit .contact-rail__nav-link:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.se-cp-cockpit .contact-rail__nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.05rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.se-cp-cockpit .contact-rail__nav-icon .icon {
	display: block;
	width: 14px;
	height: 14px;
	margin-top: 0;
}

.se-cp-cockpit .contact-rail__nav-label {
	min-width: 0;
	flex: 1;
}

.se-cp-cockpit .contact-rail__cta {
	margin-top: 0.25rem;
}

.se-cp-cockpit .contact-rail__cta [data-magnetic] {
	display: block;
	width: 100%;
	will-change: transform;
}

.se-cp-cockpit .contact-rail__cta .btn {
	width: 100%;
	justify-content: center;
}

/* White CTA so it stays visible on brand-purple rail */
.se-cp-cockpit .contact-rail__cta .btn-primary {
	background: #ffffff;
	color: var(--color-primary);
	border-color: #ffffff;
	font-weight: 500;
	text-transform: capitalize;
}

.se-cp-cockpit .contact-rail__cta .btn-primary:hover {
	background: #f4f3f8;
	color: var(--color-primary-deep, #2b2868);
	border-color: #f4f3f8;
}

.se-cp-cockpit .contact-rail__cta .btn-primary .icon {
	color: currentColor;
}

.se-cp-cockpit .contact-stream {
	display: grid;
	gap: clamp(1.75rem, 4vw, 2.5rem);
	min-width: 0;
	max-width: 100%;
}

.se-cp-cockpit .contact-stream__intro .eyebrow {
	color: var(--accent, #8b7fd4);
	margin-bottom: 10px;
}

.se-cp-cockpit .contact-stream__intro h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 3.2vw, 2.35rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.se-cp-cockpit .contact-stream__intro p:not(.eyebrow) {
	margin: 0;
	color: rgba(18, 17, 31, 0.62);
	line-height: 1.55;
	max-width: 36rem;
}

.se-cp-cockpit .contact-steps {
	display: grid;
	gap: 1rem;
}

.se-cp-cockpit .contact-step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.15rem 1.25rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(18, 17, 31, 0.07);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	min-width: 0;
	max-width: 100%;
}

.se-cp-cockpit .contact-step:hover {
	transform: translateY(-2px);
	border-color: rgba(107, 98, 172, 0.35);
	box-shadow: 0 12px 28px rgba(15, 15, 37, 0.06);
}

.se-cp-cockpit .contact-step__num {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #ffffff;
	background: #6b62ac;
}

.se-cp-cockpit .contact-step h3 {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.se-cp-cockpit .contact-step p {
	margin: 0;
	color: rgba(18, 17, 31, 0.62);
	font-size: 0.925rem;
	line-height: 1.5;
}

.se-cp-cockpit .contact-who {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.85rem;
	margin-top: 1.25rem;
	min-width: 0;
	max-width: 100%;
}

.se-cp-cockpit .contact-who__card {
	padding: 1.1rem 1.15rem;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid rgba(18, 17, 31, 0.07);
	min-width: 0;
	max-width: 100%;
}

.se-cp-cockpit .contact-who__card strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
}

.se-cp-cockpit .contact-who__card span {
	font-size: 0.85rem;
	color: rgba(18, 17, 31, 0.58);
	line-height: 1.45;
}

.se-cp-cockpit .contact-photo {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e8e6f2;
}

.se-cp-cockpit .contact-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 960px) {
	.se-cp-cockpit .contact-cockpit__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.se-cp-cockpit .contact-rail {
		position: static;
	}

	.se-cp-cockpit .contact-rail__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.se-cp-cockpit .contact-who {
		grid-template-columns: 1fr;
	}

	.se-cp-cockpit.contact-cockpit {
		padding-top: 110px;
	}
	.page-contact .se-cp-cockpit.contact-cockpit {
		padding-top: 45px;
	}
}

@media (max-width: 768px) {
	.se-cp-cockpit .contact-rail__cta [data-magnetic] {
		transform: none !important;
	}
}

@media (max-width: 640px) {
	.se-cp-cockpit.contact-cockpit {
		padding-block: 3.5rem;
		padding-top: 110px;
	}

	.se-cp-cockpit .contact-rail {
		padding: 1.25rem;
	}

	.se-cp-cockpit .contact-rail__nav {
		grid-template-columns: 1fr 1fr;
		gap: 0.4rem;
	}

	.se-cp-cockpit .contact-rail__nav-link {
		font-size: 12px;
		padding: 0.65rem 0.75rem;
		align-items: center;
	}

	.se-cp-cockpit .contact-step {
		padding: 1rem;
		gap: 0.85rem;
	}

	.se-cp-cockpit .contact-photo {
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-cp-cockpit .contact-rail__pulse-dot {
		animation: none;
	}

	.se-cp-cockpit .contact-rail__cta [data-magnetic] {
		transform: none !important;
	}
}
