.ldc-cf-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

.ldc-cf-wrap *,
.ldc-cf-wrap *::before,
.ldc-cf-wrap *::after {
	box-sizing: border-box;
}

/* Reset any margins a theme's global styles put on labels/inputs/paragraphs
   so this form's own spacing is the only spacing in effect. Button is
   excluded here — its padding is set explicitly per-button below. */
.ldc-cf-wrap label,
.ldc-cf-wrap input,
.ldc-cf-wrap textarea,
.ldc-cf-wrap p {
	margin: 0;
	padding: 0;
}

.ldc-cf-wrap button {
	margin: 0;
}

/* Toggle */
.ldc-cf-toggle {
	display: flex;
	gap: 0;
	background: #f2f2f2;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 28px;
}

.ldc-cf-toggle-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	color: #444;
	transition: background 0.2s ease, color 0.2s ease;
}

.ldc-cf-toggle-btn.is-active {
	background: #111;
	color: #fff;
}

.ldc-cf-toggle-btn[data-mode="whatsapp"].is-active {
	background: #25D366;
	color: #fff;
}

/* Form layout */
.ldc-cf-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.ldc-cf-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
	gap: 6px;
}

.ldc-cf-row .ldc-cf-field {
	margin-bottom: 0;
}

.ldc-cf-field-full {
	width: 100%;
}

.ldc-cf-field label {
	font-size: 13px;
	font-weight: 600;
	color: #222;
}

.ldc-cf-field input,
.ldc-cf-field textarea {
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
	line-height: 1.4;
}

.ldc-cf-field input:focus,
.ldc-cf-field textarea:focus {
	outline: none;
	border-color: #111;
}

.ldc-cf-field.has-error input,
.ldc-cf-field.has-error textarea {
	border-color: #d33;
}

.ldc-cf-error {
	display: none;
	color: #d33;
	font-size: 12px;
	margin-top: 4px;
}

.ldc-cf-field.has-error .ldc-cf-error {
	display: block;
}

/* Honeypot - hidden from real users */
.ldc-cf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Captcha */
.ldc-cf-captcha {
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 16px;
}

.ldc-cf-captcha label {
	font-size: 14px;
}

.ldc-cf-captcha input[type="text"] {
	max-width: 120px;
}

/* Submit button */
.ldc-cf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ldc-cf-submit:hover {
	opacity: 0.85;
}

.ldc-cf-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ldc-cf-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: ldc-cf-spin 0.7s linear infinite;
}

.ldc-cf-submit.is-loading .ldc-cf-spinner {
	display: inline-block;
}

.ldc-cf-submit.is-loading .ldc-cf-submit-text {
	opacity: 0.7;
}

@keyframes ldc-cf-spin {
	to { transform: rotate(360deg); }
}

.ldc-cf-status {
	margin-top: 14px;
	font-size: 14px;
}

.ldc-cf-status.is-success {
	color: #147a3a;
}

.ldc-cf-status.is-error {
	color: #d33;
}

/* WhatsApp panel */
.ldc-cf-whatsapp-cta {
	text-align: center;
	padding: 32px 20px;
	background: #f7fdf9;
	border: 1px solid #d7f0e0;
	border-radius: 16px;
}

.ldc-cf-whatsapp-cta p {
	margin: 0 0 20px;
	font-size: 15px;
	color: #333;
}

.ldc-cf-whatsapp-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25D366;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 999px;
	transition: opacity 0.15s ease;
}

.ldc-cf-whatsapp-link:hover {
	opacity: 0.88;
	color: #fff;
}

.ldc-cf-whatsapp-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.ldc-cf-toggle {
		margin-bottom: 18px;
	}

	.ldc-cf-row {
		flex-direction: column;
		gap: 12px;
		margin-bottom: 12px;
	}

	.ldc-cf-row .ldc-cf-field {
		flex: 1 1 auto;
	}

	.ldc-cf-field {
		margin-bottom: 12px;
	}

	.ldc-cf-field label {
		margin-bottom: 4px;
	}

	.ldc-cf-field input,
	.ldc-cf-field textarea {
		padding: 10px 12px;
	}

	.ldc-cf-captcha {
		padding: 12px 14px;
	}

	.ldc-cf-submit {
		width: 100%;
		padding: 13px 24px;
	}
}
