/**
 * Maxport pilot styles — category, product, contact and RFQ.
 * Scope: .mx-* classes only.
 */

.mx-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

.mx-eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #059669;
}

.mx-h1,
.mx-h2,
.mx-h3,
.mx-h4 {
	font-family: var(--global-heading-font-family, inherit);
	color: #0a192f;
	letter-spacing: -.01em;
}

.mx-h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.05;
	font-weight: 700;
}

.mx-h2 {
	margin: 0 0 14px;
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.15;
	font-weight: 700;
}

.mx-h3 {
	margin: 0 0 12px;
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.25;
	font-weight: 700;
}

.mx-h4 {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
}

.mx-lead {
	margin: 0 0 14px;
	max-width: 920px;
	font-size: 17px;
	line-height: 1.65;
	color: #334155;
}

.mx-on-dark,
.mx-lead.mx-on-dark {
	color: #e2e8f0;
}

.mx-small {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
}

.mx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #10b981;
	color: #06251c !important;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, border-color .18s ease;
	box-sizing: border-box;
}

.mx-btn:hover {
	background: #34d399;
	color: #06251c !important;
	transform: translateY(-1px);
}

.mx-btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .38);
	color: #fff !important;
}

.mx-btn-ghost:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .7);
	color: #fff !important;
}

.mx-btn-ghost-dark {
	background: transparent;
	border-color: #cbd5e1;
	color: #0a192f !important;
}

.mx-btn-ghost-dark:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0a192f !important;
}

.mx-link {
	color: #059669;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Category intro ---------- */

.mx-cat-intro {
	margin: 24px 0 32px;
	padding: 8px 0 36px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	overflow: hidden;
}

.mx-cat-hero {
	padding: 40px 0 8px;
}

.mx-cat-hero-actions {
	margin-top: 22px;
}

.mx-cat-after {
	padding: 8px 0 0;
}

.mx-cat-after .mx-cat-block:first-child {
	margin-top: 18px;
}

.mx-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 26px 0 8px;
}

.mx-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	min-width: 0;
}

.mx-fact-label {
	font-size: 10px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #64748b;
}

.mx-fact-value {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: #0a192f;
	overflow-wrap: anywhere;
}

.mx-cat-block {
	margin-top: 34px;
}

.mx-range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mx-range-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none !important;
	transition: border-color .18s ease, transform .18s ease;
	min-width: 0;
}

.mx-range-item:hover {
	border-color: #10b981;
	transform: translateY(-1px);
}

.mx-range-name {
	font-size: 14px;
	font-weight: 700;
	color: #0a192f;
}

.mx-range-note {
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.mx-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.mx-step {
	padding: 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	min-width: 0;
}

.mx-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: #d1fae5;
	color: #065f46;
	font-size: 12px;
	font-weight: 800;
}

.mx-step h4 {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.35;
	color: #0a192f;
}

.mx-step p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #475569;
}

.mx-quality ul,
.mx-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.mx-quality li,
.mx-check-list li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	line-height: 1.6;
	color: #334155;
}

.mx-quality li::before,
.mx-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #059669;
	font-weight: 800;
}

/* ---------- FAQ ---------- */

.mx-faq {
	border-top: 1px solid #e2e8f0;
}

.mx-faq details {
	border-bottom: 1px solid #e2e8f0;
	padding: 14px 0;
}

.mx-faq summary {
	position: relative;
	padding-right: 30px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: #0a192f;
	list-style: none;
}

.mx-faq summary::-webkit-details-marker {
	display: none;
}

.mx-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	color: #059669;
}

.mx-faq details[open] summary::after {
	content: "–";
}

.mx-faq p {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.65;
	color: #475569;
}

/* ---------- CTA rows ---------- */

.mx-cta-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 36px;
	padding-top: 26px;
	border-top: 1px solid #e2e8f0;
}

.mx-cta-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

.mx-cta-actions,
.mx-hero-actions,
.mx-product-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* ---------- RFQ section and form ---------- */

.mx-rfq-section {
	margin: 40px 0;
	padding: 44px 0;
	background: #0a192f;
	border-radius: 24px;
	color: #fff;
	overflow: hidden;
}

.mx-rfq-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 32px;
	align-items: start;
}

.mx-rfq-grid .mx-h2 {
	color: #fff;
}

.mx-dark-list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.5;
}

.mx-dark-list li {
	position: relative;
	padding-left: 20px;
}

.mx-dark-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #34d399;
}

.mx-rfq-card {
	padding: 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	color: #0f172a;
	min-width: 0;
	box-sizing: border-box;
}

.mx-rfq-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.mx-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mx-field-full {
	grid-column: 1 / -1;
}

.mx-field label {
	font-size: 12px;
	line-height: 1.4;
	font-weight: 600;
	color: #334155;
}

.mx-field label span {
	color: #dc2626;
}

.mx-field input[type="text"],
.mx-field input[type="email"],
.mx-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mx-field textarea {
	resize: vertical;
	min-height: 112px;
}

.mx-field input:focus,
.mx-field textarea:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.mx-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
	color: #475569;
}

.mx-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	flex: 0 0 auto;
	accent-color: #10b981;
}

.mx-consent a {
	color: #059669;
	text-decoration: underline;
}

.mx-submit .mx-btn {
	width: 100%;
}

.mx-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.mx-rfq-success,
.mx-rfq-error {
	padding: 20px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
}

.mx-rfq-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #064e3b;
}

.mx-rfq-success h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: #064e3b;
}

