/**
 * CEAR Lazy Forms · estilos mínimos del placeholder.
 * Las variables CSS permiten sobreescribir desde el tema.
 */
.cear-lazy-form {
	--cear-lazy-accent:        #6fb043;
	--cear-lazy-accent-hover:  #5f9938;
	--cear-lazy-text:          #fff;
	--cear-lazy-muted:         rgba( 255, 255, 255, .75 );
	--cear-lazy-input-bg:      #fff;
	--cear-lazy-input-color:   #333;
	--cear-lazy-radius:        4px;
	width: 100%;
	max-width: 100%;
}

/* --------------------------------------------------------------------
 * Preset minimal (email + botón)
 * -------------------------------------------------------------------- */
.cear-lazy-form--minimal .cear-lazy-form__placeholder {
	display: flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: wrap;
}

.cear-lazy-form--minimal .cear-lazy-form__email {
	flex: 1 1 200px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: var( --cear-lazy-radius );
	font: inherit;
	background: var( --cear-lazy-input-bg );
	color: var( --cear-lazy-input-color );
}

.cear-lazy-form__button {
	padding: 12px 18px;
	border: 0;
	border-radius: var( --cear-lazy-radius );
	background: var( --cear-lazy-accent );
	color: var( --cear-lazy-text );
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.cear-lazy-form__button:hover,
.cear-lazy-form__button:focus {
	background: var( --cear-lazy-accent-hover );
}

/* --------------------------------------------------------------------
 * Preset newsletter (email + nombre + apellidos + consent + botón)
 * -------------------------------------------------------------------- */
.cear-lazy-newsletter {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var( --cear-lazy-text );
}

.cear-lazy-newsletter__title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.cear-lazy-newsletter__row--full {
	display: block;
}

.cear-lazy-newsletter__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

@media ( max-width: 480px ) {
	.cear-lazy-newsletter__row--split {
		grid-template-columns: 1fr;
	}
}

.cear-lazy-newsletter__input {
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: var( --cear-lazy-radius );
	font: inherit;
	background: var( --cear-lazy-input-bg );
	color: var( --cear-lazy-input-color );
	box-sizing: border-box;
}

.cear-lazy-newsletter__legal {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var( --cear-lazy-muted );
}
.cear-lazy-newsletter__legal a {
	color: var( --cear-lazy-accent );
	text-decoration: underline;
}

.cear-lazy-newsletter__consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.45;
	color: var( --cear-lazy-muted );
	cursor: pointer;
}
.cear-lazy-newsletter__consent input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}
.cear-lazy-newsletter__consent a {
	color: var( --cear-lazy-accent );
	text-decoration: underline;
}

.cear-lazy-newsletter__button {
	width: 100%;
	padding: 14px 18px;
	font-size: 15px;
	margin-top: 4px;
}

/* --------------------------------------------------------------------
 * Estados compartidos
 * -------------------------------------------------------------------- */
.cear-lazy-form__loader {
	padding: 12px 0;
	font-size: 14px;
	opacity: .7;
	color: var( --cear-lazy-text );
}
.cear-lazy-form__loader::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cear-lazy-spin .8s linear infinite;
	vertical-align: -2px;
}
@keyframes cear-lazy-spin {
	to { transform: rotate( 360deg ); }
}

.cear-lazy-form[data-state="error"] .cear-lazy-form__placeholder::after {
	content: attr( data-error );
	display: block;
	color: #e57373;
	font-size: 13px;
	margin-top: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}
