/**
 * Contact Hub widget — Style 1, "Concierge".
 *
 * A dark info panel beside a light form card. Everything that changes state
 * without the script runs off the inputs themselves: the topic chips reveal
 * the trip questions through `:has()`, and the reply-by segments slide their
 * highlight the same way. The script mirrors each state onto a class
 * (`.is-trip`, `.is-call`) for browsers without `:has()` — which is why those
 * selectors are written `:is(class, :has(...))`: `:is()` is forgiving, so the
 * half a browser cannot parse is dropped instead of taking the rule with it.
 *
 * Colour and type resolve through component tokens declared on `.goxom-cx`,
 * each pointing at a theme global first with a literal fallback for the
 * Elementor editor, where the theme stylesheet is not always loaded. The
 * Style tab writes the same tokens, so one control recolours every part that
 * shares it.
 */

.goxom-cx {
	/* Brand */
	--cx-primary: var(--color-primary, #1273C4);
	--cx-accent: var(--cx-primary);

	/* Info panel */
	--cx-panel: var(--color-dark, #061726);
	--cx-panel-ink: var(--color-white, #ffffff);
	--cx-panel-soft: color-mix(in srgb, var(--cx-panel-ink) 68%, transparent);
	--cx-tile: color-mix(in srgb, var(--cx-panel-ink) 6%, transparent);
	--cx-tile-line: color-mix(in srgb, var(--cx-panel-ink) 12%, transparent);

	/* Form card. Body copy is mixed from the ink so the Form Card Text
	   control carries through to it. */
	--cx-card: var(--color-white, #ffffff);
	--cx-ink: var(--color-black, #0C2338);
	--cx-body: color-mix(in srgb, var(--cx-ink) 66%, var(--cx-card));
	--cx-line: var(--color-border, #D5E3EF);
	--cx-field: var(--color-tint, #F4F8FC);
	--cx-field-radius: 12px;

	/* Button */
	--cx-btn: var(--cx-accent);
	--cx-btn-ink: var(--color-white, #ffffff);

	/* State */
	--cx-ok: #22C55E;
	--cx-soon: #F5A524;
	--cx-err: #E5484D;

	/* Geometry */
	--cx-split: 42%;
	--cx-gap: 24px;
	--cx-radius: 28px;
	--cx-pad: 48px;

	/* Type */
	--cx-font-title: var(--font-title, inherit);
	--cx-font-body: var(--font-body, inherit);

	--cx-ease: cubic-bezier(.22, .61, .36, 1);

	position: relative;
	font-family: var(--cx-font-body);
	scroll-margin-top: 120px;
}

.goxom-cx *,
.goxom-cx *::before,
.goxom-cx *::after {
	box-sizing: border-box;
}

/* Several rules below set `display` on elements the template or the script
   also toggles with `hidden`; the attribute has to win. */
.goxom-cx [hidden] {
	display: none !important;
}

/* The script's live region: read out, never seen. */
.goxom-cx__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.goxom-cx svg {
	display: block;
	width: 100%;
	height: 100%;
}

.goxom-cx__grid {
	display: grid;
	grid-template-columns: var(--cx-split) minmax(0, 1fr);
	gap: var(--cx-gap);
	align-items: stretch;
}

.goxom-cx--info-right .goxom-cx__grid {
	grid-template-columns: minmax(0, 1fr) var(--cx-split);
}

.goxom-cx--info-right .goxom-cx__panel {
	order: 2;
}

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

.goxom-cx__panel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: var(--cx-pad);
	border-radius: var(--cx-radius);
	background:
		radial-gradient(420px circle at 100% 0%, color-mix(in srgb, var(--cx-accent) 34%, transparent), transparent 70%),
		radial-gradient(360px circle at 0% 100%, color-mix(in srgb, var(--cx-accent) 18%, transparent), transparent 70%),
		var(--cx-panel);
	color: var(--cx-panel-ink);
}

.goxom-cx__panel-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ------------------------------------------------------------ flight path */

.goxom-cx__route {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .55;
}

.goxom-cx .goxom-cx__route {
	width: 100%;
	height: 100%;
}

.goxom-cx__route-line {
	stroke: color-mix(in srgb, var(--cx-panel-ink) 30%, transparent);
	stroke-width: 1.5;
	stroke-dasharray: 2 7;
	stroke-linecap: round;
}

.goxom-cx__route-pin {
	fill: var(--cx-panel);
	stroke: var(--cx-accent);
	stroke-width: 2;
}

.goxom-cx__plane {
	fill: var(--cx-panel-ink);
}

/* ------------------------------------------------------------------ head */

.goxom-cx__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
	font-family: var(--cx-font-title);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--cx-accent) 55%, var(--cx-panel-ink));
}

.goxom-cx__eyebrow svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.goxom-cx .goxom-cx__title {
	margin: 0 0 16px;
	font-family: var(--cx-font-title);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.15;
	font-weight: 700;
	color: var(--cx-panel-ink);
}

.goxom-cx__desc {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--cx-panel-soft);
}

/* ---------------------------------------------------------- status & meta */

.goxom-cx__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-bottom: 26px;
}

.goxom-cx__meta p {
	margin: 0;
}

.goxom-cx__status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 12px;
	border: 1px solid var(--cx-tile-line);
	border-radius: 999px;
	background: var(--cx-tile);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.goxom-cx__dot {
	position: relative;
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cx-panel-soft);
}

.goxom-cx__status.is-open .goxom-cx__dot {
	background: var(--cx-ok);
}

.goxom-cx__status.is-soon .goxom-cx__dot {
	background: var(--cx-soon);
}

.goxom-cx__status.is-closed .goxom-cx__dot {
	background: var(--cx-err);
}

/* A ring that breathes out of the dot while the office is open. */
.goxom-cx__status.is-open .goxom-cx__dot::after,
.goxom-cx__status.is-soon .goxom-cx__dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid currentColor;
	color: var(--cx-ok);
	animation: goxom-cx-pulse 2.2s var(--cx-ease) infinite;
}