.mx-rfq-success p {
	margin: 4px 0;
}

.mx-rfq-success a {
	color: #047857;
}

.mx-rfq-error {
	margin-bottom: 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.mx-rfq-error a {
	color: #b91c1c;
}

.mx-rfq-anchor {
	scroll-margin-top: 110px;
}

/* ---------- Product page ---------- */

.mx-product-facts {
	margin: 22px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-sizing: border-box;
}

.mx-product-facts table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.mx-product-facts th,
.mx-product-facts td {
	padding: 9px 10px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: top;
	text-align: left;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.mx-product-facts th {
	width: 37%;
	font-weight: 600;
	color: #475569;
	background: #f8fafc;
}

.mx-product-facts td {
	color: #0f172a;
}

.mx-product-facts tr:last-child th,
.mx-product-facts tr:last-child td {
	border-bottom: 0;
}

.mx-product-cta {
	margin-top: 16px;
}

.mx-product-extra {
	margin: 40px 0 10px;
}

.mx-product-block {
	margin-bottom: 34px;
}

.mx-cards-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.mx-mini-card {
	padding: 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	min-width: 0;
}

.mx-mini-card h4 {
	margin: 0 0 6px;
	font-size: 14px;
	color: #0a192f;
}

.mx-mini-card p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: #475569;
}

.mx-product-rfq {
	margin: 12px 0 0;
	padding: 26px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
}

.mx-product-rfq-head {
	margin-bottom: 16px;
}

.mx-product-rfq-head p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

.mx-product-rfq .mx-rfq-card {
	background: #fff;
}

/* ---------- Contact page ---------- */

.mx-contact-page {
	margin: 0;
}

.mx-contact-hero {
	position: relative;
	margin: 24px 0 0;
	padding: 54px 0;
	background: linear-gradient(135deg, #0a192f 0%, #0f3d33 100%);
	border-radius: 24px;
	color: #fff;
	overflow: hidden;
}

.mx-contact-hero::after {
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(16, 185, 129, .28) 0%, rgba(16, 185, 129, 0) 70%);
	pointer-events: none;
}

.mx-contact-hero .mx-wrap {
	position: relative;
	z-index: 1;
}

.mx-contact-hero .mx-h1 {
	color: #fff;
}

.mx-contact-strip {
	margin: 16px 0 0;
	padding: 6px 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.mx-contact-strip-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.mx-contact-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mx-contact-label {
	font-size: 10px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #64748b;
}

.mx-contact-item a,
.mx-contact-item span:last-child {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	color: #0a192f;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.mx-contact-item a:hover {
	color: #059669;
}

.mx-contact-main {
	padding: 44px 0 18px;
}

.mx-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 28px;
	align-items: start;
}

.mx-contact-form-col {
	min-width: 0;
}

.mx-contact-sub {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

.mx-contact-side {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.mx-side-card {
	padding: 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.mx-side-card .mx-h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.mx-side-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: mxstep;
	display: grid;
	gap: 12px;
}

.mx-side-steps li {
	position: relative;
	padding-left: 34px;
	counter-increment: mxstep;
}

.mx-side-steps li::before {
	content: counter(mxstep);
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #d1fae5;
	color: #065f46;
	font-size: 11px;
	font-weight: 800;
}

.mx-side-steps strong {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #0a192f;
}

.mx-side-steps span {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #64748b;
}

.mx-side-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.mx-side-list li {
	position: relative;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}

.mx-side-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #10b981;
	font-weight: 800;
}

.mx-side-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid #eef2f7;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	color: #0a192f;
	text-decoration: none;
}

.mx-side-links a:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mx-side-links a:hover {
	color: #059669;
}

.mx-contact-band {
	margin: 8px 0 36px;
	padding: 26px;
	background: #0a192f;
	border-radius: 20px;
	color: #fff;
}

.mx-contact-band-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mx-contact-band .mx-h3 {
	color: #fff;
	margin-bottom: 4px;
}

.mx-contact-band p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #cbd5e1;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.mx-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mx-rfq-grid,
	.mx-contact-grid {
		grid-template-columns: 1fr;
	}

	.mx-contact-side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mx-contact-side .mx-side-links {
		grid-column: 1 / -1;
	}
}

@media (max-width: 860px) {
	.mx-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mx-range {
		grid-template-columns: 1fr;
	}

	.mx-cards-3 {
		grid-template-columns: 1fr;
	}

	.mx-contact-strip-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mx-contact-side {
		grid-template-columns: 1fr;
	}

	.mx-contact-hero {
		padding: 40px 0;
	}

	.mx-cta-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.mx-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.mx-facts,
	.mx-steps,
	.mx-rfq-form,
	.mx-contact-strip-grid {
		grid-template-columns: 1fr;
	}

	.mx-cat-intro,
	.mx-rfq-section,
	.mx-contact-hero {
		border-radius: 16px;
	}

	.mx-cat-hero {
		padding-top: 28px;
	}

	.mx-fact {
		padding: 12px 14px;
	}

	.mx-rfq-card,
	.mx-product-rfq {
		padding: 18px;
	}

	.mx-product-facts {
		padding: 14px;
	}

	.mx-product-facts th,
	.mx-product-facts td {
		font-size: 12px;
		padding: 8px;
	}

	.mx-hero-actions .mx-btn,
	.mx-product-cta .mx-btn,
	.mx-cta-actions .mx-btn {
		width: 100%;
	}

	.mx-contact-band-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.mx-contact-band .mx-btn {
		width: 100%;
	}
}
