.ff-form.ff-theme-light {
	max-width: 640px;
	font-size: 1.05rem;
}

/* A single cohesive panel instead of fields floating loose on the page. */
.ff-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: var(--radius, 4px);
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	padding: 2rem;
}
@media (max-width: 480px) {
	.ff-card { padding: 1.25rem; }
}

.ff-section-heading {
	flex: 1 1 100%;
	font-family: var(--font-heading, 'Trirong', serif);
	font-weight: 500;
	font-size: 1.15rem;
	color: var(--charcoal, #2a2a2a);
	margin: 1.5rem 0 0.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(201, 162, 87, 0.35);
}
.ff-fields > .ff-section-heading:first-child { margin-top: 0; }

/* Honeypot: hidden from real visitors, present in the DOM for bots to fill in. */
.ff-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ff-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.ff-field {
	flex: 1 1 100%;
	margin-bottom: 0;
}
.ff-field.ff-width-half {
	flex: 1 1 calc(50% - 0.75rem);
}
@media (max-width: 560px) {
	.ff-field.ff-width-half { flex: 1 1 100%; }
}

.ff-form.ff-theme-light label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--ff-label-color, var(--charcoal, #2a2a2a));
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ff-required { color: var(--brick, #a33); }
.ff-optional { color: #767676; font-weight: 400; text-transform: none; letter-spacing: normal; }

.ff-form.ff-theme-light input[type="text"],
.ff-form.ff-theme-light input[type="email"],
.ff-form.ff-theme-light input[type="tel"],
.ff-form.ff-theme-light input[type="number"],
.ff-form.ff-theme-light input[type="date"],
.ff-form.ff-theme-light input[type="month"],
.ff-form.ff-theme-light select,
.ff-form.ff-theme-light textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: var(--radius, 4px);
	font-size: 1.05rem;
	font-family: inherit;
	background: #fcfbf9;
	color: var(--ff-input-color, #2a2a2a);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ff-form.ff-theme-light input:hover,
.ff-form.ff-theme-light select:hover,
.ff-form.ff-theme-light textarea:hover {
	border-color: rgba(201, 162, 87, 0.5);
}

.ff-form.ff-theme-light input:focus,
.ff-form.ff-theme-light select:focus,
.ff-form.ff-theme-light textarea:focus {
	outline: none;
	border-color: var(--brass, #c9a257);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(201, 162, 87, 0.22);
}

.ff-help { margin-top: 0.4rem; font-size: 0.95rem; color: var(--ff-help-color, #666); }

/* ── Floating labels: text/email/tel/number/date/month ─────────────────────
   The label sits over the input's resting position and floats up once the
   field is focused or has a value, using the native :placeholder-shown
   pseudo-class (the input gets placeholder=" " purely to make this work —
   no visible placeholder text). CSS-only, no JS required. Textarea is
   deliberately excluded — :placeholder-shown is unreliable on <textarea>
   across browsers, which stuck the "floated" state on permanently. */
.ff-field-floating {
	position: relative;
	padding-top: 1.1rem;
}
.ff-field-floating input {
	padding-top: 1.1rem;
	padding-bottom: 0.6rem;
}
.ff-field-floating label {
	position: absolute;
	left: 1rem;
	top: calc(1.1rem + 0.85rem);
	transform: translateY(-50%);
	margin: 0;
	background: transparent;
	font-size: 1.05rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	color: #767676;
	pointer-events: none;
	transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.ff-field-floating input:focus ~ label,
.ff-field-floating input:not(:placeholder-shown) ~ label {
	top: 0.65rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ff-label-color, var(--brass, #c9a257));
}
/* date/month inputs always show a value-shaped UI even when empty in some
   browsers, so keep their label floated permanently to avoid overlap. */
.ff-field-floating input[type="date"] ~ label,
.ff-field-floating input[type="month"] ~ label {
	top: 0.65rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.ff-field-floating input[type="date"],
.ff-field-floating input[type="month"] { padding-top: 1.3rem; }
.ff-field-floating .ff-help { margin-top: 0.5rem; }

/* Radio / checkbox groups: large native inputs, generous tap targets. */
.ff-radio-group, .ff-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.ff-radio-option, .ff-checkbox-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid rgba(0,0,0,0.14);
	border-radius: var(--radius, 4px);
	background: #fcfbf9;
	cursor: pointer;
	font-size: 1rem;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ff-radio-option:hover, .ff-checkbox-option:hover {
	border-color: rgba(201, 162, 87, 0.5);
	background: #fff;
}
.ff-radio-option input, .ff-checkbox-option input {
	width: 1.4rem;
	height: 1.4rem;
	flex-shrink: 0;
	margin: 0;
	accent-color: var(--brass, #c9a257);
}
.ff-radio-option span, .ff-checkbox-option span {
	color: var(--ff-option-color, inherit);
}

/* Card-picker variant for radio groups. Every layout property is explicit
   here (not inherited from .ff-radio-option) so the circle+text always
   stack and center as one unit, regardless of cascade order. */
.ff-radio-group.ff-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}
.ff-radio-group.ff-cards .ff-radio-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.6rem;
	min-height: 96px;
	padding: 1.5rem 1.25rem;
	border: 2px solid #ddd;
	background: #fff;
	border-radius: var(--radius, 4px);
}
.ff-radio-group.ff-cards .ff-radio-option input {
	margin: 0;
}
.ff-radio-group.ff-cards .ff-radio-option span {
	line-height: 1.3;
}
.ff-radio-group.ff-cards .ff-radio-option.ff-selected {
	border: 2px solid var(--brass, #c9a257);
	background: #fbf6ec;
	box-shadow: 0 2px 8px rgba(201,162,87,0.2);
}
.ff-card-help { margin-top: 0.75rem; color: #555; font-style: italic; }

/* Stepper variant for number fields. */
.ff-stepper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ff-stepper input[type="number"] {
	width: 5rem;
	text-align: center;
}
.ff-stepper button {
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
	font-size: 1.4rem;
	border: 1px solid rgba(0,0,0,0.16);
	border-radius: var(--radius, 4px);
	background: #fcfbf9;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ff-stepper button:hover { border-color: var(--brass, #c9a257); background: #fff; }

.ff-btn {
	background: var(--brass, #c9a257);
	color: var(--ff-button-color, var(--charcoal, #1a1a1a));
	border: none;
	padding: 1rem 2.5rem;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: var(--radius, 4px);
	cursor: pointer;
	margin-top: 1.75rem;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.ff-btn:hover { background: #d8b36c; box-shadow: 0 3px 10px rgba(201,162,87,0.35); transform: translateY(-1px); }
.ff-btn:active { transform: translateY(0); box-shadow: none; }

.ff-btn-ghost {
	background: transparent;
	color: var(--charcoal, #2a2a2a);
	border: 1px solid rgba(0,0,0,0.2);
	box-shadow: none;
}
.ff-btn-ghost:hover { background: rgba(0,0,0,0.04); box-shadow: none; transform: none; }

.ff-acceptance-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
	text-transform: none;
	font-weight: 400;
	letter-spacing: normal;
	font-size: 0.95rem;
	color: var(--ff-option-color, #444);
}
.ff-acceptance-label input { width: 1.4rem; height: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; accent-color: var(--brass, #c9a257); }

.ff-message { padding: 1.25rem 1.5rem; border-radius: var(--radius, 4px); margin-bottom: 1.5rem; }
.ff-message.ff-success { background: #eaf6ec; border: 1px solid #a9d8b2; color: #235127; }
.ff-message.ff-error { background: #fbeaea; border: 1px solid #e3a8a8; color: #7a2020; }

/* ── Multi-step wizard ──────────────────────────────────────────────────── */
.ff-wizard-progress {
	height: 6px;
	border-radius: 3px;
	background: rgba(0,0,0,0.08);
	overflow: hidden;
	margin-bottom: 0.6rem;
}
.ff-wizard-progress-fill {
	height: 100%;
	background: var(--brass, #c9a257);
	transition: width 0.2s ease;
}
.ff-wizard-stepcount {
	margin: 0 0 1.5rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #888;
}
.ff-wizard-step .ff-section-heading:first-child { margin-top: 0; }
.ff-wizard-step[hidden] { display: none; }
.ff-wizard-step {
	animation: ff-step-in 0.15s ease;
}
@keyframes ff-step-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
.ff-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.75rem;
}
.ff-wizard-nav .ff-btn { margin-top: 0; }
.ff-wizard-nav .ff-wizard-next,
.ff-wizard-nav .ff-wizard-submit { margin-left: auto; }

/* Submission confirmation popup — fast, one-time fade on success, not a fill-out-time animation. */
.ff-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 20, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	z-index: 100000;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.ff-modal-backdrop.ff-modal-open { opacity: 1; }
.ff-modal {
	background: #fff;
	border-radius: var(--radius, 4px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	max-width: 420px;
	width: 100%;
	padding: 2.5rem 2rem 2rem;
	text-align: center;
	position: relative;
	transform: scale(0.96);
	transition: transform 0.15s ease;
}
.ff-modal-backdrop.ff-modal-open .ff-modal { transform: scale(1); }
.ff-modal-icon {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--brass, #c9a257);
	color: #fff;
	font-size: 1.4rem;
}
.ff-modal-text { color: #2a2a2a; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.ff-modal-close {
	position: absolute;
	top: 0.6rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0.25rem;
}
.ff-modal-close:hover { color: #333; }