.goxom-cx__status.is-soon .goxom-cx__dot::after {
	color: var(--cx-soon);
}

@keyframes goxom-cx-pulse {
	0%   { transform: scale(.6); opacity: .9; }
	100% { transform: scale(1.8); opacity: 0; }
}

.goxom-cx__clock,
.goxom-cx__promise {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--cx-panel-soft);
}

.goxom-cx__clock svg,
.goxom-cx__promise svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.goxom-cx__clock-text {
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- channels */

.goxom-cx__channels {
	display: grid;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.goxom-cx__ch {
	position: relative;
	display: flex;
	align-items: stretch;
	margin: 0;
	border: 1px solid var(--cx-tile-line);
	border-radius: calc(var(--cx-radius) * .6);
	background: var(--cx-tile);
	transition: border-color .3s var(--cx-ease), background-color .3s var(--cx-ease), transform .3s var(--cx-ease);
}

.goxom-cx__ch:hover,
.goxom-cx__ch:focus-within {
	border-color: color-mix(in srgb, var(--cx-accent) 60%, transparent);
	background: color-mix(in srgb, var(--cx-panel-ink) 9%, transparent);
}

.goxom-cx__ch-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.goxom-cx a.goxom-cx__ch-main:hover,
.goxom-cx a.goxom-cx__ch-main:focus {
	color: inherit;
}

.goxom-cx__ch-main:focus-visible {
	outline: 2px solid var(--cx-accent);
	outline-offset: 2px;
}

.goxom-cx__ch-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 12px;
	border-radius: 14px;
	background: var(--cx-accent);
	color: var(--cx-btn-ink);
	transition: transform .35s var(--cx-ease);
}

.goxom-cx__ch--whatsapp .goxom-cx__ch-icon {
	background: #25D366;
	color: #06301A;
}

.goxom-cx__ch:hover .goxom-cx__ch-icon {
	transform: rotate(-8deg) scale(1.06);
}

.goxom-cx__ch-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.goxom-cx__ch-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cx-panel-soft);
}

