/* ============================================================
   JSB Contact Us Hub - front-end styles
   Visual language matches the existing site: deep navy
   #081845 / #060F2E, white #ffffff, matte gold #C9A84C, light
   grey #F8F9FB. Fonts: Inter (body) + Plus Jakarta Sans
   (headings), loaded globally by the child theme.

   Every rule is scoped under body.jsb-cu-active (/contact-us/,
   slug "contact-us" only) or the .jsb-cu subtree, so the home page,
   main navigation menu, products, Resources, OEM/ODM services,
   Why Us / How It Works pages and theme files are never touched.
   No horizontal overflow: grids use minmax(0,1fr), long strings
   wrap, and tables/selects stay inside their columns.
   ============================================================ */

.jsb-cu {
	--jb-blue: #081845;
	--jb-navy-deep: #060F2E;
	--jb-gold: #C9A84C;
	--jb-gold-dark: #b5953d;
	--jb-gold-soft: rgba(201, 168, 76, 0.16);
	--jb-bg-light: #F8F9FB;
	--jb-line: #E5E7EB;
	--jb-text-muted: #4B5563;
	--jb-white-soft: rgba(255, 255, 255, 0.78);
	--jb-white-line: rgba(255, 255, 255, 0.14);
	--jb-error: #b3261e;

	font-family: 'Inter', sans-serif;
	color: var(--jb-blue);
	line-height: 1.6;
	width: 100%;
	box-sizing: border-box;
}

.jsb-cu *,
.jsb-cu *::before,
.jsb-cu *::after { box-sizing: border-box; }

.jsb-cu img,
.jsb-cu svg { max-width: 100%; }

/* ----------------------------------------------------------------------------
   Astra layout reset - /contact-us/ (slug "contact-us") ONLY.
   Removes the white gap Astra's #primary margin creates between the sticky
   site nav (#masthead, 100px, sticky) and the hero, and zeroes the content
   container padding so the hero spans the full viewport edge to edge. The
   Astra child theme caps .entry-content > * at 1240px with 20px gutters; that
   cap is lifted for the .jsb-cu root so the hero band is full-width (each
   inner wrapper re-applies its own 1240px max-width). All rules are scoped
   under body.jsb-cu-active, so other pages are untouched.

   The full-width rule below targets ONLY content-area containers (#primary /
   .content-area descendants), never #masthead: Astra's main nav renders its
   own .ast-container inside #masthead, and forcing it to 100% stretched the
   site header edge-to-edge. A dedicated guard keeps the header container at
   the site-standard 1240px max-width with 20px gutters.
   ------------------------------------------------------------------------- */
body.jsb-cu-active #primary .ast-container,
body.jsb-cu-active .content-area .ast-container { max-width: 100% !important; padding: 0 !important; }
body.jsb-cu-active #masthead .ast-container {
	max-width: 1240px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}
body.jsb-cu-active .ast-article-single { padding: 0 !important; margin: 0 !important; }
body.jsb-cu-active .entry-content { margin: 0 !important; padding: 0 !important; }
body.jsb-cu-active .content-area,
body.jsb-cu-active #primary { margin-top: 0 !important; }
body.jsb-cu-active .entry-content > .jsb-cu,
body.jsb-cu-active .jsb-cu {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* Hide the theme's duplicate auto page title (Astra renders it as
   <header class="entry-header"><h1 class="entry-title">); the page renders
   its own hero H1. A theme filter (astra_the_title_enabled) also removes it
   server-side; this CSS is the second line of defence. /contact-us/ only. */
body.jsb-cu-active .ast-article-single .entry-header,
body.jsb-cu-active .ast-article-single .entry-title { display: none !important; }

/* ------------------------- Hero ------------------------- */
/* Full-viewport-width deep-navy hero, flush under the sticky site nav
   (no white gap). Inner content max-width 1240px. */
.jsb-cu-hero {
	position: relative;
	width: 100%;
	background:
		radial-gradient(1000px 420px at 85% -10%, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0) 60%),
		linear-gradient(180deg, var(--jb-blue) 0%, var(--jb-navy-deep) 100%);
	color: #ffffff;
	padding: 84px 0 92px;
	overflow: hidden;
}
.jsb-cu-hero-inner {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}
.jsb-cu-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: #ffffff;
}
.jsb-cu-breadcrumb-link {
	color: #ffffff;
	text-decoration: none !important;
	transition: color 0.2s;
}
.jsb-cu-breadcrumb-link:hover {
	color: var(--jb-gold);
	text-decoration: none !important;
}
.jsb-cu-breadcrumb-sep {
	color: var(--jb-gold);
	font-weight: 700;
	font-size: 12px;
}
.jsb-cu-breadcrumb-current {
	color: var(--jb-gold);
	font-weight: 700;
}
.jsb-cu-hero-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 46px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.5px;
	color: #ffffff;
	margin: 0 0 14px;
	max-width: 860px;
}
.jsb-cu-hero-sub {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--jb-white-soft);
	margin: 0 0 26px;
	max-width: 780px;
}
.jsb-cu-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jsb-cu-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--jb-white-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	min-width: 0;
}
.jsb-cu-badge-icon {
	display: inline-flex;
	color: var(--jb-gold);
	flex: none;
}

