/**
 * TactNexa — Premium Contact Page
 *
 * Theme: TactNexa Child / Blocksy
 *
 * Presentation only.
 *
 * Desktop:
 * - Support information on the left
 * - Contact form on the right
 *
 * Mobile:
 * - Support information first
 * - Contact form second
 *
 * Preserves Contact Form 7 submission,
 * validation, email delivery and spam protection.
 */


/* =========================================================
   Design Tokens
   ========================================================= */

.tnx-contact {
	--tnx-contact-navy: #031126;
	--tnx-contact-ink: #061a36;
	--tnx-contact-blue: #1677ff;
	--tnx-contact-cyan: #52d7ff;
	--tnx-contact-muted: #60758c;
	--tnx-contact-border: #dfe9f5;

	box-sizing: border-box;

	width: min(100%, 1280px);
	max-width: 1280px;

	margin: 0 auto;
	padding: 0 0 80px;

	color: var(--tnx-contact-ink);
}

.tnx-contact *,
.tnx-contact *::before,
.tnx-contact *::after {
	box-sizing: border-box;
}


/* =========================================================
   Hide Duplicate Blocksy Page Heading
   ========================================================= */

body.page:has(.tnx-contact) .hero-section,
body.page:has(.tnx-contact) .entry-header {
	display: none !important;
}


/* =========================================================
   Contact Page Background
   ========================================================= */

body.page:has(.tnx-contact) .site-main {
	background:
		radial-gradient(
			ellipse at 85% 8%,
			rgba(22, 119, 255, 0.075),
			transparent 48%
		),
		linear-gradient(
			180deg,
			#fafcff 0%,
			#f4f9ff 100%
		);
}


/* =========================================================
   Premium Contact Hero
   ========================================================= */

.tnx-contact__hero {
	position: relative;
	isolation: isolate;

	min-height: 350px;

	overflow: hidden;

	border: 1px solid rgba(82, 215, 255, 0.13);
	border-radius: 22px;

	background:
		radial-gradient(
			ellipse at 84% 38%,
			rgba(22, 119, 255, 0.42),
			transparent 48%
		),
		linear-gradient(
			110deg,
			#031126 0%,
			#061a36 62%,
			#0b3266 100%
		);

	color: #ffffff;
}


/* =========================================================
   Hero Gaming Grid
   ========================================================= */

.tnx-contact__hero::before {
	content: "";

	position: absolute;
	z-index: 0;

	inset: 0;

	pointer-events: none;

	background-image:
		linear-gradient(
			rgba(82, 215, 255, 0.055) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(82, 215, 255, 0.055) 1px,
			transparent 1px
		);

	background-size: 45px 45px;

	-webkit-mask-image:
		linear-gradient(
			90deg,
			transparent 5%,
			#000 100%
		);

	mask-image:
		linear-gradient(
			90deg,
			transparent 5%,
			#000 100%
		);
}


/* =========================================================
   Hero Energy Ring
   ========================================================= */

.tnx-contact__hero::after {
	content: "";

	position: absolute;
	z-index: 0;

	top: 50%;
	right: -160px;

	width: 500px;
	height: 500px;

	border: 1px solid rgba(82, 215, 255, 0.15);
	border-radius: 50%;

	transform: translateY(-50%);

	box-shadow:
		0 0 0 55px rgba(22, 119, 255, 0.038),
		0 0 0 115px rgba(22, 119, 255, 0.02);

	pointer-events: none;
}


/* =========================================================
   Hero Layout
   ========================================================= */

.tnx-contact__hero-inner {
	position: relative;
	z-index: 2;

	display: grid;

	grid-template-columns:
		minmax(0, 1.5fr)
		minmax(0, 0.75fr);

	align-items: center;

	gap: 40px;

	min-height: 350px;

	padding: clamp(30px, 4vw, 55px);
}

.tnx-contact__hero-content {
	position: relative;
	z-index: 3;

	min-width: 0;
}


/* =========================================================
   Breadcrumb
   ========================================================= */

.tnx-contact__breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 10px;

	margin-bottom: 28px;

	font-size: 0.83rem;
	font-weight: 600;

	color: #b3c9e4;
}