.goxom-cx__ch-value {
	font-family: var(--cx-font-title);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.goxom-cx__ch-note {
	font-size: 13px;
	color: var(--cx-panel-soft);
}

.goxom-cx__ch-arrow {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	opacity: 0;
	transform: translate(-6px, 6px);
	transition: opacity .3s var(--cx-ease), transform .3s var(--cx-ease);
}

.goxom-cx__ch:hover .goxom-cx__ch-arrow,
.goxom-cx__ch-main:focus-visible .goxom-cx__ch-arrow {
	opacity: .8;
	transform: none;
}

/* ------------------------------------------------------------------ copy */

.goxom-cx__copy {
	position: relative;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--cx-tile-line);
	border-radius: 0 calc(var(--cx-radius) * .6) calc(var(--cx-radius) * .6) 0;
	background: transparent;
	color: var(--cx-panel-soft);
	cursor: pointer;
	transition: color .25s var(--cx-ease), background-color .25s var(--cx-ease);
}

.goxom-cx__copy:hover,
.goxom-cx__copy:focus-visible {
	background: color-mix(in srgb, var(--cx-panel-ink) 8%, transparent);
	color: var(--cx-panel-ink);
}

.goxom-cx__copy:focus-visible {
	outline: 2px solid var(--cx-accent);
	outline-offset: -2px;
}

.goxom-cx__copy-ico {
	grid-area: 1 / 1;
	width: 18px;
	height: 18px;
	transition: opacity .2s, transform .3s var(--cx-ease);
}

.goxom-cx__copy-ico--done {
	opacity: 0;
	transform: scale(.4);
	color: var(--cx-ok);
}

.goxom-cx__copy.is-done .goxom-cx__copy-ico--idle {
	opacity: 0;
	transform: scale(.4);
}

.goxom-cx__copy.is-done .goxom-cx__copy-ico--done {
	opacity: 1;
	transform: none;
}

.goxom-cx__copy-tip {
	position: absolute;
	right: 6px;
	bottom: calc(100% + 6px);
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--cx-panel-ink);
	color: var(--cx-panel);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s, transform .25s var(--cx-ease);
}

.goxom-cx__copy-tip:empty {
	display: none;
}

.goxom-cx__copy.is-done .goxom-cx__copy-tip,
.goxom-cx__copy.is-failed .goxom-cx__copy-tip {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------- map */

.goxom-cx__map {
	position: relative;
	overflow: hidden;
	margin-bottom: 22px;
	border: 1px solid var(--cx-tile-line);
	border-radius: calc(var(--cx-radius) * .6);
	background:
		linear-gradient(color-mix(in srgb, var(--cx-panel-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
		linear-gradient(90deg, color-mix(in srgb, var(--cx-panel-ink) 5%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
		var(--cx-tile);
}

.goxom-cx__map-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 16px;
	color: inherit;
	text-decoration: none;
}

.goxom-cx a.goxom-cx__map-btn:hover,
.goxom-cx a.goxom-cx__map-btn:focus {
	color: inherit;
}

.goxom-cx__map-btn:focus-visible {
	outline: 2px solid var(--cx-accent);
	outline-offset: -2px;
	border-radius: inherit;
}

.goxom-cx__map-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 12px;
	border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--cx-panel-ink) 40%, transparent);
	transition: transform .4s var(--cx-ease), border-color .3s;
}

.goxom-cx__map-btn:hover .goxom-cx__map-ico {
	transform: scale(1.08);
	border-color: var(--cx-accent);
}

.goxom-cx__map-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.goxom-cx__map-label {
	font-weight: 600;
}

.goxom-cx__map-query {
	overflow: hidden;
	font-size: 13px;
	color: var(--cx-panel-soft);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.goxom-cx__map-frame {
	display: block;
	width: 100%;
	height: 240px;
	border: 0;
	filter: saturate(.85);
	animation: goxom-cx-fade .5s var(--cx-ease);
}

@keyframes goxom-cx-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ---------------------------------------------------------------- social */

.goxom-cx__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: auto;
	padding-top: 6px;
}

.goxom-cx__social-label {
	font-size: 14px;
	color: var(--cx-panel-soft);
}

.goxom-cx__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.goxom-cx__social-list li {
	margin: 0;
}

.goxom-cx__social-link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 10px;
	border: 1px solid var(--cx-tile-line);
	border-radius: 50%;
	color: var(--cx-panel-ink);
	transition: background-color .3s var(--cx-ease), border-color .3s var(--cx-ease), transform .3s var(--cx-ease);
}

.goxom-cx a.goxom-cx__social-link:hover,
.goxom-cx a.goxom-cx__social-link:focus-visible {
	transform: translateY(-3px);
	border-color: var(--cx-accent);
	background: var(--cx-accent);
	color: var(--cx-btn-ink);
}

.goxom-cx__social-link:focus-visible {
	outline: 2px solid var(--cx-accent);
	outline-offset: 2px;
}

/* ===================================================================== card */

/* The grid stretches the card to the panel's height. Rather than leave a short
   form floating in that box, the script hands the spare height to the message
   box (see fitCard() in the JS), so the button lands level with the panel. */
.goxom-cx__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--cx-pad);
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	background: var(--cx-card);
	color: var(--cx-ink);
	box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--cx-panel) 45%, transparent);
}

