.ff-form.ff-theme-dark {
	max-width: 640px;
	color: #f2e8d5;
}

.ff-card {
	background: #1a1a1f;
	border: 1px solid rgba(201,162,87,0.25);
	border-radius: var(--radius, 4px);
	box-shadow: 0 4px 18px rgba(0,0,0,0.3);
	padding: 2.25rem;
}
@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.1rem;
	color: #f2e8d5;
	margin: 1.5rem 0 0.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(201, 162, 87, 0.3);
}
.ff-fields > .ff-section-heading:first-child { margin-top: 0; }

.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%; }
.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-dark label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--ff-label-color, #c9a257);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.ff-required { color: #c9a257; }
.ff-optional { color: rgba(242,232,213,0.5); font-weight: 400; text-transform: none; letter-spacing: normal; }

.ff-form.ff-theme-dark input[type="text"],
.ff-form.ff-theme-dark input[type="email"],
.ff-form.ff-theme-dark input[type="tel"],
.ff-form.ff-theme-dark input[type="number"],
.ff-form.ff-theme-dark input[type="date"],
.ff-form.ff-theme-dark input[type="month"],
.ff-form.ff-theme-dark select,
.ff-form.ff-theme-dark textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(201, 162, 87, 0.3);
	border-radius: var(--radius, 4px);
	font-size: 1rem;
	font-family: inherit;
	background: #0d0d10;
	color: var(--ff-input-color, #f2e8d5);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.ff-form.ff-theme-dark input:focus,
.ff-form.ff-theme-dark select:focus,
.ff-form.ff-theme-dark textarea:focus {
	outline: none;
	border-color: #c9a257;
	box-shadow: 0 0 0 3px rgba(201, 162, 87, 0.2);
}

.ff-help { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ff-help-color, rgba(242,232,213,0.6)); }

/* ── Floating labels: text/email/tel/number/date/month ─────────────────────
   Textarea deliberately excluded — see ff-form-light.css for why. */
.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.8rem);
	transform: translateY(-50%);
	margin: 0;
	background: transparent;
	font-size: 1rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	color: rgba(242,232,213,0.55);
	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.6rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ff-label-color, #c9a257);
}
.ff-field-floating input[type="date"] ~ label,
.ff-field-floating input[type="month"] ~ label {
	top: 0.6rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.ff-field-floating input[type="date"],
.ff-field-floating input[type="month"] { padding-top: 1.2rem; }
.ff-field-floating .ff-help { margin-top: 0.5rem; }

.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(201,162,87,0.25);
	border-radius: var(--radius, 4px);
	cursor: pointer;
	background: rgba(255,255,255,0.035);
	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: rgba(255,255,255,0.06);
}
.ff-radio-option input, .ff-checkbox-option input {
	width: 1.3rem;
	height: 1.3rem;
	flex-shrink: 0;
	margin: 0;
	accent-color: #c9a257;
}
.ff-radio-option span, .ff-checkbox-option span {
	color: var(--ff-option-color, inherit);
}

/* Card-picker variant — every layout property explicit, so 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 rgba(201,162,87,0.14);
	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 #c9a257;
	background: rgba(201,162,87,0.12);
	box-shadow: 0 2px 10px rgba(201,162,87,0.15);
}
.ff-card-help { margin-top: 0.75rem; color: rgba(242,232,213,0.7); font-style: italic; }

.ff-stepper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.ff-stepper input[type="number"] {
	width: 5rem;
	text-align: center;
}
.ff-stepper button {
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	font-size: 1.3rem;
	border: 1px solid rgba(201,162,87,0.3);
	border-radius: var(--radius, 4px);
	background: #1a1a1f;
	color: #f2e8d5;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ff-stepper button:hover { border-color: #c9a257; background: #232329; }

.ff-btn {
	background: #c9a257;
	color: var(--ff-button-color, #1a1a1a);
	border: none;
	padding: 0.9rem 2.5rem;
	font-size: 0.9rem;
	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 12px rgba(201,162,87,0.3); transform: translateY(-1px); }
.ff-btn:active { transform: translateY(0); box-shadow: none; }

.ff-btn-ghost {
	background: transparent;
	color: #f2e8d5;
	border: 1px solid rgba(201,162,87,0.35);
	box-shadow: none;
}
.ff-btn-ghost:hover { background: rgba(255,255,255,0.05); 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.9rem;
	color: var(--ff-option-color, rgba(242,232,213,0.8));
}
.ff-acceptance-label input { width: 1.3rem; height: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; accent-color: #c9a257; }

.ff-message { padding: 1.25rem 1.5rem; border-radius: var(--radius, 4px); margin-bottom: 1.5rem; border: 1px solid rgba(201,162,87,0.3); }
.ff-message.ff-success { background: rgba(201,162,87,0.08); }
.ff-message.ff-error { background: rgba(163,51,51,0.15); border-color: rgba(163,51,51,0.4); }

/* ── Multi-step wizard ──────────────────────────────────────────────────── */
.ff-wizard-progress {
	height: 6px;
	border-radius: 3px;
	background: rgba(255,255,255,0.08);
	overflow: hidden;
	margin-bottom: 0.6rem;
}
.ff-wizard-progress-fill {
	height: 100%;
	background: #c9a257;
	transition: width 0.2s ease;
}
.ff-wizard-stepcount {
	margin: 0 0 1.5rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(242,232,213,0.5);
}
.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(0, 0, 0, 0.65);
	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: #1a1a1f;
	border: 1px solid rgba(201,162,87,0.3);
	border-radius: var(--radius, 4px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.5);
	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: #c9a257;
	color: #1a1a1a;
	font-size: 1.4rem;
}
.ff-modal-text { color: #f2e8d5; 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: rgba(242,232,213,0.5);
	cursor: pointer;
	padding: 0.25rem;
}
.ff-modal-close:hover { color: #f2e8d5; }