.tnx-contact__breadcrumb a {
	color: #e3f0ff;
	text-decoration: none;
}

.tnx-contact__breadcrumb a:hover {
	color: var(--tnx-contact-cyan);
}


/* =========================================================
   Hero Typography
   ========================================================= */

.tnx-contact__eyebrow {
	margin: 0 0 14px;

	color: var(--tnx-contact-cyan);

	font-size: 0.75rem;
	font-weight: 800;

	letter-spacing: 0.2em;
	line-height: 1.5;
}

.tnx-contact__title {
	margin: 0;

	color: #ffffff;

	font-size: clamp(2.6rem, 4.7vw, 4.5rem);
	font-weight: 850;

	line-height: 1.08;
	letter-spacing: -0.045em;

	overflow-wrap: anywhere;
}

.tnx-contact__title span {
	color: #63d7ff;
}

.tnx-contact__description {
	max-width: 630px;

	margin: 20px 0 0;

	color: #d5e5f7;

	font-size: 1rem;
	line-height: 1.8;
}


/* =========================================================
   Hero Highlights
   ========================================================= */

.tnx-contact__hero-highlights {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 12px 23px;

	margin-top: 28px;
}

.tnx-contact__hero-highlights span {
	display: inline-flex;
	align-items: center;

	gap: 8px;

	color: #ecf6ff;

	font-size: 0.78rem;
	font-weight: 700;
}

.tnx-contact__hero-highlights svg {
	width: 20px;
	height: 20px;

	flex: 0 0 20px;

	stroke: var(--tnx-contact-cyan);
	stroke-width: 1.8;

	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =========================================================
   Hero Illustration
   ========================================================= */

.tnx-contact__hero-visual {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 230px;
}

.tnx-contact__visual-ring {
	position: absolute;

	width: min(100%, 270px);
	aspect-ratio: 1;

	border: 1px solid rgba(82, 215, 255, 0.18);
	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(22, 119, 255, 0.19),
			transparent 70%
		);

	box-shadow:
		0 0 0 35px rgba(82, 215, 255, 0.035),
		0 0 0 75px rgba(82, 215, 255, 0.02);
}

.tnx-contact__visual-card {
	position: relative;
	z-index: 1;

	display: grid;
	place-items: center;

	width: 210px;
	height: 180px;

	border: 1px solid rgba(166, 216, 255, 0.27);
	border-radius: 28px;

	background:
		linear-gradient(
			145deg,
			rgba(56, 146, 255, 0.28),
			rgba(6, 26, 54, 0.65)
		);

	color: #9ce6ff;

	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);

	box-shadow:
		0 25px 60px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);

	animation:
		tnx-contact-float 7s ease-in-out infinite;
}

.tnx-contact__visual-card svg {
	display: block;

	width: 165px;
	max-width: 100%;
	height: auto;
}


/* =========================================================
   Main Contact Layout — Desktop Two Columns
   ========================================================= */

/*
 * Important:
 *
 * Explicit grid areas keep both cards in
 * their intended desktop positions.
 *
 * LEFT:  How Can We Help?
 * RIGHT: Contact Our Team
 *
 * This also protects against an unexpected
 * extra grid item taking the first slot.
 */

body.page:has(.tnx-contact) .tnx-contact__layout {
	display: grid !important;

	grid-template-columns:
		minmax(0, 0.92fr)
		minmax(0, 1.08fr) !important;

	grid-template-areas:
		"support form" !important;

	align-items: start;
	align-content: start;

	column-gap: 28px;
	row-gap: 28px;

	width: 100%;
	max-width: 100%;

	margin: 32px 0 0;
	padding: 0;
}


/* =========================================================
   Explicit Card Placement
   ========================================================= */

body.page:has(.tnx-contact)
.tnx-contact__layout > .tnx-contact__information {
	grid-area: support !important;

	grid-column: 1 !important;
	grid-row: 1 !important;

	align-self: start;
	justify-self: stretch;
}

body.page:has(.tnx-contact)
.tnx-contact__layout > .tnx-contact__form-card {
	grid-area: form !important;

	grid-column: 2 !important;
	grid-row: 1 !important;

	align-self: start;
	justify-self: stretch;
}


