/*
Lamy LP — Success State (Phase 8)

Strategy SS1 — separate <section> with id="form-success", hidden by
default via [hidden]; lp.js form-submit IIFE removes [hidden] on success
and scrolls into view.

G-4: section copy is verbatim from locked copy V2.5.
G-5: CTA href="#growth-engine".

Section alternates from Final Form: --bg-primary (#050505), subtle gold
glow at the top center (the success "spotlight").
*/

/* ============================================================
   Section — hidden by default via [hidden] attribute
   ============================================================ */
.lp-success {
	position: relative;
	overflow: hidden;
	background: var(--bg-primary);
	padding-inline: clamp(64px, 10vw, 128px);
	/* Phase 25: tightened top padding + scroll-margin so the heading and the
	   start of the Calendly embed are visible immediately after the auto-scroll.
	   .lp-header is position:fixed (~88px desktop / ~64px mobile) — scroll-margin
	   keeps the heading from landing behind it. */
	padding-block-start: clamp(24px, 4vw, 44px);
	padding-block-end: clamp(40px, 7vw, 72px);
	scroll-margin-top: clamp(76px, 9vw, 100px);
	text-align: center;
}

.lp-success[hidden] {
	display: none;
}

/* Subtle gold "celebration" wash at the top */
.lp-success__bg-glow {
	position: absolute;
	top: -20%;
	left: 0;
	right: 0;
	height: 60%;
	background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
	filter: blur(80px);
	z-index: 0;
	pointer-events: none;
}

.lp-success .lp-container {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin-inline: auto;
}

/* ============================================================
   Gold check icon
   ============================================================ */
.lp-success__icon {
	display: inline-flex;
	/* Phase 25: smaller + tighter bottom margin to lift the Calendly embed up. */
	width: clamp(48px, 6vw, 64px);
	height: clamp(48px, 6vw, 64px);
	color: var(--gold-primary);
	margin: 0 auto clamp(8px, 1.5vw, 14px);
	filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.4));
}

.lp-success__icon svg {
	width: 100%;
	height: 100%;
}

/* ============================================================
   Heading (gold-highlight per user spec — celebration tone)
   ============================================================ */
.lp-success__heading {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-weight: 800;
	font-size: clamp(32px, 4.5vw, 56px);
	color: var(--gold-highlight);
	text-wrap: balance;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 12px 0;
	text-align: center;
}

/* ============================================================
   Body — verbatim locked-copy paragraphs
   ============================================================ */
.lp-success__body {
	max-width: 600px;
	margin: 0 auto;
}

.lp-success__body p {
	font-family: 'Heebo', sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 1.4vw, 20px);
	color: var(--text-body);
	line-height: 1.7;
	margin: 0 0 16px 0;
	text-wrap: pretty;
}

.lp-success__body p:last-child {
	/* Phase 25: the success body is now a single booking-CTA line — keep it in
	   readable body color/size (not the old meta-grey sub-note styling). */
	margin-bottom: 0;
}

/* ============================================================
   CTA wrap — reuses global .btn-cta-primary + --lg
   ============================================================ */
.lp-success__cta-wrap {
	display: flex;
	justify-content: center;
	margin-block-start: clamp(32px, 4vw, 48px);
}

/* ============================================================
   Calendly inline embed (Phase 25)
   In-page booking widget below the thank-you copy. lp.js lazy-loads
   Calendly's widget.js/widget.css on form success and renders it via
   initInlineWidget() with name+email prefill (JS prefill — no URL params).
   Mounted as a direct child of the section so it breaks out of the
   640px text container and gets a comfortable booking width. The
   Calendly iframe is light-themed; we frame it in the brand gold/purple.
   ============================================================ */
.lp-success__calendly-wrap {
	position: relative;
	z-index: 1;
	max-width: 920px;
	margin-inline: auto;
	margin-block-start: clamp(16px, 2.5vw, 24px);
	padding-inline: clamp(16px, 4vw, 24px);
}

.lp-success__calendly {
	min-width: 320px;
	height: 700px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(212, 175, 55, 0.25);
	box-shadow:
		0 0 40px rgba(212, 175, 55, 0.12),
		0 0 80px rgba(138, 79, 255, 0.10);
	background: #ffffff;
}

@media (max-width: 768px) {
	/* Phase 25: cut the section's heavy side padding on mobile so the Calendly
	   widget (min-width 320px) fits without horizontal clipping. */
	.lp-success {
		padding-inline: clamp(12px, 4vw, 20px);
	}
	.lp-success__calendly-wrap {
		padding-inline: 0;
	}
	.lp-success__calendly {
		height: 760px;
	}
}
