.cnw-form-wrap {
	max-width: var(--cnw-max-width, 640px);
	margin: 0 auto;
	padding: var(--cnw-padding, 28px);
	background: var(--cnw-bg, #ffffff);
	border: 1px solid var(--cnw-border, #e5e7eb);
	border-radius: var(--cnw-radius, 16px);
	box-shadow: var(--cnw-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
	color: var(--cnw-text, #111827);
	font-family: inherit;
	line-height: 1.5;
}

.cnw-form-wrap *,
.cnw-form-wrap *::before,
.cnw-form-wrap *::after {
	box-sizing: border-box;
}

.cnw-form__title {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
	color: inherit;
}

.cnw-form__intro {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--cnw-label, #4b5563);
}

.cnw-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cnw-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cnw-field--full {
	grid-column: 1 / -1;
}

.cnw-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--cnw-label, #374151);
}

.cnw-field input[type="text"],
.cnw-field input[type="email"],
.cnw-field input[type="tel"],
.cnw-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--cnw-input-border, #d1d5db);
	border-radius: 8px;
	background: var(--cnw-input-bg, #ffffff);
	color: var(--cnw-text, #111827);
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	box-shadow: none;
}

.cnw-field input[type="text"]:focus,
.cnw-field input[type="email"]:focus,
.cnw-field input[type="tel"]:focus,
.cnw-field textarea:focus {
	outline: none;
	border-color: var(--cnw-button-bg, #111827);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.cnw-field textarea {
	resize: vertical;
	min-height: 84px;
}

.cnw-consent {
	margin-top: 2px;
}

.cnw-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	color: #4b5563;
	cursor: pointer;
}

.cnw-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
}

.cnw-checkbox a {
	color: var(--cnw-button-bg, #1d4ed8);
	text-decoration: underline;
}

.cnw-submit {
	width: 100%;
	border: 0;
	border-radius: var(--cnw-button-radius, 8px);
	background: var(--cnw-button-bg, #111827);
	color: var(--cnw-button-text, #ffffff);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	padding: 13px 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.cnw-submit:hover {
	filter: brightness(0.9);
}

.cnw-submit:focus-visible {
	outline: 3px solid rgba(17, 24, 39, 0.35);
	outline-offset: 2px;
}

.cnw-message {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid transparent;
}

.cnw-message--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.cnw-message--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.cnw-message--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.cnw-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cnw-notice {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 380px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #166534;
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.cnw-notice--error {
	background: #991b1b;
}

.cnw-notice__close {
	color: #ffffff;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
	opacity: 0.8;
}

.cnw-notice__close:hover {
	opacity: 1;
}

.cnw-license-locked {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	color: #374151;
	text-align: center;
	font-family: inherit;
	line-height: 1.6;
}

.cnw-license-locked p {
	margin: 0 0 10px;
}

.cnw-license-locked p:last-child {
	margin-bottom: 0;
}

.cnw-license-locked a {
	color: #1d4ed8;
}

@media (max-width: 600px) {
	.cnw-form-wrap {
		padding: min(20px, var(--cnw-padding, 20px));
		border-radius: min(12px, var(--cnw-radius, 12px));
	}

	.cnw-form__grid {
		grid-template-columns: 1fr;
	}

	.cnw-notice {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}