/* =========================================================
   Remove Unwanted Card Constraints
   ========================================================= */

body.page:has(.tnx-contact)
.tnx-contact__information,
body.page:has(.tnx-contact)
.tnx-contact__form-card {
	display: block;

	position: relative;

	float: none !important;
	clear: none !important;

	box-sizing: border-box;

	width: 100% !important;
	min-width: 0;
	max-width: none !important;

	margin: 0 !important;

	padding: clamp(22px, 2.8vw, 36px);

	border: 1px solid var(--tnx-contact-border);
	border-radius: 20px;

	background: #ffffff;

	box-shadow:
		0 5px 12px rgba(3, 17, 38, 0.025),
		0 18px 45px rgba(3, 17, 38, 0.045);
}


/* =========================================================
   Section Headings
   ========================================================= */

.tnx-contact__section-eyebrow {
	margin: 0 0 9px;

	color: var(--tnx-contact-blue);

	font-size: 0.73rem;
	font-weight: 800;

	letter-spacing: 0.16em;
	line-height: 1.5;
}

.tnx-contact__section-heading h2,
.tnx-contact__form-heading h2 {
	margin: 0;

	color: var(--tnx-contact-ink);

	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 850;

	line-height: 1.2;
	letter-spacing: -0.025em;
}

.tnx-contact__section-heading > p:last-child {
	margin: 14px 0 0;

	color: var(--tnx-contact-muted);

	font-size: 0.94rem;
	line-height: 1.75;
}


/* =========================================================
   Email Support Card
   ========================================================= */

.tnx-contact__email-card {
	display: flex;
	align-items: flex-start;

	gap: 15px;

	margin-top: 27px;
	padding: 21px;

	border: 1px solid #cfe5ff;
	border-radius: 15px;

	background:
		linear-gradient(
			135deg,
			#f1f8ff,
			#e9f4ff
		);
}

.tnx-contact__icon,
.tnx-contact__topic-icon,
.tnx-contact__form-heading-icon {
	display: grid;
	place-items: center;

	flex: 0 0 auto;

	width: 44px;
	height: 44px;

	border-radius: 12px;

	background: #e0efff;
	color: #0872f6;
}

.tnx-contact__icon svg,
.tnx-contact__topic-icon svg,
.tnx-contact__form-heading-icon svg {
	width: 23px;
	height: 23px;

	stroke: currentColor;
	stroke-width: 1.8;

	stroke-linecap: round;
	stroke-linejoin: round;
}

.tnx-contact__email-card h3 {
	margin: 0 0 5px;

	color: var(--tnx-contact-ink);

	font-size: 1.08rem;
	font-weight: 800;
}

.tnx-contact__email-card p {
	margin: 0 0 10px;

	color: var(--tnx-contact-muted);

	font-size: 0.85rem;
	line-height: 1.6;
}

.tnx-contact__email-card a {
	color: #075fd7;

	font-size: 0.93rem;
	font-weight: 800;

	text-decoration: none;
	overflow-wrap: anywhere;
}

.tnx-contact__email-card a:hover {
	text-decoration: underline;
}


/* =========================================================
   Support Topics
   ========================================================= */

.tnx-contact__topics {
	margin-top: 24px;
}

.tnx-contact__topic {
	display: flex;
	align-items: flex-start;

	gap: 15px;

	padding: 20px 0;

	border-bottom: 1px solid #e6edf5;
}

.tnx-contact__topic:last-child {
	border-bottom: 0;
}

.tnx-contact__topic h3 {
	margin: 0 0 8px;

	color: var(--tnx-contact-ink);

	font-size: 1rem;
	font-weight: 800;
	line-height: 1.4;
}

.tnx-contact__topic p {
	margin: 0;

	color: var(--tnx-contact-muted);

	font-size: 0.88rem;
	line-height: 1.7;
}


/* =========================================================
   Security Information
   ========================================================= */

.tnx-contact__privacy-note {
	display: flex;
	align-items: flex-start;

	gap: 12px;

	margin-top: 16px;
	padding: 16px;

	border: 1px solid #d6e6fa;
	border-radius: 12px;

	background: #f3f8ff;
}