.goxom-cx__card-head {
	margin-bottom: 26px;
}

.goxom-cx__form-title {
	margin: 0 0 6px;
	font-family: var(--cx-font-title);
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--cx-ink);
}

.goxom-cx__form-desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--cx-body);
}

.goxom-cx__form {
	display: grid;
	gap: 20px;
}

.goxom-cx__form fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.goxom-cx__legend,
.goxom-cx__label {
	display: block;
	margin: 0 0 9px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--cx-ink);
}

.goxom-cx__optional {
	margin-left: 4px;
	font-weight: 400;
	color: var(--cx-body);
}

/* The phone becomes required once a call or WhatsApp reply is picked. */
.goxom-cx__form:is(.is-call, :has(.goxom-cx__segment-input:not([value="email"]):checked)) .goxom-cx__optional {
	display: none;
}

/* ----------------------------------------------------------------- alert */

.goxom-cx__alert {
	margin: 0;
	padding: 12px 16px;
	border-radius: var(--cx-field-radius);
	border: 1px solid color-mix(in srgb, var(--cx-err) 35%, transparent);
	background: color-mix(in srgb, var(--cx-err) 8%, var(--cx-card));
	color: color-mix(in srgb, var(--cx-err) 75%, var(--cx-ink));
	font-size: 14px;
	line-height: 1.55;
}

/* ----------------------------------------------------------------- chips */

.goxom-cx__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.goxom-cx__chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

/* Visually hidden, still focusable and still announced. */
.goxom-cx__chip-input,
.goxom-cx__segment-input,
.goxom-cx__check-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.goxom-cx__chip-label {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--cx-line);
	border-radius: 999px;
	background: var(--cx-card);
	font-size: 14px;
	font-weight: 500;
	color: var(--cx-ink);
	transition: background-color .25s var(--cx-ease), border-color .25s var(--cx-ease), color .25s var(--cx-ease), transform .25s var(--cx-ease);
}

.goxom-cx__chip:hover .goxom-cx__chip-label {
	border-color: var(--cx-accent);
}

.goxom-cx__chip-input:checked + .goxom-cx__chip-label {
	border-color: var(--cx-accent);
	background: var(--cx-accent);
	color: var(--cx-btn-ink);
}

.goxom-cx__chip-input:focus-visible + .goxom-cx__chip-label {
	outline: 2px solid var(--cx-accent);
	outline-offset: 2px;
}

.goxom-cx__chip-input:active + .goxom-cx__chip-label {
	transform: scale(.96);
}

/* -------------------------------------------------------------- segments */

.goxom-cx__segments {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--cx-line);
	border-radius: calc(var(--cx-field-radius) + 4px);
	background: var(--cx-field);
}

.goxom-cx__segment {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.goxom-cx__segment-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 10px;
	border-radius: var(--cx-field-radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--cx-body);
	transition: background-color .25s var(--cx-ease), color .25s var(--cx-ease), box-shadow .25s var(--cx-ease);
}

.goxom-cx__segment-label svg {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
}

.goxom-cx__segment:hover .goxom-cx__segment-label {
	color: var(--cx-ink);
}

.goxom-cx__segment-input:checked + .goxom-cx__segment-label {
	background: var(--cx-card);
	color: var(--cx-ink);
	box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--cx-ink) 30%, transparent);
}

.goxom-cx__segment-input:checked + .goxom-cx__segment-label svg {
	color: var(--cx-accent);
}

.goxom-cx__segment-input:focus-visible + .goxom-cx__segment-label {
	outline: 2px solid var(--cx-accent);
	outline-offset: 1px;
}

