/**
 * Jedi-Robe Contact Us page.
 *
 * Contains only Contact Us page composition and page-specific presentation.
 * Reusable WPForms controls live in `assets/css/components/wpforms.css`.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 * @since 1.0.0
 */

/* ==========================================================================
   Page shell
   ========================================================================== */

/**
 * Remove Shoptimizer's generated page-heading area for this page.
 *
 * The Elementor hero supplies the page H1, so the theme breadcrumb/title
 * wrapper is intentionally suppressed to match the approved Contact design.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 */
body.jr-page-contact-us
	.shoptimizer-archive
	> .col-full
	> .entry-header {
	display: none;
}

body.jr-page-contact-us #primary,
body.jr-page-contact-us .site-main,
body.jr-page-contact-us .entry-content,
body.jr-page-contact-us .entry-content > .elementor {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Contact hero
   ========================================================================== */

/**
 * Approved Contact hero composition.
 *
 * The editorial column is deliberately top-aligned with the form rather than
 * vertically centred against the taller form panel.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 */
body.jr-page-contact-us .jr-contact-hero {
	position: relative;
	isolation: isolate;
	overflow: visible;
	display: grid;
	gap: clamp(1.5rem, 2vw, 3rem);
	align-items: start;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

body.jr-page-contact-us .jr-contact-hero::after {
	position: absolute;
	z-index: -1;
	top: -14rem;
	right: -11rem;
	width: clamp(28rem, 40vw, 46rem);
	aspect-ratio: 1;
	border: 1px solid rgba(111, 203, 255, 0.055);
	border-radius: 50%;
	box-shadow:
		0 0 0 4rem rgba(111, 203, 255, 0.01),
		0 0 0 8rem rgba(45, 166, 83, 0.007);
	content: "";
	pointer-events: none;
}

/* ==========================================================================
   Hero editorial column
   ========================================================================== */

body.jr-page-contact-us .jr-contact-hero__content {
	display: flex;
	width: 100%;
	max-width: 46rem;
	min-width: 0;
	flex-direction: column;
	align-self: start;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* ==========================================================================
   Hero facts
   ========================================================================== */

body.jr-page-contact-us
	.jr-contact-hero
	.jr-facts
	.elementor-icon-list-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 0.5rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

body.jr-page-contact-us
	.jr-contact-hero
	.jr-facts
	.elementor-icon-list-item {
	position: relative;
	margin: 0;
	padding: 0 0 0 1rem;
}

body.jr-page-contact-us
	.jr-contact-hero
	.jr-facts
	.elementor-icon-list-icon {
	display: none;
}

body.jr-page-contact-us
	.jr-contact-hero
	.jr-facts
	.elementor-icon-list-item::before {
	position: absolute;
	top: 0.3em;
	left: 0.08rem;
	width: 0.36rem;
	height: 0.36rem;
	border: 1px solid rgba(69, 217, 107, 0.78);
	background: rgba(69, 217, 107, 0.14);
	box-shadow: 0 0 0.55rem rgba(45, 166, 83, 0.12);
	content: "";
	transform: rotate(45deg);
	pointer-events: none;
}

body.jr-page-contact-us
	.jr-contact-hero
	.jr-facts
	.elementor-icon-list-text {
	color: var(--jr-text-soft, #fff);
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.35;
}

/* ==========================================================================
   Form panel
   ========================================================================== */

/**
 * Contact-specific command-panel shell.
 *
 * Field controls inside this panel are supplied by the shared WPForms
 * component stylesheet.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 */
body.jr-page-contact-us .jr-contact-form-panel {
	position: relative;
	isolation: isolate;
	width: 100%;
	min-width: 0;
	align-self: start;
	margin: 0;
	padding: clamp(1.4rem, 2.5vw, 2.1rem);
	border: 1px solid rgba(152, 169, 192, 0.34);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%),
		radial-gradient(
			circle at 100% 0,
			rgba(111, 203, 255, 0.055),
			transparent 22rem
		),
		rgba(5, 10, 16, 0.82);
	box-shadow:
		0 2rem 5rem rgba(0, 0, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);
	scroll-margin-top: 8rem;
	gap: 0.6rem;
}

body.jr-page-contact-us .jr-contact-form-panel::before,
body.jr-page-contact-us .jr-contact-form-panel::after {
	position: absolute;
	width: 1.45rem;
	height: 1.45rem;
	content: "";
	pointer-events: none;
}

body.jr-page-contact-us .jr-contact-form-panel::before {
	top: -1px;
	left: -1px;
	border-top: 2px solid var(--jr-green-light, #45d96b);
	border-left: 2px solid var(--jr-green-light, #45d96b);
}

body.jr-page-contact-us .jr-contact-form-panel::after {
	right: -1px;
	bottom: -1px;
	border-right: 2px solid rgba(111, 203, 255, 0.5);
	border-bottom: 2px solid rgba(111, 203, 255, 0.5);
}

/* ==========================================================================
   Form telemetry
   ========================================================================== */

body.jr-page-contact-us .jr-contact-form-panel__meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 0 0 0.8rem;
	border-bottom: 1px solid rgba(152, 169, 192, 0.18);
}

body.jr-page-contact-us
	.jr-contact-form-panel__meta
	.elementor-widget-text-editor {
	width: auto;
	margin: 0;
	padding: 0;
	color: var(--jr-text-muted);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.jr-page-contact-us
	.jr-contact-form-panel__meta
	.elementor-widget-text-editor:first-child {
	color: var(--jr-green-light, #45d96b);
}

body.jr-page-contact-us .jr-contact-form-panel__meta p {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

/* ==========================================================================
   Form heading and intro
   ========================================================================== */

body.jr-page-contact-us .jr-contact-form-panel__title {
	width: 100%;
	margin: 0;
}

body.jr-page-contact-us .jr-contact-form-panel__intro {
	width: 100%;
	margin: 0.55rem 0 0;
}

body.jr-page-contact-us .jr-contact-form-panel__intro,
body.jr-page-contact-us .jr-contact-form-panel__intro p {
	color: var(--jr-text-muted);
}

body.jr-page-contact-us .jr-contact-form-panel__intro p {
	margin: 0;
}

/* ==========================================================================
   Contact form placement
   ========================================================================== */

/**
 * External spacing belongs to the Contact panel rather than the shared
 * WPForms component so the same form skin can be reused in other contexts.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 */
body.jr-page-contact-us .jr-contact-form-panel div.wpforms-container-full,
body.jr-page-contact-us .jr-contact-form-panel .wpforms-container {
	width: 100%;
	margin: 1.4rem 0 0;
	padding: 0;
	background: transparent;
}

/* Contact needs a wider final action than smaller inline forms such as signup. */
body.jr-page-contact-us
	.jr-contact-form-panel
	.wpforms-container.jr-wpforms-dark
	.wpforms-form
	button[type="submit"] {
	min-width: 11rem;
	text-transform: uppercase;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

/**
 * JR Contact Us responsive action grid.
 *
 * Keeps the six customer-service actions readable across desktop, tablet
 * and mobile without changing the approved card styling or content.
 *
 * Responsive layout:
 * - Desktop above 992px: 3 columns.
 * - Tablet 768px-992px: 2 columns.
 * - Mobile below 768px: 1 column.
 *
 * @package    Jedi_Theme
 * @subpackage Contact_Us
 * @since      1.1.0
 */
@media (min-width: 721px) and (max-width: 1024px) {

	body.jr-dark-commerce.jr-page-contact-us
		.jr-action-grid {
		grid-template-columns:
			repeat(
				2,
				minmax(0, 1fr)
			);
	}

	body.jr-dark-commerce.jr-page-contact-us .jr-action-grid > .jr-action-grid__item {
		border-left: 1px solid rgba(152, 169, 192, 0.15);
	}

	body.jr-dark-commerce.jr-page-contact-us .jr-action-grid > .jr-action-grid__item:nth-child(2n + 1) {
		border-left: 0;
	}
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 720px) {

	body.jr-page-contact-us
		.jr-contact-hero
		.jr-facts
		.elementor-icon-list-items {
		grid-template-columns: minmax(0, 1fr);
	}

	body.jr-page-contact-us .jr-contact-hero .jr-actions {
		flex-direction: column;
	}

	body.jr-page-contact-us
		.jr-contact-hero
		.jr-actions
		:is(.jr-button-primary, .jr-button-secondary),
	body.jr-page-contact-us
		.jr-contact-hero
		.jr-actions
		:is(.jr-button-primary, .jr-button-secondary)
		a.elementor-button {
		width: 100%;
	}

	body.jr-page-contact-us .jr-contact-form-panel {
		padding: 1.25rem;
	}

	body.jr-page-contact-us .jr-contact-form-panel__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}

	body.jr-page-contact-us
		.jr-contact-form-panel
		div.wpforms-container-full
		.wpforms-form.jr-wpforms-dark
		button[type="submit"] {
		width: 100%;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	body.jr-page-contact-us
		.jr-contact-hero
		.jr-actions
		a.elementor-button {
		transition: none;
	}

	body.jr-page-contact-us
		.jr-contact-hero
		.jr-actions
		a.elementor-button:hover {
		transform: none;
	}
}


/* ==========================================================================
   London Store handoff
   ========================================================================== */

/**
 * London Store handoff component.
 *
 * Displays the embedded London Store viewport alongside store information,
 * facilities and reusable primary/secondary actions.
 *
 * Based on the approved Contact Us prototype.
 *
 * @package Jedi_Theme_Dark
 * @subpackage Shared_Components
 */

/* ==========================================================================
   Layout
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff {
	display: grid;
	width: 100%;

	grid-template-columns:
		minmax(0, 1.1fr)
		minmax(22rem, 0.9fr);

	align-items: stretch;
	gap: clamp(1rem, 3vw, 2rem);

	margin-top: clamp(0.2rem, 1vw, 0.5rem);
}


/* ==========================================================================
   Shared panels
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__map,
body.jr-dark-commerce
	.jr-store-handoff__panel {
	position: relative;

	border: 1px solid rgba(152, 169, 192, 0.34);

	background: rgba(7, 13, 21, 0.52);
}


/* ==========================================================================
   Map panel
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__map {
	overflow: hidden;

	min-width: 0;
	min-height: 27rem;

	padding: 0.8rem;
}


/**
 * Green interface corner.
 *
 * @package Jedi_Theme_Dark
 * @subpackage Shared_Components
 */

body.jr-dark-commerce
	.jr-store-handoff__map::before {
	position: absolute;
	top: -1px;
	left: -1px;

	width: 1.45rem;
	height: 1.45rem;

	border-top: 2px solid var(--jr-green-light);
	border-left: 2px solid var(--jr-green-light);

	content: "";
	pointer-events: none;
}


/* ==========================================================================
   Map viewport
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__viewport,
body.jr-dark-commerce
	.jr-store-handoff__viewport
	> .elementor-widget-container {
	overflow: hidden;

	width: 100%;
	height: 100%;
	min-height: 25.4rem;

	margin: 0;
	padding: 0;

	background: #030609;
}

body.jr-dark-commerce
	.jr-store-handoff__viewport {
	border: 1px solid rgba(152, 169, 192, 0.28);
}

body.jr-dark-commerce
	.jr-store-handoff__viewport
	iframe {
	display: block;

	width: 100%;
	height: 100%;
	min-height: 25.4rem;

	margin: 0;
	border: 0;

	filter:
		saturate(0.9)
		contrast(1.06)
		brightness(0.84);
}


/* ==========================================================================
   Store information panel
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__panel {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;

	padding: clamp(1.4rem, 3vw, 2.1rem);

	background:
		radial-gradient(
			circle at 100% 0,
			rgba(111, 203, 255, 0.055),
			transparent 18rem
		),
		rgba(7, 13, 21, 0.52);
}


/* ==========================================================================
   Store kicker
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__kicker {
	display: flex;
	width: 100%;

	align-items: center;
	gap: 0.75rem;

	margin: 0 0 1rem;
	padding: 0;

	color: var(--jr-green-light);

	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.17em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.jr-dark-commerce
	.jr-store-handoff__kicker::before {
	width: 1.8rem;
	height: 1px;

	flex: 0 0 auto;

	background:
		linear-gradient(
			90deg,
			rgba(69, 217, 107, 0.9),
			rgba(69, 217, 107, 0.15)
		);

	content: "";
}

body.jr-dark-commerce
	.jr-store-handoff__kicker
	p {
	margin: 0;

	color: inherit;

	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: inherit;
}


/* ==========================================================================
   Store title
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__title {
	width: 100%;
	margin: 0;
	padding: 0;
}

body.jr-dark-commerce
	.jr-store-handoff__title
	h3.elementor-heading-title {
	margin: 0;

	color: var(--jr-text);

	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 730;
	letter-spacing: -0.03em;
	line-height: 1.1;
}


/* ==========================================================================
   Address
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__address {
	width: 100%;

	margin: 0.2rem 0 0;
	padding: 0;
}

body.jr-dark-commerce
	.jr-store-handoff__address
	address {
	margin: 0;

	color: var(--jr-text-soft);

	font-size: 0.88rem;
	font-style: normal;
	line-height: 1.65;
}

body.jr-dark-commerce
	.jr-store-handoff__address
	address
	strong {
	color: var(--jr-text);
	font-weight: 720;
}


/* ==========================================================================
   Store facts
   ========================================================================== */

body.jr-dark-commerce
	.jr-store-handoff__facts {
	width: 100%;

	margin: 0.4rem 0 0;
	padding: 0;
}

body.jr-dark-commerce
	.jr-store-handoff__facts
	.elementor-icon-list-items {
	display: grid;
	gap: 0.6rem;

	margin: 0;
	padding: 0;
}

body.jr-dark-commerce
	.jr-store-handoff__facts
	.elementor-icon-list-item {
	position: relative;

	margin: 0;
	padding: 0 0 0 1rem;
}

body.jr-dark-commerce
	.jr-store-handoff__facts
	.elementor-icon-list-icon {
	display: none;
}

body.jr-dark-commerce
	.jr-store-handoff__facts
	.elementor-icon-list-item::before {
	position: absolute;
	top: 0.62em;
	left: 0;

	width: 0.26rem;
	height: 0.26rem;

	background: var(--jr-green-light);

	content: "";
	transform: rotate(45deg);

	pointer-events: none;
}

body.jr-dark-commerce
	.jr-store-handoff__facts
	.elementor-icon-list-text {
	color: var(--jr-text-soft);

	font-size: 0.8rem;
	line-height: 1.5;
}


/* ==========================================================================
   Store actions
   ========================================================================== */

/**
 * Keep the shared action group at the bottom of the store-information panel.
 *
 * Button appearance continues to come from jr-button-primary and
 * jr-button-secondary.
 *
 * @package Jedi_Theme_Dark
 * @subpackage Shared_Components
 */

body.jr-dark-commerce
	.jr-store-handoff__panel
	.jr-actions {
	margin-top: auto;
	padding-top: 1rem;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

/**
 * Collapse the map and information panel to one column when the right-hand
 * minimum track can no longer comfortably coexist with the map.
 *
 * @package Jedi_Theme_Dark
 * @subpackage Shared_Components
 */

@media (max-width: 1100px) {
	body.jr-dark-commerce
		.jr-store-handoff {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 720px) {
	body.jr-dark-commerce
		.jr-store-handoff__map,
	body.jr-dark-commerce
		.jr-store-handoff__viewport,
	body.jr-dark-commerce
		.jr-store-handoff__viewport
		> .elementor-widget-container,
	body.jr-dark-commerce
		.jr-store-handoff__viewport
		iframe {
		min-height: 22rem;
	}
}


/* ==========================================================================
   Contact Us lightweight sci-fi boot
   ========================================================================== */

/**
 * Contact Us lightweight interface boot.
 *
 * Provides:
 * - smooth top-down hero power-on;
 * - delayed Contact form activation;
 * - restrained technical-corner locks;
 * - viewport-triggered section activation;
 * - staggered action-grid loading;
 * - London Store panel loading;
 * - final CTA rail activation.
 *
 * The primary motion uses only opacity and transform to keep rendering light.
 *
 * @package Jedi_Theme
 * @subpackage Contact_Us
 * @since 1.0.0
 */

body.jr-page-contact-us {
	--jr-contact-boot-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--jr-contact-boot-duration: 1100ms;
	--jr-contact-boot-distance: -0.75rem;
}
