/*
 * Lead per Download by Weblink — frontend styles.
 * Intentionally minimal/unopinionated: sites are expected to restyle the
 * form via their own theme CSS. Class names are stable and documented
 * below for that purpose.
 */

.lpdw-lead-form-wrapper {
	max-width: 480px;
	margin: 0 0 1.5em;
	font-size: 1em;
}

.lpdw-lead-form .lpdw-field {
	margin: 0 0 1em;
}

.lpdw-lead-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.lpdw-lead-form input[type="text"],
.lpdw-lead-form input[type="email"],
.lpdw-lead-form input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em 0.6em;
	border: 1px solid #ccd0d4;
	border-radius: 3px;
	font-size: 1em;
}

.lpdw-lead-form .lpdw-field-privacy label,
.lpdw-lead-form .lpdw-field-privacy {
	font-weight: 400;
	display: block;
}

.lpdw-lead-form .lpdw-field-privacy input[type="checkbox"] {
	margin-right: 0.4em;
}

/* Honeypot: nascosto ai visitatori reali via CSS, ma percorribile dai bot
 * meno sofisticati che compilano ogni campo del DOM senza valutare gli
 * stili — per questo non usiamo display:none (alcuni crawler lo ignorano),
 * ma un posizionamento fuori schermo più difficile da individuare. */
.lpdw-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

.lpdw-submit-button,
.lpdw-download-button {
	display: inline-block;
	padding: 0.65em 1.4em;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 1em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.lpdw-submit-button:hover,
.lpdw-download-button:hover {
	background: #135e96;
	color: #fff;
}

.lpdw-submit-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.lpdw-form-message {
	margin-top: 0.75em;
}

.lpdw-form-message.lpdw-form-message--error {
	color: #b32d2e;
}

.lpdw-notice {
	padding: 0.75em 1em;
	border-radius: 3px;
	margin-bottom: 1em;
}

.lpdw-notice--error {
	background: #fbeaea;
	border: 1px solid #d98d8d;
	color: #6b1616;
}

.lpdw-notice--inactive {
	background: #fff8e5;
	border: 1px solid #e0c15c;
}

.lpdw-success-panel {
	padding: 1em;
	border: 1px solid #7ad03a;
	background: #eefbe5;
	border-radius: 3px;
}
