.nwform-container {
	max-width: 640px;
	margin: 1.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.nwform-title {
	margin: 0 0 1.2em;
	font-size: 1.5em;
	font-weight: 600;
	color: #1d2327;
}

.nwform-field {
	margin-bottom: 1.4em;
	transition: all 0.2s ease;
}

.nwform-field label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.nwform-field input[type="text"],
.nwform-field input[type="email"],
.nwform-field input[type="number"],
.nwform-field textarea,
.nwform-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 15px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.nwform-field input:focus,
.nwform-field textarea:focus,
.nwform-field select:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.nwform-field textarea {
	min-height: 140px;
	resize: vertical;
}

.nwform-checkbox label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.nwform-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.15s;
}

.nwform-button:hover {
	background: #135e96;
}

.nwform-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.nwform-messages {
	margin-top: 1.2em;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}

.nwform-messages.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.nwform-messages.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.nwform-field.has-error input,
.nwform-field.has-error textarea,
.nwform-field.has-error select {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638;
	background-color: #fff8f8;
}

.nwform-field.has-error label {
	color: #d63638;
}

.nwform-field-error {
	color: #d63638;
	font-size: 13px;
	margin-top: 6px;
	display: block;
	font-weight: 500;
	animation: nwformFadeIn 0.2s ease;
}

.nwform-field.valid input,
.nwform-field.valid textarea,
.nwform-field.valid select {
	border-color: #00a32a;
}

@keyframes nwformFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Style variants */
.nwform-style-modern .nwform-field input,
.nwform-style-modern .nwform-field textarea,
.nwform-style-modern .nwform-field select {
	border-radius: 8px;
	border-width: 2px;
}

.nwform-style-modern .nwform-button {
	border-radius: 8px;
	background: linear-gradient(135deg, #2271b1, #135e96);
}

.nwform-style-minimal .nwform-field input,
.nwform-style-minimal .nwform-field textarea,
.nwform-style-minimal .nwform-field select {
	border: none;
	border-bottom: 2px solid #c3c4c7;
	border-radius: 0;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
}

.nwform-style-minimal .nwform-button {
	border-radius: 0;
	background: #1d2327;
}

.nwform-style-rounded .nwform-field input,
.nwform-style-rounded .nwform-field textarea,
.nwform-style-rounded .nwform-field select {
	border-radius: 30px;
	padding-left: 18px;
	padding-right: 18px;
}

.nwform-style-rounded .nwform-button {
	border-radius: 30px;
	padding-left: 32px;
	padding-right: 32px;
}
