/**
 * WhatsApp Lead Capture Pro — frontend styles.
 * Mobile-first and responsive.
 */

.wlcp-form-wrapper {
	max-width: 420px;
	margin: 1.5em auto;
	box-sizing: border-box;
}

.wlcp-form-wrapper *,
.wlcp-form-wrapper *::before,
.wlcp-form-wrapper *::after {
	box-sizing: border-box;
}

.wlcp-form {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	padding: 1.25em;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wlcp-field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.wlcp-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: #1a202c;
}

.wlcp-required {
	color: #e53e3e;
}

.wlcp-input {
	width: 100%;
	padding: 0.75em 0.9em;
	font-size: 1rem;
	border: 1px solid #cbd5e0;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wlcp-input:focus {
	border-color: #25d366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.wlcp-input.wlcp-invalid {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.wlcp-hint {
	font-size: 0.8rem;
	color: #718096;
}

.wlcp-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8em 1.2em;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: #25d366;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.wlcp-submit:hover {
	background: #1da851;
}

.wlcp-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.wlcp-message {
	font-size: 0.9rem;
	min-height: 1.2em;
}

.wlcp-message.wlcp-success {
	color: #1da851;
	font-weight: 600;
}

.wlcp-message.wlcp-error {
	color: #e53e3e;
	font-weight: 600;
}

/* Small screens */
@media (max-width: 480px) {
	.wlcp-form {
		padding: 1em;
	}
	.wlcp-input,
	.wlcp-submit {
		font-size: 1.05rem;
	}
}
