.rcf-wrap {
	max-width: 640px;
}

.rcf-title {
	margin: 0 0 1rem;
}

.rcf-field {
	margin: 0 0 1rem;
}

.rcf-field label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
}

.rcf-field label span {
	color: #dc2626;
}

.rcf-field input,
.rcf-field textarea {
	width: 100%;
	padding: .6rem .75rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.rcf-field input:focus,
.rcf-field textarea:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.rcf-has-error input,
.rcf-has-error textarea {
	border-color: #dc2626;
}

.rcf-field-error {
	display: block;
	margin-top: .3rem;
	font-size: .85em;
	color: #dc2626;
}

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

.rcf-actions {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.rcf-submit {
	padding: .65rem 1.4rem;
	border: 0;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.rcf-submit:hover:not(:disabled) {
	background: #1d4ed8;
}

.rcf-submit:disabled {
	opacity: .6;
	cursor: default;
}

.rcf-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: rcf-spin .7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.rcf-spinner { animation: none; }
}

.rcf-response:not(:empty) {
	margin-top: 1rem;
	padding: .75rem 1rem;
	border-radius: 6px;
}

.rcf-response.rcf-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.rcf-response.rcf-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
