/* Container layout */
.ai-forms-archive,
.ai-forms-single {
	margin: 2rem auto;
	max-width: 960px;
	padding: 0 1.5rem;
}

/* Archive header and title */
.ai-forms-archive__header {
	margin-bottom: 1.5rem;
}

.ai-forms-archive__title {
	margin: 0 0 0.75rem;
	font-size: 1.6rem;
	line-height: 1.3;
}

/* Filter form */
.ai-forms-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	padding: 1rem;
	border: 1px solid #d8dbe0;
	border-radius: 6px;
	background: #f8f9fb;
}

.ai-forms-filter-form__field {
	flex: 1 1 180px;
	min-width: 160px;
}

.ai-forms-filter-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
	color: #20242b;
}

.ai-forms-filter-form__field select,
.ai-forms-filter-form__field input[type="search"] {
	width: 100%;
	padding: 0.5rem 0.65rem;
	font-size: 1rem;
	line-height: 1.3;
	color: #1f2933;
	border: 1px solid #cfd3d8;
	border-radius: 4px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ai-forms-filter-form__actions {
	flex: 0 0 auto;
}

.ai-forms-filter-form__submit {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2b6cb0;
	border: 1px solid #245a92;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-forms-filter-form__submit:hover,
.ai-forms-filter-form__submit:focus {
	background: #245a92;
	border-color: #1f4e7c;
	box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
	outline: none;
}

.ai-forms-filter-form__submit:active {
	background: #1f4e7c;
	border-color: #1a3f64;
}

/* Archive content */
.ai-forms-archive__content {
	margin-top: 1.5rem;
}

/* List */
.ai-forms-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.ai-forms-list__item {
	padding: 1rem 1.25rem;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-forms-list__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.4;
}

.ai-forms-list__title a {
	color: inherit;
	text-decoration: none;
}

.ai-forms-list__title a:hover,
.ai-forms-list__title a:focus {
	color: #2b6cb0;
	text-decoration: underline;
}

.ai-forms-list__excerpt {
	margin-bottom: 0.5rem;
	color: #4a5568;
}

.ai-forms-list__categories {
	margin-bottom: 0.75rem;
	font-size: 0.95rem;
	color: #2d3748;
}

.ai-forms-list__categories a {
	color: #2b6cb0;
	text-decoration: none;
}

.ai-forms-list__categories a:hover,
.ai-forms-list__categories a:focus {
	text-decoration: underline;
}

.ai-forms-list__actions {
	margin-top: 0.5rem;
}

.ai-forms-list__link {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	font-weight: 600;
	color: #2b6cb0;
	border: 1px solid #2b6cb0;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ai-forms-list__link:hover,
.ai-forms-list__link:focus {
	color: #fff;
	background: #2b6cb0;
	border-color: #245a92;
}

/* No results */
.ai-forms-no-results {
	padding: 1rem 1.25rem;
	border: 1px solid #f0b429;
	border-radius: 6px;
	background: #fff8e5;
	color: #5c4a1f;
}

/* Pagination */
.ai-forms-pagination {
	margin-top: 1.5rem;
	text-align: center;
}

.ai-forms-pagination .pagination,
.ai-forms-pagination nav {
	display: inline-block;
}

.ai-forms-pagination .page-numbers {
	display: inline-block;
	margin: 0 0.15rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #dfe3e8;
	border-radius: 4px;
	text-decoration: none;
	color: #2d3748;
}

.ai-forms-pagination .page-numbers:hover,
.ai-forms-pagination .page-numbers:focus {
	border-color: #2b6cb0;
	color: #2b6cb0;
	outline: none;
}

.ai-forms-pagination .page-numbers.current {
	background: #2b6cb0;
	border-color: #2b6cb0;
	color: #fff;
}

/* Single */
.ai-form {
	padding: 1.5rem;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ai-form__header {
	margin-bottom: 1rem;
}

.ai-form__title {
	margin: 0;
	font-size: 1.7rem;
	line-height: 1.3;
}

.ai-form__content {
	margin-bottom: 1rem;
}

.ai-form__notice {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	border: 1px solid transparent;
}

.ai-form__notice--warning {
	border-color: #f6ad55;
	background: #fff6eb;
	color: #7c4b11;
}

.ai-form__footer {
	margin-top: 1rem;
	border-top: 1px solid #e2e4e8;
	padding-top: 0.75rem;
}

.ai-form__categories {
	color: #2d3748;
}

.ai-form__categories a {
	color: #2b6cb0;
	text-decoration: none;
}

.ai-form__categories a:hover,
.ai-form__categories a:focus {
	text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.ai-forms-archive,
	.ai-forms-single {
		padding: 0 1rem;
	}

	.ai-forms-filter-form {
		padding: 0.85rem;
	}

	.ai-forms-filter-form__actions {
		width: 100%;
	}

	.ai-forms-filter-form__submit {
		width: 100%;
		text-align: center;
	}
}

@media (min-width: 768px) {
	.ai-forms-filter-form__field--search {
		flex: 2 1 240px;
	}
}