/* ---------------------------------------------------------------- fields */

.goxom-cx__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.goxom-cx__field {
	min-width: 0;
}

.goxom-cx__control {
	position: relative;
}

.goxom-cx__field-ico {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 18px;
	height: 18px;
	color: var(--cx-body);
	pointer-events: none;
	transform: translateY(-50%);
	transition: color .25s var(--cx-ease);
}

.goxom-cx__control:focus-within .goxom-cx__field-ico {
	color: var(--cx-accent);
}

.goxom-cx .goxom-cx__input {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 13px 16px 13px 45px;
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-field-radius);
	background: var(--cx-field);
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cx-ink);
	transition: border-color .25s var(--cx-ease), background-color .25s var(--cx-ease), box-shadow .25s var(--cx-ease);
}

.goxom-cx .goxom-cx__input::placeholder {
	color: color-mix(in srgb, var(--cx-body) 75%, transparent);
	opacity: 1;
}

.goxom-cx .goxom-cx__input:hover {
	border-color: color-mix(in srgb, var(--cx-accent) 45%, var(--cx-line));
}

.goxom-cx .goxom-cx__input:focus {
	outline: none;
	border-color: var(--cx-accent);
	background: var(--cx-card);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-accent) 16%, transparent);
}

.goxom-cx .goxom-cx__input[aria-invalid="true"] {
	border-color: var(--cx-err);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-err) 12%, transparent);
}

.goxom-cx .goxom-cx__textarea {
	min-height: 140px;
	padding: 14px 16px 34px;
	resize: vertical;
}

.goxom-cx__count {
	position: absolute;
	right: 14px;
	bottom: 10px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--cx-body);
	pointer-events: none;
}

.goxom-cx__count.is-near {
	color: var(--cx-soon);
}

.goxom-cx__count.is-full {
	color: var(--cx-err);
}

.goxom-cx__error {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cx-err);
}

/* ------------------------------------------------------------------ trip */

.goxom-cx__trip {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.goxom-cx__form:is(.is-trip, :has(.goxom-cx__chip-input[data-trip]:checked)) .goxom-cx__trip {
	display: grid;
	animation: goxom-cx-drop .45s var(--cx-ease);
}

@keyframes goxom-cx-drop {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.goxom-cx .goxom-cx__stepper .goxom-cx__input {
	padding-right: 92px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.goxom-cx__stepper .goxom-cx__input::-webkit-inner-spin-button,
.goxom-cx__stepper .goxom-cx__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.goxom-cx__step {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 9px;
	border: 1px solid var(--cx-line);
	border-radius: 10px;
	background: var(--cx-card);
	color: var(--cx-ink);
	cursor: pointer;
	transform: translateY(-50%);
	transition: border-color .2s, color .2s, background-color .2s;
}

.goxom-cx__step[data-step="-1"] {
	right: 48px;
}

.goxom-cx__step[data-step="1"] {
	right: 9px;
}

.goxom-cx__step:hover:not(:disabled) {
	border-color: var(--cx-accent);
	color: var(--cx-accent);
}

.goxom-cx__step:focus-visible {
	outline: 2px solid var(--cx-accent);
	outline-offset: 1px;
}

.goxom-cx__step:disabled {
	opacity: .4;
	cursor: not-allowed;
}

/* ------------------------------------------------------------- honeypot */

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

/* --------------------------------------------------------------- consent */

.goxom-cx__check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cx-body);
	cursor: pointer;
}

.goxom-cx__check-box {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	padding: 4px;
	border: 1.5px solid var(--cx-line);
	border-radius: 7px;
	background: var(--cx-field);
	color: transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}

.goxom-cx__check-box svg {
	stroke-width: 3;
}

.goxom-cx__check:hover .goxom-cx__check-box {
	border-color: var(--cx-accent);
}

.goxom-cx__check-input:checked + .goxom-cx__check-box {
	border-color: var(--cx-accent);
	background: var(--cx-accent);
	color: var(--cx-btn-ink);
}

.goxom-cx__check-input:focus-visible + .goxom-cx__check-box {
	outline: 2px solid var(--cx-accent);
	outline-offset: 2px;
}

.goxom-cx__check-input[aria-invalid="true"] + .goxom-cx__check-box {
	border-color: var(--cx-err);
}

/* ---------------------------------------------------------------- submit */

.goxom-cx__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding-top: 4px;
}