/* ------------------------- Body / grid ------------------------- */
.jsb-cu-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 88px;
}
.jsb-cu-grid {
	display: grid;
	/* Desktop: ~65% form (left) + ~35% info card (right). */
	grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
	gap: 28px;
	align-items: start;
	margin-top: 84px;
}
.jsb-cu-form-col {
	min-width: 0;
}

/* ------------------------- Form ------------------------- */
.jsb-cu-form {
	background: #ffffff;
	border: 1px solid var(--jb-line);
	border-top: 5px solid var(--jb-gold);
	border-radius: 12px;
	padding: 32px 34px 30px;
	box-shadow: 0 2px 12px rgba(8, 24, 69, 0.05);
}
.jsb-cu-sec-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	color: var(--jb-blue);
	margin: 0 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--jb-line);
}
.jsb-cu-sec-title:first-of-type {
	padding-top: 0;
	border-top: 0;
}
.jsb-cu-req { color: var(--jb-gold-dark); margin-left: 3px; }
.jsb-cu-f-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}
.jsb-cu-f-row + .jsb-cu-f-row { margin-top: 16px; }
.jsb-cu-f-field { min-width: 0; margin-bottom: 18px; }
.jsb-cu-f-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jb-blue);
	display: block;
	margin-bottom: 7px;
}
.jsb-cu-opt-group .jsb-cu-opt {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jb-blue);
	margin-bottom: 7px;
}
.jsb-cu-f-field input[type="text"],
.jsb-cu-f-field input[type="email"],
.jsb-cu-f-field select,
.jsb-cu-f-field textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #D5D9E2;
	border-radius: 7px;
	padding: 11px 13px;
	font-family: 'Inter', sans-serif;
	font-size: 14.5px;
	color: var(--jb-blue);
	background: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.jsb-cu-f-field input:focus,
.jsb-cu-f-field select:focus,
.jsb-cu-f-field textarea:focus {
	outline: none;
	border-color: var(--jb-gold);
	box-shadow: 0 0 0 3px var(--jb-gold-soft);
}
.jsb-cu-f-field textarea { resize: vertical; min-height: 110px; }
.jsb-cu-opt-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px 16px;
	margin-bottom: 6px;
}
.jsb-cu-opt {
	display: flex;
	align-items: flex-start;
	/* ~1–2 characters of clear visual air between every radio/checkbox and its
	   text (8px at the 13.5px field font), so options never feel cramped on
	   desktop or mobile. */
	gap: 8px;
	padding: 8px 11px;
	border: 1px solid var(--jb-line);
	border-radius: 8px;
	background: var(--jb-bg-light);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	min-width: 0;
}
.jsb-cu-opt:hover { border-color: var(--jb-gold); }
.jsb-cu-opt input {
	flex: 0 0 auto; /* flex-shrink: 0 — the control never shrinks into the text */
	margin-top: 3px;
	accent-color: var(--jb-gold-dark);
	width: 15px;
	height: 15px;
}
.jsb-cu-opt span {
	min-width: 0;
	overflow-wrap: break-word;
}
.jsb-cu-err {
	display: block;
	min-height: 0;
	margin-top: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jb-error);
}
.jsb-cu-err:empty { display: none; }
.jsb-cu-f-field.is-invalid input,
.jsb-cu-f-field.is-invalid select,
.jsb-cu-f-field.is-invalid textarea,
.jsb-cu-opt-group.is-invalid .jsb-cu-opt,
.jsb-cu-opt-group.is-invalid .jsb-cu-opt input {
	border-color: var(--jb-error);
}
.jsb-cu-opt-group.is-invalid .jsb-cu-opt input { outline: 2px solid rgba(179, 38, 30, 0.35); }

.jsb-cu-global-err {
	display: none;
	background: #FDF1F0;
	border: 1px solid #E8B4B0;
	color: var(--jb-error);
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 16px;
}
.jsb-cu-global-err:not(:empty) { display: block; }

