/* LitCity Merchant Onboarding – dark form UI
 * Selectors are scoped under .lcmo and slightly specific so theme / page
 * builder styles don't leak in. The accent comes from --lcmo-accent, set
 * inline from the admin "Accent color" setting.
 */

.lcmo {
	--lcmo-accent: #00e5ff;
	--lcmo-bg: #0d1117;
	--lcmo-surface: #161b22;
	--lcmo-field: #0d1117;
	--lcmo-border: #30363d;
	--lcmo-border-hover: #484f58;
	--lcmo-text: #e6edf3;
	--lcmo-muted: #8b949e;
	--lcmo-placeholder: #6e7681;
	--lcmo-danger: #ff7b72;
	--lcmo-success: #3fb950;
	--lcmo-radius: 14px;
	--lcmo-radius-sm: 10px;

	box-sizing: border-box;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 40px);
	background:
		radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--lcmo-accent) 7%, transparent) 0%, transparent 60%),
		var(--lcmo-bg);
	border: 1px solid var(--lcmo-border);
	border-radius: 20px;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
	color: var(--lcmo-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.lcmo *, .lcmo *::before, .lcmo *::after { box-sizing: border-box; }

/* Room for sticky site headers when the pricing buttons scroll here. */
.lcmo { scroll-margin-top: 90px; }
.lcmo [hidden] { display: none !important; }

/* Sold-out pricing buttons (outside the form, so not scoped to .lcmo). */
.lcmo-sold-out {
	opacity: .55;
	filter: grayscale(.6);
}
.lcmo-sold-out,
.lcmo-sold-out a,
.lcmo-sold-out button {
	cursor: not-allowed !important;
}

/* ---------- Selected plan (set by the pricing card buttons) ---------- */

.lcmo .lcmo-plan-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 7px 14px;
	border: 1px solid color-mix(in srgb, var(--lcmo-accent) 50%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--lcmo-accent) 10%, transparent);
	color: var(--lcmo-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}
.lcmo .lcmo-plan-title::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lcmo-accent);
	box-shadow: 0 0 10px var(--lcmo-accent);
}
.lcmo .lcmo-plan-title.is-updated { animation: lcmo-plan-pulse .9s ease; }
@keyframes lcmo-plan-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lcmo-accent) 60%, transparent); }
	100% { box-shadow: 0 0 0 14px transparent; }
}

/* ---------- Header ---------- */

