/* ODW Forms — front-end. Neutral on purpose so it inherits the theme's type. */

.odwf-wrap {
	--odwf-accent: #2b6cff;
	--odwf-border: #d9dce1;
	--odwf-error: #d63638;
	max-width: 720px;
}

.odwf-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

.odwf-field {
	box-sizing: border-box;
	padding: 0 8px;
	margin-bottom: 18px;
	width: 100%;
}

.odwf-col-50 { width: 50%; }
.odwf-col-33 { width: 33.3333%; }

@media (max-width: 600px) {
	.odwf-col-50,
	.odwf-col-33 { width: 100%; }
}

.odwf-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	line-height: 1.4;
}

.odwf-star { color: var(--odwf-error); }

.odwf-field input[type="text"],
.odwf-field input[type="email"],
.odwf-field input[type="tel"],
.odwf-field input[type="url"],
.odwf-field input[type="number"],
.odwf-field input[type="date"],
.odwf-field select,
.odwf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid var(--odwf-border);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	line-height: 1.4;
	color: inherit;
}

.odwf-field input:focus,
.odwf-field select:focus,
.odwf-field textarea:focus {
	outline: 2px solid var(--odwf-accent);
	outline-offset: 1px;
	border-color: var(--odwf-accent);
}

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

.odwf-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	line-height: 1.5;
}

.odwf-choice input { margin-top: 3px; }

.odwf-help {
	margin: 6px 0 0;
	font-size: 0.875em;
	opacity: 0.7;
}

.odwf-error {
	display: block;
	margin-top: 5px;
	color: var(--odwf-error);
	font-size: 0.875em;
}

.odwf-has-error input,
.odwf-has-error select,
.odwf-has-error textarea {
	border-color: var(--odwf-error);
}

.odwf-actions { margin-top: 8px; }

.odwf-submit {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--odwf-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.odwf-submit:hover { filter: brightness(0.94); }
.odwf-submit:disabled { opacity: 0.6; cursor: wait; }

.odwf-message { margin-top: 16px; }
.odwf-message:empty { display: none; }

.odwf-message.is-success {
	padding: 16px 18px;
	border-left: 3px solid #2f9e44;
	background: #f1f9f3;
}

.odwf-message.is-error {
	padding: 12px 16px;
	border-left: 3px solid var(--odwf-error);
	background: #fdf2f2;
	color: #8a1f21;
}

.odwf-message p:first-child { margin-top: 0; }
.odwf-message p:last-child { margin-bottom: 0; }

.odwf-closed {
	padding: 18px 20px;
	border: 1px dashed var(--odwf-border);
	border-radius: 8px;
	background: #fafafa;
}

/* Honeypot — hidden from people, visible to bots. */
.odwf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
