/* Complaints Form - modern, responsive styles */
.cf-form-wrapper {
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}

.cf-form-wrapper *,
.cf-form-wrapper *::before,
.cf-form-wrapper *::after {
	box-sizing: border-box;
}

.cf-form {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.cf-form label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2937;
}

.cf-required {
	color: #dc2626;
}

.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 1rem;
	color: #111827;
	background: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	font-family: inherit;
}

.cf-form input:focus,
.cf-form textarea:focus {
	outline: none;
	background: #ffffff;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cf-form textarea {
	resize: vertical;
	min-height: 120px;
}

.cf-form input.cf-invalid,
.cf-form textarea.cf-invalid {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.cf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cf-submit:hover {
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cf-submit:active {
	transform: translateY(1px);
}

.cf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.cf-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	border-radius: 50%;
	display: none;
	animation: cf-spin 0.6s linear infinite;
}

.cf-form.is-loading .cf-spinner {
	display: inline-block;
}

@keyframes cf-spin {
	to {
		transform: rotate(360deg);
	}
}

.cf-alert {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.cf-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.cf-alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

@media (max-width: 540px) {
	.cf-form {
		padding: 20px;
	}
	.cf-field-row {
		grid-template-columns: 1fr;
	}
}