.goxom-cx__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	margin: 0;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--cx-btn);
	color: var(--cx-btn-ink);
	font-family: var(--cx-font-title);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	transition: transform .3s var(--cx-ease), box-shadow .3s var(--cx-ease), background-color .3s var(--cx-ease);
}

.goxom-cx .goxom-cx__submit:hover,
.goxom-cx .goxom-cx__submit:focus {
	background: color-mix(in srgb, var(--cx-btn) 88%, #000);
	color: var(--cx-btn-ink);
}

.goxom-cx__submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--cx-btn) 80%, transparent);
}

.goxom-cx__submit:focus-visible {
	outline: 2px solid var(--cx-btn);
	outline-offset: 3px;
}

.goxom-cx__submit-ico {
	width: 18px;
	height: 18px;
	transition: transform .4s var(--cx-ease);
}

.goxom-cx__submit:hover .goxom-cx__submit-ico {
	transform: translate(3px, -3px);
}

.goxom-cx__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid color-mix(in srgb, var(--cx-btn-ink) 35%, transparent);
	border-top-color: var(--cx-btn-ink);
	border-radius: 50%;
	animation: goxom-cx-spin .7s linear infinite;
}

.goxom-cx__form.is-sending .goxom-cx__submit {
	pointer-events: none;
	opacity: .85;
}

.goxom-cx__form.is-sending .goxom-cx__submit-ico {
	display: none;
}

.goxom-cx__form.is-sending .goxom-cx__spinner {
	display: block;
}

@keyframes goxom-cx-spin {
	to { transform: rotate(360deg); }
}

.goxom-cx__draft {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	color: var(--cx-body);
}

.goxom-cx__draft svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
}

/* ----------------------------------------------------------------- embed */

/* A shortcode form (Contact Form 7, WPForms…) dressed like the built-in one.
   Written against element types rather than a plugin's classes, so any form
   plugin picks it up, and prefixed with `.goxom-cx` to outrank the theme's
   own `.form-control` rules. */

.goxom-cx__embed p {
	margin: 0 0 18px;
}

.goxom-cx__embed .form-group {
	margin-bottom: 18px;
}

.goxom-cx__embed .form-group.mb-0 {
	margin-bottom: 0;
}

.goxom-cx__embed .row {
	--bs-gutter-x: 18px;
	row-gap: 0;
}

.goxom-cx .goxom-cx__embed :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 54px;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-field-radius);
	background: var(--cx-field);
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cx-ink);
	transition: border-color .25s var(--cx-ease), background-color .25s var(--cx-ease), box-shadow .25s var(--cx-ease);
}

.goxom-cx .goxom-cx__embed textarea {
	min-height: 150px;
	resize: vertical;
}

.goxom-cx .goxom-cx__embed :is(input, select, textarea)::placeholder {
	color: color-mix(in srgb, var(--cx-body) 75%, transparent);
	opacity: 1;
}

.goxom-cx .goxom-cx__embed :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea):hover {
	border-color: color-mix(in srgb, var(--cx-accent) 45%, var(--cx-line));
}

.goxom-cx .goxom-cx__embed :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea):focus {
	outline: none;
	border-color: var(--cx-accent);
	background: var(--cx-card);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cx-accent) 16%, transparent);
}

.goxom-cx .goxom-cx__embed :is(.wpcf7-not-valid, [aria-invalid="true"]) {
	border-color: var(--cx-err);
}

.goxom-cx .goxom-cx__embed :is(button[type="submit"], input[type="submit"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	margin: 6px 0 0;
	padding: 14px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--cx-btn);
	color: var(--cx-btn-ink);
	font-family: var(--cx-font-title);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: transform .3s var(--cx-ease), box-shadow .3s var(--cx-ease), background-color .3s var(--cx-ease);
}

/* The theme's buttons draw a hover wipe with a pseudo-element; ours is a
   plain colour change. */
.goxom-cx .goxom-cx__embed :is(button[type="submit"])::before,
.goxom-cx .goxom-cx__embed :is(button[type="submit"])::after {
	display: none;
}