.tnx-contact__privacy-note svg {
	width: 22px;
	height: 22px;

	flex: 0 0 22px;

	stroke: #0872f6;
	stroke-width: 1.8;

	stroke-linecap: round;
	stroke-linejoin: round;
}

.tnx-contact__privacy-note p {
	margin: 0;

	color: #435c7a;

	font-size: 0.8rem;
	line-height: 1.65;
}


/* =========================================================
   Form Panel
   ========================================================= */

.tnx-contact__form-card {
	position: relative;
	isolation: isolate;

	overflow: hidden;
}


/* =========================================================
   Premium Form Accent
   ========================================================= */

.tnx-contact__form-card::before {
	content: "";

	position: absolute;

	top: 0;
	left: 28px;
	right: 28px;

	height: 3px;

	border-radius: 999px;

	background:
		linear-gradient(
			90deg,
			#1677ff,
			#52d7ff,
			#8b5cf6
		);
}


/* =========================================================
   Form Header
   ========================================================= */

.tnx-contact__form-heading {
	display: flex;
	align-items: center;

	gap: 14px;
}

.tnx-contact__form-heading-icon {
	width: 52px;
	height: 52px;

	border-radius: 14px;
}

.tnx-contact__form-description {
	margin: 18px 0 24px;

	color: var(--tnx-contact-muted);

	font-size: 0.92rem;
	line-height: 1.75;
}


/* =========================================================
   Contact Form 7 Foundation
   ========================================================= */

.tnx-contact__form .wpcf7 {
	width: 100%;
}

.tnx-contact__form .wpcf7 form {
	width: 100%;
	margin: 0;
}

.tnx-contact__form .wpcf7 form > p {
	margin: 0 0 18px;
}

.tnx-contact__form .wpcf7 label {
	display: block;

	margin-bottom: 8px;

	color: var(--tnx-contact-ink);

	font-size: 0.88rem;
	font-weight: 750;

	line-height: 1.5;
}

.tnx-contact__form .wpcf7-form-control-wrap {
	display: block;

	width: 100%;
}


/* =========================================================
   Form Inputs
   ========================================================= */

.tnx-contact__form .wpcf7 input[type="text"],
.tnx-contact__form .wpcf7 input[type="email"],
.tnx-contact__form .wpcf7 input[type="tel"],
.tnx-contact__form .wpcf7 input[type="number"],
.tnx-contact__form .wpcf7 select,
.tnx-contact__form .wpcf7 textarea {
	display: block;

	box-sizing: border-box;

	width: 100%;
	max-width: 100%;

	min-height: 49px;

	margin-top: 8px;
	padding: 12px 15px;

	border: 1px solid #d3e0ef;
	border-radius: 10px;

	background: #fbfdff;

	color: var(--tnx-contact-ink);

	font-family: inherit;
	font-size: 0.94rem;

	box-shadow: none;

	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease;
}

.tnx-contact__form .wpcf7 textarea {
	min-height: 160px;

	resize: vertical;

	line-height: 1.6;
}

.tnx-contact__form .wpcf7 :is(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	select,
	textarea
):focus {
	outline: none;

	border-color: #1677ff;

	background: #ffffff;

	box-shadow:
		0 0 0 3px rgba(22, 119, 255, 0.12);
}


/* =========================================================
   Form Validation
   ========================================================= */

.tnx-contact__form .wpcf7 .wpcf7-not-valid {
	border-color: #dc4560 !important;
}

.tnx-contact__form .wpcf7-not-valid-tip {
	display: block;

	margin-top: 7px;

	color: #b42333;

	font-size: 0.8rem;
	font-weight: 600;

	line-height: 1.5;
}

.tnx-contact__form .wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 15px !important;

	border-radius: 10px;

	font-size: 0.87rem;
	line-height: 1.65;
}


/* =========================================================
   Contact Form Submit Button
   ========================================================= */

.tnx-contact__form .wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-height: 52px;

	margin-top: 5px;
	padding: 13px 22px;

	border: 0;
	border-radius: 10px;

	background:
		linear-gradient(
			115deg,
			#2689ff,
			#0872f6
		);

	color: #ffffff;

	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 800;

	cursor: pointer;

	box-shadow:
		0 10px 28px rgba(22, 119, 255, 0.20);

	transition:
		transform 170ms ease,
		filter 170ms ease,
		box-shadow 170ms ease;
}