.lcmo .lcmo-header { margin: 0 0 28px; }
.lcmo .lcmo-title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--lcmo-text);
	font-size: clamp(24px, 3.2vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.lcmo .lcmo-subtitle { margin: 0; color: var(--lcmo-muted); font-size: 15px; max-width: 620px; }

/* ---------- Sections ---------- */

.lcmo .lcmo-section {
	margin: 0 0 20px;
	padding: clamp(18px, 3vw, 28px);
	background: var(--lcmo-surface);
	border: 1px solid var(--lcmo-border);
	border-radius: var(--lcmo-radius);
}
.lcmo .lcmo-section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
}
.lcmo .lcmo-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid color-mix(in srgb, var(--lcmo-accent) 45%, transparent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--lcmo-accent) 10%, transparent);
	color: var(--lcmo-accent);
	font-size: 16px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
	text-shadow: 0 0 12px color-mix(in srgb, var(--lcmo-accent) 60%, transparent);
}
.lcmo .lcmo-section-title {
	margin: 0;
	padding: 0;
	color: var(--lcmo-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.lcmo .lcmo-note { margin: -8px 0 20px; color: var(--lcmo-muted); font-size: 14px; }

/* ---------- Grid ---------- */

.lcmo .lcmo-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 20px;
}
.lcmo .lcmo-w-half { grid-column: span 3; }
.lcmo .lcmo-w-full { grid-column: 1 / -1; }
.lcmo .lcmo-w-third { grid-column: span 2; }

/* ---------- Fields ---------- */

.lcmo .lcmo-field { margin: 0; min-width: 0; }
.lcmo .lcmo-label {
	display: block;
	margin: 0 0 8px;
	color: #c9d1d9;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}
.lcmo .lcmo-req { color: var(--lcmo-accent); margin-left: 2px; }

.lcmo .lcmo-input,
.lcmo input.lcmo-input,
.lcmo select.lcmo-input,
.lcmo textarea.lcmo-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	background: var(--lcmo-field);
	border: 1px solid var(--lcmo-border);
	border-radius: var(--lcmo-radius-sm);
	box-shadow: none;
	color: var(--lcmo-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.lcmo textarea.lcmo-input { min-height: 110px; resize: vertical; }
.lcmo .lcmo-input::placeholder { color: var(--lcmo-placeholder); opacity: 1; }
.lcmo .lcmo-input:hover { border-color: var(--lcmo-border-hover); }
.lcmo .lcmo-input:focus,
.lcmo .lcmo-input.is-focused {
	border-color: var(--lcmo-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lcmo-accent) 20%, transparent);
	background: #0b0f14;
}
/* Autofill on dark backgrounds */
.lcmo input.lcmo-input:-webkit-autofill {
	-webkit-text-fill-color: var(--lcmo-text);
	-webkit-box-shadow: 0 0 0 100px var(--lcmo-field) inset;
	caret-color: var(--lcmo-text);
}

/* Stripe Element containers: the iframe sits inside, padding centers it. */
.lcmo .lcmo-stripe-el { padding-top: 13px; padding-bottom: 13px; cursor: text; }

.lcmo .lcmo-select-wrap { position: relative; }
.lcmo .lcmo-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--lcmo-muted);
	border-bottom: 2px solid var(--lcmo-muted);
	transform: rotate(45deg);
	pointer-events: none;
}
.lcmo select.lcmo-input { padding-right: 40px; cursor: pointer; }
.lcmo select.lcmo-input option { background: var(--lcmo-surface); color: var(--lcmo-text); }
.lcmo select.lcmo-input.is-empty { color: var(--lcmo-placeholder); }

/* Errors */
.lcmo .lcmo-error {
	display: none;
	margin: 6px 0 0;
	color: var(--lcmo-danger);
	font-size: 13px;
	line-height: 1.4;
}
.lcmo .lcmo-field.has-error .lcmo-error { display: block; }
.lcmo .lcmo-field.has-error .lcmo-input {
	border-color: var(--lcmo-danger);
	box-shadow: 0 0 0 3px rgba(255, 123, 114, .15);
}

.lcmo .lcmo-secure {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	color: var(--lcmo-muted);
	font-size: 12.5px;
}
.lcmo .lcmo-secure svg { color: var(--lcmo-success); flex: none; }

/* ---------- Terms checkbox ---------- */

.lcmo .lcmo-terms { margin: 4px 0 24px; padding: 0 4px; }
.lcmo .lcmo-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	color: #c9d1d9;
	font-size: 14px;
	cursor: pointer;
}
.lcmo .lcmo-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.lcmo .lcmo-check-box {
	flex: none;
	position: relative;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid var(--lcmo-border-hover);
	border-radius: 6px;
	background: var(--lcmo-field);
	transition: all .15s ease;
}
.lcmo .lcmo-check-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #0d1117;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}
.lcmo .lcmo-check input:checked + .lcmo-check-box {
	background: var(--lcmo-accent);
	border-color: var(--lcmo-accent);
	box-shadow: 0 0 12px color-mix(in srgb, var(--lcmo-accent) 50%, transparent);
}
.lcmo .lcmo-check input:checked + .lcmo-check-box::after { transform: rotate(45deg) scale(1); }
.lcmo .lcmo-check input:focus-visible + .lcmo-check-box { outline: 2px solid var(--lcmo-accent); outline-offset: 2px; }
.lcmo .lcmo-terms.has-error .lcmo-check-box { border-color: var(--lcmo-danger); }
.lcmo .lcmo-check-text a { color: var(--lcmo-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Submit button ---------- */

.lcmo .lcmo-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 16px 24px;
	border: 1px solid var(--lcmo-accent);
	border-radius: 12px;
	background: var(--lcmo-accent);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--lcmo-accent) 30%, transparent),
		0 0 24px color-mix(in srgb, var(--lcmo-accent) 45%, transparent),
		0 8px 24px -8px color-mix(in srgb, var(--lcmo-accent) 60%, transparent);
	color: #001418;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	text-shadow: none;
	cursor: pointer;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}
