/**
 * Lemon Law Eligibility Form — styling locked to the client's screenshot.
 * Scoped under .lle-form-wrap so it never leaks into the surrounding theme.
 */

.lle-form-wrap {
	--lle-panel-bg: #080c1f;
	--lle-heading: #ffffff;
	--lle-text: #ffffff;
	--lle-label: #8a92a5;
	--lle-input-bg: #ffffff;
	--lle-input-text: #1b2233;
	--lle-accent: #e8a05c;
	--lle-accent-hover: #fec42d;
	--lle-radius: 4px;
	--lle-gap: 20px;

	box-sizing: border-box;
	width: 100%;
}

.lle-form-wrap *,
.lle-form-wrap *::before,
.lle-form-wrap *::after {
	box-sizing: border-box;
}

.lle-panel {
	background-color: var(--lle-panel-bg);
	padding: 50px;
	color: var(--lle-text);
}

.lle-heading-block {
	margin-bottom: 28px;
}

.lle-heading {
	margin: 0 0 16px;
	color: var(--lle-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.15;
}

.lle-heading--lead {
	font-size: 2.2rem;
	text-transform: uppercase;
	text-align: center;
}

.lle-subtext {
	margin: 0;
	color: var(--lle-text);
	font-size: 1rem;
	line-height: 1.5;
}

.lle-subtext--lead {
	text-align: center;
}

/* 2×2 grid of fields. */
.lle-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 32px;
	column-gap: var(--lle-gap);
}

.lle-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lle-field--full {
	grid-column: 1 / -1;
}

.lle-form-wrap .lle-label {
	margin-bottom: 8px;
	color: #ffffff !important;
	font-size: 0.95rem;
	font-weight: 700 !important;
}

.lle-select-wrap {
	position: relative;
}

/* Custom caret so the control matches the screenshot across browsers. */
.lle-form-wrap .lle-select-wrap::after {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	margin-top: auto !important;
	margin-bottom: auto !important;
	right: 16px !important;
	width: 10px !important;
	height: 10px !important;
	transform: rotate(45deg) !important;
	border-top: none !important;
	border-left: none !important;
	border-right: 2px solid #e8a05c !important;
	border-bottom: 2px solid #e8a05c !important;
	background: none !important;
	pointer-events: none !important;
}

.lle-select,
.lle-input {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	background-color: var(--lle-input-bg);
	color: var(--lle-input-text);
	border: 1px solid #d7dbe2;
	border-radius: 0;
	font-size: 1rem;
	line-height: 1.3;
	margin: 0 !important;
}

.lle-select {
	padding-right: 40px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

.lle-form-wrap .lle-select:focus,
.lle-form-wrap .lle-input:focus {
	outline: 2px solid #e8a05c !important;
	outline-offset: 1px !important;
	background-color: #ffffff !important;
	color: #1b2233 !important;
}

.lle-select:disabled,
.lle-input:disabled {
	background-color: #eef0f3;
	color: #8a92a5;
	cursor: not-allowed;
}

.lle-select.is-invalid,
.lle-input.is-invalid {
	border-color: #e2574c;
	outline-color: #e2574c;
}

/* Scoped under .lle-form-wrap so these win over the Elementor global Kit's
   generic `button` / `button:hover` rules (which otherwise override our colors). */
.lle-form-wrap .lle-submit {
	display: block;
	width: 100%;
	margin-top: 44px;
	padding: 14px 20px;
	min-height: 52px;
	/* !important so the Elementor global Kit's generic button styles can never
	   override the brand colors, whatever the site's global palette is. */
	background-color: var(--lle-accent) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.lle-form-wrap .lle-submit:hover,
.lle-form-wrap .lle-submit:focus {
	background-color: var(--lle-accent-hover) !important;
	color: #ffffff !important;
	border: 0 !important;
}

.lle-form-wrap .lle-submit:disabled {
	opacity: 0.7;
	cursor: progress;
}

/* Honeypot — visually hidden but present in the DOM. */
.lle-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lle-error {
	margin: 16px 0 0;
	color: #ffb4ad;
	font-size: 0.95rem;
}

/* Result card. */
.lle-result {
	margin-top: 24px;
}

.lle-result-card {
	padding: 24px;
	border-radius: var(--lle-radius);
	border-left: 4px solid var(--lle-accent);
	background-color: rgba(255, 255, 255, 0.06);
}

.lle-result-card.is-eligible {
	border-left-color: #4caf7d;
}

.lle-result-card.is-not-eligible {
	border-left-color: #9aa1ad;
}

.lle-result-title {
	margin: 0 0 8px;
	color: var(--lle-heading);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.4rem;
	font-weight: 400;
}

.lle-result-body {
	margin: 0;
	color: var(--lle-text);
	line-height: 1.55;
}

/* Lead form: halve the row gap so name/phone and email rows sit closer together. */
.lle-form-wrap .lle-lead-form .lle-fields {
	row-gap: 10px !important;
}

/* Mobile: stack to a single column, like the screenshot's responsive behavior. */
@media (max-width: 600px) {
	.lle-panel {
		padding: 0;
	}

	.lle-fields {
		grid-template-columns: 1fr;
	}

	.lle-heading {
		font-size: 1.4rem;
	}

	.lle-heading--lead {
		font-size: 1.6rem;
	}
}
