/* FitFold Core — booking form + WhatsApp button.
   Uses the theme's tokens when present, with safe fallbacks. */

.ff-booking {
	--_ink: var(--ff-ink, #1a1a1a);
	--_copper: var(--ff-copper, #bf5521);
	--_line: var(--ff-line, #ddd5c8);
	--_paper: var(--ff-white, #fff);
	--_muted: var(--ff-stone, #6b6560);
	color: var(--_ink);
	scroll-margin-top: 120px;
}

.ff-booking__title { margin: 0 0 20px; font-size: 1.35rem; }

.ff-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}
@media (max-width: 640px) {
	.ff-form__grid { grid-template-columns: 1fr; }
}

.ff-field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; min-width: 0; }
.ff-field label, .ff-field legend { font-size: 0.875rem; font-weight: 600; }
.ff-field input[type="text"],
.ff-field input[type="tel"],
.ff-field input[type="email"],
.ff-field input[type="date"],
.ff-field select,
.ff-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--_ink);
	background: var(--_paper);
	border: 1px solid var(--_line);
	border-radius: 0;
	padding: 13px 14px;
	min-height: 50px;
	transition: border-color .2s;
}
.ff-field textarea { min-height: 96px; resize: vertical; }
.ff-field input:focus, .ff-field select:focus, .ff-field textarea:focus {
	outline: 2px solid var(--_copper);
	outline-offset: 0;
	border-color: var(--_copper);
}

.ff-field--chips { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ff-field--chips legend { width: 100%; margin-bottom: 10px; }
.ff-chip { position: relative; cursor: pointer; }
.ff-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ff-chip span {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid var(--_line);
	background: var(--_paper);
	font-size: 0.875rem;
	font-weight: 500;
	min-height: 44px;
	box-sizing: border-box;
	line-height: 22px;
	transition: background .2s, border-color .2s, color .2s;
}
.ff-chip input:checked + span { background: var(--_ink); border-color: var(--_ink); color: #fff; }
.ff-chip input:focus-visible + span { outline: 2px solid var(--_copper); outline-offset: 2px; }

.ff-field--consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.ff-field--consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--_copper); flex: none; }

.ff-form__note { font-size: 0.8125rem; color: var(--_muted); margin: 12px 0 0; }

.ff-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ff-booking__error {
	border-left: 3px solid #b3261e;
	background: #fbeceb;
	color: #7a1a14;
	padding: 12px 16px;
	margin: 0 0 20px;
}
.ff-booking__done {
	padding: 32px;
	background: var(--_paper);
	border: 1px solid var(--_line);
	text-align: left;
}
.ff-booking__done .ff-icon { width: 40px; height: 40px; color: var(--_copper); }
.ff-booking__done-title { font-size: 1.35rem; font-weight: 700; margin: 12px 0 6px; }

/* Buttons (only if the theme does not style .ff-btn) */
.ff-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 14px 26px;
	font: inherit; font-weight: 600; font-size: 0.9375rem; letter-spacing: .01em;
	border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.ff-btn--primary { background: var(--_copper, #bf5521); color: #fff; }
.ff-btn--primary:hover { background: var(--_ink, #1a1a1a); }
.ff-btn--whatsapp { background: #1f7a4d; color: #fff; }

/* Floating WhatsApp */
.ff-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	background: #1f7a4d; color: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
	transition: transform .2s;
}
.ff-wa-float:hover { transform: translateY(-2px); color: #fff; }
.ff-wa-float:focus-visible { outline: 3px solid #bf5521; outline-offset: 3px; }
