/**
 * Lead QR Downloads — front-end form styles.
 * Intentionally lightweight and theme-friendly (uses currentColor / inherits).
 */

.lead-qr-form-wrapper {
	margin: 0 auto;
}

.lead-qr-form-wrapper.align-center { text-align: center; }
.lead-qr-form-wrapper.align-center .lead-qr-form { text-align: left; }

.lead-qr-form__title {
	margin: 0 0 8px;
}

.lead-qr-form__desc {
	margin: 0 0 16px;
	opacity: 0.8;
}

.lead-qr-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.lead-qr-row .lead-qr-field {
	flex: 1 1 200px;
}

.lead-qr-field {
	display: flex;
	flex-direction: column;
	margin: 0 0 14px;
}

.lead-qr-field label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}

.lead-qr-req {
	color: #d63638;
}

.lead-qr-field input {
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
}

.lead-qr-field input:focus {
	outline: 2px solid var(--lead-qr-brand, #2563eb);
	outline-offset: 1px;
	border-color: transparent;
}

.lead-qr-field input.lead-qr-invalid {
	border-color: #d63638;
}

.lead-qr-error {
	color: #d63638;
	font-size: 13px;
	margin-top: 4px;
	min-height: 0;
}

/* Honeypot — hidden from humans, available to bots. */
.lead-qr-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lead-qr-button {
	display: inline-block;
	background: var(--lead-qr-brand, #2563eb);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.lead-qr-button:hover { opacity: 0.9; }
.lead-qr-button[disabled] { opacity: 0.6; cursor: default; }

.lead-qr-button--ghost {
	background: transparent;
	color: var(--lead-qr-brand, #2563eb);
	border: 1px solid var(--lead-qr-brand, #2563eb);
}

/* Block "outline" button style. */
.lead-qr-style-outline .lead-qr-button {
	background: transparent;
	color: var(--lead-qr-brand, #2563eb);
	border: 1px solid var(--lead-qr-brand, #2563eb);
}

.lead-qr-messages {
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
	background: #fcebea;
	color: #b32d2e;
	border: 1px solid #f1b6b6;
}

/* Thank-you */
.lead-qr-thankyou {
	text-align: center;
	padding: 24px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
}

.lead-qr-thankyou__icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #e6f6ec;
	color: #1a7a3c;
	font-size: 28px;
}

.lead-qr-thankyou__qr img {
	max-width: 240px;
	height: auto;
	margin: 16px auto;
}

.lead-qr-thankyou__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}