/* Light sweep on hover */
.lcmo .lcmo-submit::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: left .55s ease;
}
.lcmo .lcmo-submit:hover:not(:disabled),
.lcmo .lcmo-submit:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--lcmo-accent) 50%, transparent),
		0 0 36px color-mix(in srgb, var(--lcmo-accent) 70%, transparent),
		0 14px 32px -10px color-mix(in srgb, var(--lcmo-accent) 80%, transparent);
	outline: none;
	background: var(--lcmo-accent);
	color: #001418;
}
.lcmo .lcmo-submit:hover:not(:disabled)::before { left: 120%; }
.lcmo .lcmo-submit:active:not(:disabled) { transform: translateY(0); }
.lcmo .lcmo-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.lcmo .lcmo-submit.is-busy { opacity: .85; cursor: progress; }

.lcmo .lcmo-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 20, 24, .3);
	border-top-color: #001418;
	border-radius: 50%;
	animation: lcmo-spin .7s linear infinite;
}
.lcmo .lcmo-submit.is-busy .lcmo-spinner { display: inline-block; }

.lcmo .lcmo-form-message {
	min-height: 0;
	margin: 14px 0 0;
	color: var(--lcmo-danger);
	font-size: 14px;
	text-align: center;
}
.lcmo .lcmo-form-message:empty { display: none; }

/* Shown in the card section when Stripe can't be used (missing / rejected key, blocked script). */
.lcmo .lcmo-card-alert {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 123, 114, .45);
	border-radius: var(--lcmo-radius-sm);
	background: rgba(255, 123, 114, .08);
	color: var(--lcmo-danger);
	font-size: 14px;
}

/* ---------- Success state ---------- */

.lcmo .lcmo-form { transition: opacity .3s ease, transform .3s ease; }
.lcmo .lcmo-form.is-leaving { opacity: 0; transform: translateY(-8px); }

.lcmo .lcmo-success {
	padding: clamp(24px, 6vw, 56px) 16px;
	text-align: center;
	outline: none;
	animation: lcmo-rise .45s ease both;
}
.lcmo .lcmo-success[hidden] { display: none; }
.lcmo .lcmo-success-icon { width: 84px; height: 84px; margin: 0 auto 20px; }
.lcmo .lcmo-success-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--lcmo-accent) 70%, transparent)); }
.lcmo .lcmo-success-icon circle,
.lcmo .lcmo-success-icon path { stroke: var(--lcmo-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lcmo .lcmo-success-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: lcmo-draw .6s ease forwards; }
.lcmo .lcmo-success-icon path { stroke-width: 3.5; stroke-dasharray: 36; stroke-dashoffset: 36; animation: lcmo-draw .35s .5s ease forwards; }
.lcmo .lcmo-success-title { margin: 0 0 10px; padding: 0; color: var(--lcmo-text); font-size: 26px; font-weight: 700; }
.lcmo .lcmo-success-message { margin: 0 auto; max-width: 520px; color: var(--lcmo-muted); font-size: 15px; }

@keyframes lcmo-spin { to { transform: rotate(360deg); } }
@keyframes lcmo-draw { to { stroke-dashoffset: 0; } }
@keyframes lcmo-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

@media (max-width: 640px) {
	.lcmo .lcmo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.lcmo .lcmo-w-half { grid-column: 1 / -1; }
	.lcmo .lcmo-grid--card .lcmo-w-third { grid-column: span 1; }
	.lcmo .lcmo-grid--card [data-card="zip"] { grid-column: 1 / -1; }
	.lcmo .lcmo-submit { font-size: 13.5px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
	.lcmo *, .lcmo *::before, .lcmo *::after { animation: none !important; transition: none !important; }
	.lcmo .lcmo-success-icon circle, .lcmo .lcmo-success-icon path { stroke-dashoffset: 0; }
}
