/**
 * Custom AI Forms — Frontend Styles
 *
 * Minimal, theme-agnostic CSS. All rules are scoped to .ai-forms-wrap
 * to avoid conflicting with theme or other plugin styles.
 */

/* =============================================================
   Box-sizing reset scoped to the plugin wrapper only
   ============================================================= */

.ai-forms-wrap *,
.ai-forms-wrap *::before,
.ai-forms-wrap *::after {
	box-sizing: border-box;
}

/* =============================================================
   Wrapper
   ============================================================= */

.ai-forms-wrap {
	max-width: 600px;
	margin: 0 auto;
}

/* =============================================================
   Individual field containers
   ============================================================= */

.ai-forms-field {
	margin-bottom: 18px;
}

.ai-forms-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.95em;
}

/* =============================================================
   Inputs, selects, and textareas
   ============================================================= */

.ai-forms-field input,
.ai-forms-field select,
.ai-forms-field textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	line-height: 1.5;
	font-family: inherit;
	color: inherit;
	background-color: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-forms-field input:focus,
.ai-forms-field select:focus,
.ai-forms-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba( 34, 113, 177, 0.2 );
}

/* =============================================================
   Submit button
   ============================================================= */

.ai-forms-submit {
	display: inline-block;
	padding: 10px 28px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.ai-forms-submit:hover {
	background: #135e96;
}

.ai-forms-submit:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.ai-forms-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* =============================================================
   Response area (success / error messages)
   ============================================================= */

.ai-forms-response {
	margin-bottom: 12px;
	min-height: 0;
}

.ai-forms-success {
	color: #1a7a3c;
	background: #edfaef;
	border: 1px solid #a7d7b3;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 0;
}

.ai-forms-error {
	color: #8b1a1a;
	background: #fdf0f0;
	border: 1px solid #f0a8a8;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 0;
}
