/* =====================================================================
   LPK Landing v2 — form card block + plugin-managed page background
   All selectors namespaced .lpk-* so nothing leaks into the theme.
   ===================================================================== */

:root {
	--lpk-navy: #2f3b52;
	--lpk-navy-deep: #273248;
	--lpk-yellow: #ffc219;
	--lpk-yellow-hover: #f5b400;
	--lpk-serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
	--lpk-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- Form card -------------------------------------------------------- */
.lpk-card {
	background: linear-gradient(180deg, var(--lpk-navy) 0%, var(--lpk-navy-deep) 100%);
	border-radius: 10px;
	padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 18px 40px rgba(47, 59, 82, 0.28);
	color: #ffffff;
}

.lpk-card__title {
	font-family: var(--lpk-serif);
	font-weight: 700;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	color: #ffffff;
	text-align: center;
	margin: 0 0 1.75rem;
}

.lpk-field {
	margin-bottom: 1.25rem;
}

.lpk-field label {
	display: block;
	font-family: var(--lpk-sans);
	font-size: 0.95rem;
	color: #ffffff;
	margin-bottom: 0.5rem;
}

.lpk-card .lpk-field input[type="text"],
.lpk-card .lpk-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 0.9rem 1rem;
	font-family: var(--lpk-sans);
	font-size: 1rem;
	color: var(--lpk-navy);
	line-height: 1.4;
	transition: box-shadow 0.15s ease;
}

.lpk-card .lpk-field input:focus {
	outline: 2px solid var(--lpk-yellow);
	outline-offset: 1px;
	box-shadow: 0 0 0 4px rgba(255, 194, 25, 0.25);
}

.lpk-submit {
	display: block;
	width: 100%;
	background: var(--lpk-yellow);
	color: #1f2634;
	border: none;
	border-radius: 6px;
	padding: 1rem;
	font-family: var(--lpk-sans);
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
	margin-top: 0.5rem;
}

.lpk-submit:hover,
.lpk-submit:focus-visible {
	background: var(--lpk-yellow-hover);
}

.lpk-submit:active {
	transform: translateY(1px);
}

.lpk-submit[disabled] {
	opacity: 0.7;
	cursor: default;
}

.lpk-form__status {
	font-family: var(--lpk-sans);
	font-size: 0.95rem;
	margin: 0.9rem 0 0;
	min-height: 1.3em;
	text-align: center;
}

.lpk-form__status.is-success { color: #9be3c3; }
.lpk-form__status.is-error   { color: #ffb3a1; }

/* Honeypot */
.lpk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Terms & Conditions ---------------------------------------------- */
.lpk-field--tc {
	margin-top: 0.25rem;
	margin-bottom: 1.5rem;
}

.lpk-tc {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	font-family: var(--lpk-sans);
	font-size: 0.9rem;
	line-height: 1.5;
	color: #dfe3ea;
}

.lpk-tc input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0.15rem 0 0;
	accent-color: var(--lpk-yellow);
	cursor: pointer;
}

.lpk-tc__text a {
	color: var(--lpk-yellow);
	text-decoration: underline;
}

.lpk-tc__text a:hover { text-decoration: none; }

/* Shortcode forms inside the card inherit sensible styling. */
.lpk-card__shortcode input[type="text"],
.lpk-card__shortcode input[type="email"],
.lpk-card__shortcode input[type="tel"],
.lpk-card__shortcode input[type="number"],
.lpk-card__shortcode textarea {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 0.9rem 1rem;
	font-size: 1rem;
	color: var(--lpk-navy);
}

.lpk-card__shortcode label { color: #ffffff; font-family: var(--lpk-sans); font-size: 0.95rem; }

.lpk-card__shortcode input[type="submit"],
.lpk-card__shortcode button[type="submit"] {
	display: block;
	width: 100%;
	background: var(--lpk-yellow);
	color: #1f2634;
	border: none;
	border-radius: 6px;
	padding: 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
}

/* --- Plugin-managed page background ---------------------------------- */
/* Solid/gradient/image apply via inline <style> on body.lpk-has-page-bg.
   Image uses fixed attachment for a subtle parallax. A readability scrim
   keeps block content legible over busy image backgrounds. */
body.lpk-page-bg-image::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.45);
	pointer-events: none;
}

/* Video background: fixed full-viewport layer behind all content. */
.lpk-page-bg-video {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	pointer-events: none;
}

.lpk-page-bg-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lpk-page-bg-video__scrim {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.45);
}

/* Editor: give the card a sensible max width so it doesn't stretch full
   bleed inside a wide column while editing. */
.editor-styles-wrapper .lpk-card {
	max-width: 480px;
}

/* --- v2.1.0: Distraction-free layout (Kadence-aware) ------------------ */
/* Makes the content area full-width and transparent so the plugin's page
   background shows edge-to-edge. Header/footer removal is done via
   Kadence's own Page Settings → Disable Header / Disable Footer (they
   remove them for real; we don't fight that with display:none). */

body.lpk-distraction-free .content-container,
body.lpk-distraction-free .content-area,
body.lpk-distraction-free #primary,
body.lpk-distraction-free .entry-content-wrap {
	max-width: 100%;
	width: 100%;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* Kadence paints a white "content background" box; make it transparent so
   the page background is visible behind the blocks. */
body.lpk-distraction-free .site-content,
body.lpk-distraction-free .site-main,
body.lpk-distraction-free .content-bg,
body.lpk-distraction-free.wp-site-blocks,
body.lpk-distraction-free #inner-wrap {
	background: transparent !important;
}

/* Remove Kadence's default content title/hero on distraction-free pages
   (belt-and-braces; the theme toggle handles the header/footer). */
body.lpk-distraction-free .entry-hero,
body.lpk-distraction-free .page-title,
body.lpk-distraction-free .entry-header {
	display: none;
}

/* Let full-width blocks actually reach the edges. */
body.lpk-distraction-free .entry-content > .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}
