/* Reco Form Submissions — front-end form styling (uses theme tokens). */
.rfs-form {
	--rfs-green: var( --green, #214c3b );
	--rfs-mint: var( --mintgreen, #1aba8a );
	--rfs-sand: var( --sand, #fdf9ed );
	--rfs-err: #c0392b;
	max-width: 760px;
	margin: 0 auto;
	font-family: "Roboto", system-ui, sans-serif;
	color: #1d1d1d;
}

/* Honeypot — visually removed but present for bots. */
.rfs-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rfs-section {
	border: 1px solid rgba( 33, 76, 59, 0.18 );
	border-radius: 10px;
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 0 0 1.5rem;
	background: #fff;
}

.rfs-section-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var( --rfs-green );
	padding: 0 0.35rem;
	line-height: 1.3;
}

.rfs-section-note {
	margin: 0.25rem 0 0.5rem;
	font-size: 0.9rem;
	color: #555;
}

.rfs-fields {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.rfs-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.rfs-field > label,
.rfs-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: #2a2a2a;
}

.rfs-req {
	color: var( --rfs-err );
	margin-left: 2px;
}

.rfs-field input[type="text"],
.rfs-field input[type="email"],
.rfs-field input[type="tel"],
.rfs-field input[type="number"],
.rfs-field input[type="date"],
.rfs-field input[type="file"],
.rfs-field textarea,
.rfs-field select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c4ccc8;
	border-radius: 7px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.rfs-field textarea {
	resize: vertical;
	min-height: 110px;
}

.rfs-field input:focus,
.rfs-field textarea:focus,
.rfs-field select:focus {
	outline: none;
	border-color: var( --rfs-mint );
	box-shadow: 0 0 0 3px rgba( 26, 187, 137, 0.18 );
}

.rfs-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rfs-option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-weight: 400;
	font-size: 0.97rem;
	line-height: 1.35;
	cursor: pointer;
}

.rfs-option input {
	margin-top: 0.2rem;
	accent-color: var( --rfs-green );
	flex: 0 0 auto;
}

.rfs-hint {
	margin: 0;
	font-size: 0.83rem;
	color: #666;
}

.rfs-error {
	color: var( --rfs-err );
	font-size: 0.85rem;
	font-weight: 600;
}

.rfs-has-error input,
.rfs-has-error textarea,
.rfs-has-error select {
	border-color: var( --rfs-err );
	background: #fff6f5;
}

.rfs-form-error {
	background: #fff6f5;
	border: 1px solid var( --rfs-err );
	color: var( --rfs-err );
	border-radius: 7px;
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
	font-weight: 600;
}

.rfs-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.rfs-submit {
	background: var( --rfs-green );
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 2.25rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.rfs-submit:hover {
	background: var( --rfs-mint );
}

.rfs-submit:active {
	transform: translateY( 1px );
}

.rfs-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.rfs-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba( 33, 76, 59, 0.25 );
	border-top-color: var( --rfs-green );
	border-radius: 50%;
	animation: rfs-spin 0.7s linear infinite;
}

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

.rfs-success {
	background: rgba( 26, 187, 137, 0.12 );
	border: 1px solid var( --rfs-mint );
	border-radius: 10px;
	padding: 1.5rem;
	text-align: center;
	font-size: 1.15rem;
	font-weight: 600;
	color: var( --rfs-green );
}

@media ( max-width: 600px ) {
	.rfs-section {
		padding: 1rem 1rem 1.25rem;
	}
}