/* CTA button + loading spinner */
.jsb-cu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.jsb-cu-btn:hover { transform: translateY(-2px); }
.jsb-cu-btn-gold { background: var(--jb-gold); color: var(--jb-navy-deep); }
.jsb-cu-btn-gold:hover { background: var(--jb-gold-dark); color: #ffffff; }
.jsb-cu-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.jsb-cu-btn-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(6, 15, 46, 0.35);
	border-top-color: var(--jb-navy-deep);
	border-radius: 50%;
	animation: jsb-cu-spin 0.7s linear infinite;
}
.jsb-cu-btn.is-loading .jsb-cu-btn-label { opacity: 0.75; }
.jsb-cu-btn.is-loading .jsb-cu-btn-spinner { display: inline-block; }
@keyframes jsb-cu-spin { to { transform: rotate(360deg); } }
.jsb-cu-form .jsb-cu-btn { width: 100%; }
.jsb-cu-privacy {
	margin: 14px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--jb-text-muted);
	text-align: center;
}

/* Honeypot — hidden from humans */
.jsb-cu-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ------------------------- Success state ------------------------- */
.jsb-cu-success {
	background: #ffffff;
	border: 1px solid var(--jb-line);
	border-top: 5px solid var(--jb-gold);
	border-radius: 12px;
	padding: 56px 40px;
	text-align: center;
	box-shadow: 0 2px 12px rgba(8, 24, 69, 0.05);
}
.jsb-cu-success-icon {
	color: var(--jb-gold-dark);
	margin: 0 auto 18px;
	display: block;
}
.jsb-cu-success-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: var(--jb-blue);
	margin: 0 0 12px;
}
.jsb-cu-success-text {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--jb-text-muted);
	max-width: 560px;
	margin: 0 auto 28px;
	min-width: 0;
	overflow-wrap: break-word;
}

/* ------------------------- Right aside ------------------------- */
.jsb-cu-aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.jsb-cu-card {
	background: #ffffff;
	border: 1px solid var(--jb-line);
	border-radius: 12px;
	padding: 24px 26px;
	box-shadow: 0 2px 10px rgba(8, 24, 69, 0.04);
}
.jsb-cu-card-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--jb-blue);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--jb-gold);
}
.jsb-cu-channels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.jsb-cu-channel { min-width: 0; }
.jsb-cu-channel-label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--jb-gold-dark);
	margin-bottom: 5px;
}
.jsb-cu-channel-value {
	display: block;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--jb-blue);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: break-word;
	transition: color 0.2s;
}
.jsb-cu-channel-value:hover { color: var(--jb-gold-dark); }
.jsb-cu-channel-note {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--jb-text-muted);
}
.jsb-cu-office {
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--jb-blue);
}
.jsb-cu-quicknav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.jsb-cu-quicknav a {
	display: block;
	padding: 8px 2px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--jb-blue);
	text-decoration: none;
	border-bottom: 1px solid var(--jb-bg-light);
	overflow-wrap: break-word;
	transition: color 0.2s, padding-left 0.2s;
}
.jsb-cu-quicknav a:hover {
	color: var(--jb-gold-dark);
	padding-left: 8px;
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1024px) {
	.jsb-cu-hero { padding: 72px 0 80px; }
	.jsb-cu-hero-title { font-size: 38px; }
	.jsb-cu-grid { gap: 22px; }
	.jsb-cu-form { padding: 26px 26px 26px; }
}

@media (max-width: 820px) {
	/* Single column below tablet — aside flows under the form. */
	.jsb-cu-grid { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
	.jsb-cu-f-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.jsb-cu-opt-group { grid-template-columns: minmax(0, 1fr); }
	.jsb-cu-wrap { padding: 0 18px 64px; }
	.jsb-cu-hero-inner { padding: 0 18px; }
	.jsb-cu-hero { padding: 60px 0 68px; }
	.jsb-cu-hero-title { font-size: 32px; }
	.jsb-cu-hero-sub { font-size: 16.5px; }
}

@media (max-width: 480px) {
	.jsb-cu-hero { padding: 48px 0 56px; }
	.jsb-cu-hero-title { font-size: 28px; }
	.jsb-cu-hero-sub { font-size: 15.5px; }
	.jsb-cu-badge { font-size: 12.5px; padding: 8px 12px; }
	.jsb-cu-form { padding: 22px 18px 24px; }
	.jsb-cu-success { padding: 40px 20px; }
	.jsb-cu-success-title { font-size: 22px; }
	.jsb-cu-card { padding: 20px 20px; }
}
