/* Coordinotes Widgets — basisstijlen formulier (verfijnbaar via Elementor Style-tab) */

.cw-form-wrapper {
	box-sizing: border-box;
}

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

.cw-form-fields {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 16px;
}

@media (max-width: 767px) {
	.cw-form-fields .cw-field {
		grid-column: span 12 !important;
	}
}

.cw-field {
	min-width: 0;
}

.cw-field[hidden],
.cw-field.cw-conditionally-hidden {
	display: none !important;
}

.cw-field-label {
	display: block;
	font-weight: 600;
}

.cw-form.cw-label-inline .cw-field {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cw-form.cw-label-inline .cw-field-label {
	margin-bottom: 0;
	flex: 0 0 140px;
}

.cw-form.cw-label-inline .cw-field > input,
.cw-form.cw-label-inline .cw-field > textarea,
.cw-form.cw-label-inline .cw-field > select {
	flex: 1 1 auto;
}

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

.cw-form input[type="text"],
.cw-form input[type="email"],
.cw-form input[type="tel"],
.cw-form input[type="number"],
.cw-form input[type="url"],
.cw-form input[type="password"],
.cw-form input[type="date"],
.cw-form input[type="time"],
.cw-form input[type="file"],
.cw-form textarea,
.cw-form select {
	width: 100%;
	display: block;
	font-family: inherit;
	font-size: 15px;
	border: 1px solid #d5d8dc;
	border-radius: 4px;
	padding: 10px 14px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.cw-form input:focus,
.cw-form textarea:focus,
.cw-form select:focus {
	outline: none;
	border-color: #2563eb;
}

.cw-form textarea {
	resize: vertical;
	min-height: 120px;
}

.cw-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cw-choice label,
.cw-choices label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.cw-field-hint {
	font-size: 12px;
	opacity: .7;
	margin-top: 4px;
}

.cw-field-error {
	color: #e33d3d;
	font-size: 13px;
	margin-top: 4px;
	min-height: 0;
}

.cw-field.cw-has-error input,
.cw-field.cw-has-error textarea,
.cw-field.cw-has-error select {
	border-color: #e33d3d;
}

.cw-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cw-submit-row {
	display: flex;
	margin-top: 10px;
}

.cw-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	background: #2563eb;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 4px;
	transition: background-color .15s ease, transform .1s ease;
}

.cw-btn-width-full .cw-submit-button {
	width: 100%;
	display: flex;
}

.cw-btn-width-auto .cw-submit-button {
	width: auto;
}

.cw-submit-button:disabled {
	opacity: .7;
	cursor: default;
}

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

.cw-form.cw-is-submitting .cw-btn-spinner {
	display: inline-block;
}

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

.cw-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 14px;
}

.cw-notice-success {
	background: #e7f7ee;
	color: #1e7e46;
}

.cw-notice-error {
	background: #fdeaea;
	color: #a52424;
}