.tnx-contact__form .wpcf7 input[type="submit"]:hover {
	transform: translateY(-2px);

	filter: brightness(1.06);

	box-shadow:
		0 14px 32px rgba(22, 119, 255, 0.27);
}

.tnx-contact__form .wpcf7 input[type="submit"]:disabled {
	opacity: 0.65;

	cursor: not-allowed;
	transform: none;
}


/* =========================================================
   Form Footer
   ========================================================= */

.tnx-contact__form-footer {
	display: flex;
	align-items: center;

	gap: 10px;

	margin-top: 19px;
	padding-top: 18px;

	border-top: 1px solid #e6edf5;
}

.tnx-contact__form-footer svg {
	width: 21px;
	height: 21px;

	flex: 0 0 21px;

	stroke: #0872f6;
	stroke-width: 1.8;

	stroke-linecap: round;
	stroke-linejoin: round;
}

.tnx-contact__form-footer p {
	margin: 0;

	color: var(--tnx-contact-muted);

	font-size: 0.79rem;
	line-height: 1.6;
}


/* =========================================================
   Accessibility
   ========================================================= */

.tnx-contact a:focus-visible,
.tnx-contact input:focus-visible,
.tnx-contact select:focus-visible,
.tnx-contact textarea:focus-visible {
	outline: 3px solid #52d7ff;
	outline-offset: 3px;
}


/* =========================================================
   Subtle Animation
   ========================================================= */

@keyframes tnx-contact-float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-7px);
	}
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

	.tnx-contact__hero-inner {
		gap: 22px;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__layout {
		column-gap: 20px;
		row-gap: 20px;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__information,
	body.page:has(.tnx-contact)
	.tnx-contact__form-card {
		padding: 24px;
	}

}


/* =========================================================
   Small Tablet — Single Column
   ========================================================= */

@media (max-width: 850px) {

	.tnx-contact__hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.tnx-contact__hero-visual {
		display: none;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__layout {
		grid-template-columns:
			minmax(0, 1fr) !important;

		grid-template-areas:
			"support"
			"form" !important;

		column-gap: 0;
		row-gap: 20px;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__layout > .tnx-contact__information {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__layout > .tnx-contact__form-card {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

	.tnx-contact {
		padding-bottom: 50px;
	}

	.tnx-contact__hero {
		border-radius: 15px;
	}

	.tnx-contact__hero-inner {
		min-height: 300px;

		padding: 29px 23px;
	}

	.tnx-contact__breadcrumb {
		margin-bottom: 23px;

		font-size: 0.77rem;
	}

	.tnx-contact__title {
		font-size: clamp(2.25rem, 9vw, 3rem);
	}

	.tnx-contact__description {
		font-size: 0.93rem;
		line-height: 1.7;
	}

	.tnx-contact__hero-highlights {
		gap: 13px;
	}

	.tnx-contact__hero-highlights span {
		font-size: 0.75rem;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__layout {
		margin-top: 20px;
		row-gap: 18px;
	}

	body.page:has(.tnx-contact)
	.tnx-contact__information,
	body.page:has(.tnx-contact)
	.tnx-contact__form-card {
		padding: 21px 18px;

		border-radius: 15px;
	}

	.tnx-contact__email-card {
		padding: 15px;
		gap: 10px;
	}

	.tnx-contact__topic {
		gap: 12px;
	}

	.tnx-contact__icon,
	.tnx-contact__topic-icon {
		width: 39px;
		height: 39px;
	}

	.tnx-contact__form-heading h2 {
		font-size: 1.45rem;
	}

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.tnx-contact__visual-card {
		animation: none;
	}

	.tnx-contact__form .wpcf7 input[type="submit"],
	.tnx-contact__form .wpcf7 input,
	.tnx-contact__form .wpcf7 select,
	.tnx-contact__form .wpcf7 textarea {
		transition: none;
	}

	.tnx-contact__form .wpcf7 input[type="submit"]:hover {
		transform: none;
	}

}