.goxom-cx .goxom-cx__embed :is(button[type="submit"], input[type="submit"]):hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--cx-btn) 88%, #000);
	color: var(--cx-btn-ink);
	box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--cx-btn) 80%, transparent);
}

.goxom-cx .goxom-cx__embed :is(button[type="submit"], input[type="submit"]):focus-visible {
	outline: 2px solid var(--cx-btn);
	outline-offset: 3px;
}

.goxom-cx__embed .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: var(--cx-err);
}

.goxom-cx .goxom-cx__embed .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: var(--cx-field-radius);
	font-size: 14px;
	line-height: 1.55;
}

.goxom-cx__embed .wpcf7-spinner {
	vertical-align: middle;
}

.goxom-cx__embed .help-block:empty,
.goxom-cx__embed .form-response:empty {
	display: none;
}

/* ------------------------------------------------------------------ done */

.goxom-cx__done {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	text-align: center;
	outline: none;
	animation: goxom-cx-drop .6s var(--cx-ease);
}

.goxom-cx__done-ico {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 22px;
	padding: 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--cx-ok) 14%, var(--cx-card));
	color: var(--cx-ok);
	box-shadow: 0 0 0 10px color-mix(in srgb, var(--cx-ok) 7%, transparent);
}

.goxom-cx__done-ico svg {
	stroke-width: 2.4;
	stroke-dasharray: 24;
	stroke-dashoffset: 0;
	animation: goxom-cx-tick .6s .15s var(--cx-ease) backwards;
}

@keyframes goxom-cx-tick {
	from { stroke-dashoffset: 24; }
}

.goxom-cx__done-title {
	margin: 0 0 10px;
	font-family: var(--cx-font-title);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	color: var(--cx-ink);
}

.goxom-cx__done-text {
	max-width: 420px;
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--cx-body);
}

.goxom-cx__ref {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 8px 8px 8px 16px;
	border: 1px dashed var(--cx-line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--cx-body);
}

.goxom-cx__ref-code {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--cx-field);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--cx-ink);
}

.goxom-cx__again {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--cx-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.goxom-cx .goxom-cx__again:hover,
.goxom-cx .goxom-cx__again:focus {
	background: none;
	color: var(--cx-accent);
	text-decoration-thickness: 2px;
}

/* =================================================================== reveal */

/* Only once the script has confirmed it will run the reveal, so a page
   without it is never left blank. */
.goxom-cx--js.goxom-cx--reveal .goxom-cx__in {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .8s var(--cx-ease), transform .8s var(--cx-ease);
	transition-delay: calc(var(--cx-i, 0) * 70ms);
}

.goxom-cx--js.goxom-cx--reveal.is-in .goxom-cx__in {
	opacity: 1;
	transform: none;
}

/* Once everything has landed the script drops `--reveal`, which hands each
   tile its own hover transition back. */

/* ================================================================ responsive */

@media (max-width: 1024px) {
	.goxom-cx {
		--cx-pad: 36px;
	}
}

@media (max-width: 880px) {
	.goxom-cx__grid,
	.goxom-cx--info-right .goxom-cx__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.goxom-cx--info-right .goxom-cx__panel {
		order: 0;
	}
}

@media (max-width: 575px) {
	.goxom-cx {
		--cx-pad: 22px;
		--cx-radius: 20px;
	}

	.goxom-cx__row,
	.goxom-cx__trip {
		grid-template-columns: minmax(0, 1fr);
	}

	.goxom-cx__form:is(.is-trip, :has(.goxom-cx__chip-input[data-trip]:checked)) .goxom-cx__trip {
		grid-template-columns: minmax(0, 1fr);
	}

	.goxom-cx__segment-label {
		flex-direction: column;
		gap: 4px;
		font-size: 13px;
	}

	.goxom-cx__submit {
		width: 100%;
	}

	.goxom-cx__ch-main {
		gap: 12px;
		padding: 12px;
	}

	.goxom-cx__ch-icon {
		width: 40px;
		height: 40px;
		padding: 10px;
	}

	.goxom-cx__ch-arrow {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.goxom-cx *,
	.goxom-cx *::before,
	.goxom-cx *::after {
		animation: none !important;
		transition: none !important;
	}

	.goxom-cx__plane {
		display: none;
	}
}
