/**
 * DesignEpic lead capture form.
 *
 * All HappyForms overrides are scoped to the class added by the lead capture
 * plugin, so other forms retain their own presentation.
 */

:where(.designepic-lead-page, .de-lead-page) {
	background: #f9f9fb;
	color: #121518;
}

.designepic-lead-page {
	--de-orange: #eb5936;
	--de-ink: #121518;
	--de-charcoal: #52565a;
	--de-peach: #fae3cc;
	--de-blush: #fbf3f1;
	--de-off-white: #f9f9fb;
	--de-blue: #d5e5fd;
	--de-white: #fff;
	position: relative;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 48px) clamp(56px, 8vw, 104px);
	overflow: hidden;
}

.designepic-lead-page::before {
	position: absolute;
	top: -180px;
	right: -150px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: var(--de-peach);
	content: "";
	opacity: 0.55;
	pointer-events: none;
}

.designepic-lead-page > * {
	position: relative;
	z-index: 1;
}

.designepic-lead-page .designepic-lead-hero,
.designepic-lead-page .designepic-lead-form-shell,
.designepic-lead-page .designepic-lead-fallback {
	width: min(100%, 980px);
	margin-right: auto;
	margin-left: auto;
}

.designepic-lead-page .designepic-lead-hero {
	margin-bottom: clamp(28px, 5vw, 48px);
	text-align: center;
}

.designepic-lead-page .designepic-lead-eyebrow {
	margin: 0 0 14px;
	color: var(--de-orange);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.designepic-lead-page h1 {
	max-width: 820px;
	margin: 0 auto;
	color: var(--de-ink);
	font-size: clamp(2.25rem, 6vw, 4.8rem);
	font-weight: 750;
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.designepic-lead-page .designepic-lead-intro {
	max-width: 720px;
	margin: 24px auto 0;
	color: var(--de-charcoal);
	font-size: clamp(1rem, 2vw, 1.18rem);
	line-height: 1.65;
}

.designepic-lead-page .designepic-lead-promises {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	margin: 24px 0 0;
	padding: 0;
	color: var(--de-ink);
	font-size: 0.92rem;
	font-weight: 650;
	list-style: none;
}

.designepic-lead-page .designepic-lead-promises li::before {
	margin-right: 8px;
	color: var(--de-orange);
	content: "✓";
	font-weight: 800;
}

.designepic-lead-page .designepic-lead-fallback {
	margin-top: 24px;
	color: var(--de-charcoal);
	font-size: 0.9rem;
}

.designepic-lead-page .designepic-lead-fallback a,
.designepic-lead-form a {
	color: var(--de-orange);
	font-weight: 650;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.happyforms-form.designepic-lead-form {
	--de-orange: #eb5936;
	--de-ink: #121518;
	--de-charcoal: #52565a;
	--de-peach: #fae3cc;
	--de-blush: #fbf3f1;
	--de-off-white: #f9f9fb;
	--de-blue: #d5e5fd;
	--de-white: #fff;
	--happyforms-form-width: 900px !important;
	--happyforms-color-primary: var(--de-orange) !important;
	--happyforms-color-part-title: var(--de-ink) !important;
	--happyforms-color-part-value: var(--de-ink) !important;
	--happyforms-color-part-placeholder: var(--de-charcoal) !important;
	--happyforms-color-part-description: var(--de-charcoal) !important;
	--happyforms-color-part-border: color-mix(in srgb, var(--de-charcoal) 26%, var(--de-white)) !important;
	--happyforms-color-part-border-focus: var(--de-orange) !important;
	--happyforms-color-part-background: var(--de-white) !important;
	--happyforms-color-part-background-focus: var(--de-white) !important;
	--happyforms-color-submit-background: var(--de-orange) !important;
	--happyforms-color-submit-background-hover: var(--de-ink) !important;
	--happyforms-color-submit-border: var(--de-orange) !important;
	--happyforms-color-submit-text: var(--de-white) !important;
	--happyforms-color-submit-text-hover: var(--de-white) !important;
	--happyforms-color-choice-checkmark-bg: var(--de-white) !important;
	--happyforms-color-choice-checkmark-bg-focus: var(--de-orange) !important;
	--happyforms-color-choice-checkmark-color: var(--de-white) !important;
	--happyforms-color-error: var(--de-orange) !important;
	--happyforms-color-error-notice: var(--de-blush) !important;
	--happyforms-color-error-notice-text: var(--de-ink) !important;
	--happyforms-color-success-notice: var(--de-blue) !important;
	--happyforms-color-success-notice-text: var(--de-ink) !important;
	--happyforms-color-multistep-info-text-color: var(--de-ink) !important;
	--happyforms-color-multistep-info-back-color: var(--de-charcoal) !important;
	--happyforms-color-multistep-info-back-color-hover: var(--de-ink) !important;
	--hfplus-color-accent: var(--de-orange) !important;
	--hfplus-color-complete: var(--de-ink) !important;
	--hfplus-color-track: var(--de-peach) !important;
	--hfplus-color-surface: var(--de-off-white) !important;
	--hfplus-color-upcoming: var(--de-charcoal) !important;
	--hfplus-radius: 14px !important;
	box-sizing: border-box;
	width: 100%;
	padding: clamp(22px, 4vw, 44px);
	border: 1px solid color-mix(in srgb, var(--de-charcoal) 18%, var(--de-white));
	border-radius: 24px;
	background: var(--de-white);
	box-shadow: 0 22px 60px rgba(18, 21, 24, 0.08);
	color: var(--de-ink);
}

.happyforms-form.designepic-lead-form,
.happyforms-form.designepic-lead-form * {
	box-sizing: border-box;
}

.happyforms-form.designepic-lead-form form {
	margin: 0;
}

.designepic-lead-form .happyforms-step {
	width: 100%;
}

.designepic-lead-form .happyforms-form__part {
	margin-bottom: 16px;
	padding: 6px 1%;
}

.designepic-lead-form .happyforms-part--page_break,
.designepic-lead-form .happyforms-part--hidden_text {
	margin: 0;
	padding: 0;
}

.designepic-lead-form .happyforms-part__label {
	margin-bottom: 9px;
	line-height: 1.35;
}

.designepic-lead-form .happyforms-part__label .label {
	font-weight: 650;
	letter-spacing: -0.01em;
}

.designepic-lead-form .happyforms-form__part[data-happyforms-required] .happyforms-part__label .label::after {
	content: " *";
	color: var(--de-orange);
}

.designepic-lead-form .happyforms-part__description {
	margin: -2px 0 10px;
	font-size: 0.875rem;
	line-height: 1.55;
}

.designepic-lead-form.happyforms-styles .happyforms-part input[type="date"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="datetime-local"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="email"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="month"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="number"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="password"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="tel"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="text"],
.designepic-lead-form.happyforms-styles .happyforms-part input[type="time"],
.designepic-lead-form.happyforms-styles .happyforms-part textarea,
.designepic-lead-form.happyforms-styles .happyforms-part:not(.happyforms-part--phone) select.happyforms-select {
	min-height: 52px;
	padding: 13px 15px;
	border: 1px solid color-mix(in srgb, var(--de-charcoal) 26%, var(--de-white)) !important;
	border-radius: 12px !important;
	background-color: var(--de-white) !important;
	box-shadow: 0 1px 0 rgba(18, 21, 24, 0.02);
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.designepic-lead-form.happyforms-styles .happyforms-part textarea {
	min-height: 132px;
	resize: vertical;
}

.designepic-lead-form.happyforms-styles .happyforms-part input[type="date"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="datetime-local"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="email"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="month"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="number"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="password"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="tel"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="text"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part input[type="time"]:focus,
.designepic-lead-form.happyforms-styles .happyforms-part textarea:focus,
.designepic-lead-form.happyforms-styles .happyforms-part select.happyforms-select:focus {
	outline: 3px solid color-mix(in srgb, var(--de-orange) 28%, transparent);
	outline-offset: 1px;
	border-color: var(--de-orange) !important;
	box-shadow: 0 0 0 1px var(--de-orange);
}

/* Card-style choices make the longer qualification steps easier to scan. */
.designepic-lead-form .happyforms-part--radio .happyforms-part__el,
.designepic-lead-form .de-choice-grid .happyforms-part__el {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.designepic-lead-form .happyforms-part--radio .happyforms-part-option,
.designepic-lead-form .de-choice-grid .happyforms-part-option {
	margin: 0;
}

.designepic-lead-form .happyforms-part--radio .option-label,
.designepic-lead-form .de-choice-grid .option-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	height: 100%;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid color-mix(in srgb, var(--de-charcoal) 20%, var(--de-white));
	border-radius: 12px;
	background: var(--de-off-white);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.designepic-lead-form .happyforms-part--radio .option-label:hover,
.designepic-lead-form .de-choice-grid .option-label:hover {
	border-color: var(--de-orange);
	background: var(--de-blush);
	transform: translateY(-1px);
}

.designepic-lead-form .happyforms-part--radio .option-label:has(input:checked),
.designepic-lead-form .de-choice-grid .option-label:has(input:checked) {
	border-color: var(--de-orange);
	background: var(--de-blush);
	box-shadow: inset 0 0 0 1px var(--de-orange);
}

.designepic-lead-form .happyforms-part--radio .option-label:has(input:focus-visible),
.designepic-lead-form .de-choice-grid .option-label:has(input:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--de-orange) 30%, transparent);
	outline-offset: 2px;
}

.designepic-lead-form .happyforms-part--radio .checkmark,
.designepic-lead-form .de-choice-grid .checkmark {
	flex: 0 0 21px;
	margin-top: 0;
}

.designepic-lead-form .happyforms-part--radio .happyforms-message-notices,
.designepic-lead-form .de-choice-grid .happyforms-message-notices {
	grid-column: 1 / -1;
}

/* Consent remains distinct from qualification choices and easy to read. */
.designepic-lead-form .happyforms-part--legal .option-label,
.designepic-lead-form .de-consent .option-label,
.designepic-lead-form .de-marketing-opt-in .option-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 15px;
	border: 1px solid color-mix(in srgb, var(--de-charcoal) 18%, var(--de-white));
	border-radius: 12px;
	background: var(--de-off-white);
	line-height: 1.55;
}

.designepic-lead-form .happyforms-part--legal .checkmark,
.designepic-lead-form .de-consent .checkmark,
.designepic-lead-form .de-marketing-opt-in .checkmark {
	flex: 0 0 21px;
	margin-top: 1px;
}

/* Step indicator supplied by HappyForms Plus Step Styles. */
.designepic-lead-form .hfplus-progress {
	margin: 0 1% 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid color-mix(in srgb, var(--de-charcoal) 14%, var(--de-white));
}

.designepic-lead-form .hfplus-progress__eyebrow {
	color: var(--de-charcoal);
	letter-spacing: 0.08em;
}

.designepic-lead-form .hfplus-progress__current {
	color: var(--de-ink);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.designepic-lead-form .hfplus-progress__percentage {
	color: var(--de-orange);
	font-weight: 700;
}

.designepic-lead-form.hfplus-style--segments .hfplus-step__control {
	border-color: color-mix(in srgb, var(--de-charcoal) 18%, var(--de-white));
	background: var(--de-off-white);
}

.designepic-lead-form.hfplus-style--segments .hfplus-step--current .hfplus-step__control {
	border-color: var(--de-orange);
	background: var(--de-blush);
	box-shadow: inset 0 3px 0 var(--de-orange);
}

.designepic-lead-form.hfplus-style--segments .hfplus-step--complete .hfplus-step__control {
	border-color: var(--de-ink);
	background: var(--de-off-white);
}

.designepic-lead-form .hfplus-progress button.hfplus-progress__back {
	font-weight: 650;
}

.designepic-lead-form .hfplus-progress button.hfplus-progress__back:focus-visible,
.designepic-lead-form .hfplus-step__control:is(button):focus-visible {
	outline: 3px solid color-mix(in srgb, var(--de-orange) 32%, transparent);
	outline-offset: 2px;
}

/* Primary navigation and submit controls. */
.designepic-lead-form .happyforms-part--submit {
	justify-content: flex-end;
	padding: 12px 1% 0;
}

.designepic-lead-form.happyforms-styles button.happyforms-button--submit,
.designepic-lead-form.happyforms-styles button.submit.happyforms-button--submit,
.designepic-lead-form.happyforms-styles button[type="submit"].happyforms-button--submit {
	min-width: 190px;
	min-height: 52px;
	margin: 0;
	padding: 14px 24px;
	border: 1px solid var(--de-orange) !important;
	border-radius: 999px !important;
	background: var(--de-orange) !important;
	color: var(--de-white) !important;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.designepic-lead-form.happyforms-styles button.happyforms-button--submit:hover,
.designepic-lead-form.happyforms-styles button.submit.happyforms-button--submit:hover,
.designepic-lead-form.happyforms-styles button[type="submit"].happyforms-button--submit:hover {
	border-color: var(--de-ink) !important;
	background: var(--de-ink) !important;
	transform: translateY(-1px);
}

.designepic-lead-form.happyforms-styles button.happyforms-button--submit:focus-visible,
.designepic-lead-form.happyforms-styles button.submit.happyforms-button--submit:focus-visible,
.designepic-lead-form.happyforms-styles button[type="submit"].happyforms-button--submit:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--de-orange) 35%, transparent);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px var(--de-white);
}

.designepic-lead-form.happyforms-styles button.happyforms-button--submit:disabled,
.designepic-lead-form.happyforms-styles button[type="submit"].happyforms-button--submit:disabled {
	opacity: 0.55;
	cursor: wait;
	transform: none;
}

/* Validation and confirmation notices use the palette without relying on hue alone. */
.designepic-lead-form .happyforms-part--error input,
.designepic-lead-form .happyforms-part--error textarea,
.designepic-lead-form .happyforms-part--error select {
	border-color: var(--de-orange) !important;
	box-shadow: inset 4px 0 0 var(--de-orange);
}

.designepic-lead-form .happyforms-part-error-notice,
.designepic-lead-form .happyforms-part-error-notice__realtime {
	margin-top: 7px;
	color: var(--de-ink);
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.45;
}

.designepic-lead-form .happyforms-message-notices {
	margin-bottom: 22px;
}

.designepic-lead-form .happyforms-message-notices .happyforms-message-notice {
	padding: 16px 18px;
	border: 1px solid var(--de-charcoal);
	border-left: 5px solid var(--de-charcoal);
	border-radius: 12px;
}

.designepic-lead-form .happyforms-message-notices .happyforms-message-notice.error {
	border-color: var(--de-orange);
	background: var(--de-blush);
}

.designepic-lead-form .happyforms-message-notices .happyforms-message-notice.success {
	border-color: var(--de-ink);
	background: var(--de-blue);
}

.designepic-lead-form .happyforms-message-notices h2,
.designepic-lead-form .happyforms-message-notices p {
	color: var(--de-ink) !important;
	line-height: 1.5;
}

/* HappyForms' native half widths plus an explicit reusable class for seeded fields. */
@media screen and (min-width: 800px) {
	.designepic-lead-form .de-field--half {
		width: 50%;
	}

	.designepic-lead-form .de-field--full {
		width: 100%;
	}
}

@media screen and (max-width: 799px) {
	.designepic-lead-page {
		padding-right: 14px;
		padding-left: 14px;
	}

	.designepic-lead-page .designepic-lead-promises {
		flex-direction: column;
		align-items: center;
	}

	.happyforms-form.designepic-lead-form {
		padding: 22px 17px;
		border-radius: 18px;
	}

	.designepic-lead-form .happyforms-form__part,
	.designepic-lead-form .de-field--half,
	.designepic-lead-form .de-field--full {
		width: 100%;
		padding-right: 0;
		padding-left: 0;
	}

	.designepic-lead-form .happyforms-part--radio .happyforms-part__el,
	.designepic-lead-form .de-choice-grid .happyforms-part__el {
		grid-template-columns: 1fr;
	}

	.designepic-lead-form .hfplus-progress {
		margin-right: 0;
		margin-bottom: 22px;
		margin-left: 0;
		padding-bottom: 20px;
	}

	.designepic-lead-form .happyforms-part--submit {
		padding-right: 0;
		padding-left: 0;
	}

	.designepic-lead-form.happyforms-styles button.happyforms-button--submit,
	.designepic-lead-form.happyforms-styles button.submit.happyforms-button--submit,
	.designepic-lead-form.happyforms-styles button[type="submit"].happyforms-button--submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.designepic-lead-form *,
	.designepic-lead-form *::before,
	.designepic-lead-form *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (forced-colors: active) {
	.designepic-lead-form .option-label:has(input:checked),
	.designepic-lead-form .happyforms-part--error input,
	.designepic-lead-form .happyforms-part--error textarea,
	.designepic-lead-form .happyforms-part--error select {
		outline: 2px solid currentColor;
	}
}
