/**
 * BespokeForever — customer appointment booking widget (v0.6.1+).
 * Reusable: a dedicated Appointment page, product pages, the quote flow.
 */

.bfpg-booking {
	max-width: 520px;
	margin: 20px 0;
	font-size: 14px;
	color: #3a3a3a;
}
.bfpg-booking__title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
}
.bfpg-booking__intro {
	margin: 0 0 16px;
	font-size: 13px;
	color: #50575e;
}

.bfpg-booking__field {
	display: block;
	margin-bottom: 14px;
}
.bfpg-booking__field > span {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 13px;
}
.bfpg-booking__opt {
	font-weight: 400;
	color: #8a8a8a;
}
.bfpg-booking__hint {
	font-style: italic;
	font-weight: 400;
	color: #8a8a8a;
	font-size: 12px;
	margin-left: 4px;
	letter-spacing: 0;
	text-transform: none;
}
.bfpg-booking__field input,
.bfpg-booking__field textarea,
.bfpg-booking__field select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #cfcfcf;
	border-radius: 5px;
	background: #fff;
	color: #3a3a3a;
	font-family: inherit;
	/* v0.9.24 — 16px stops iOS Safari auto-zooming when a field is tapped. */
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
	min-height: 42px;
	appearance: auto;
	-webkit-appearance: auto;
}
.bfpg-booking__field textarea {
	resize: vertical;
}
/* v0.24.1 — keep the native date field flush with the other inputs on mobile.
   iOS renders type=date with an intrinsic width + centred value, which looked
   misaligned; normalise the box and left-align the value. The picker still
   opens on tap. */
.bfpg-booking__field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	text-align: left;
}
.bfpg-booking__field input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}
.bfpg-booking__field input[type="date"]::-webkit-calendar-picker-indicator {
	margin-left: auto;
}

/* ── Slots ────────────────────────────────────────────────────────────────── */
.bfpg-booking__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	min-height: 8px;
	font-size: 13px;
	color: #50575e;
}
.bfpg-booking__slot {
	min-height: 38px;          /* v0.9.24 — a comfortable touch target */
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #cbb78f;
	border-radius: 20px;
	color: #6b5526;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.bfpg-booking__slot:hover,
.bfpg-booking__slot:focus {
	background: #f3ecdc;
}
.bfpg-booking__slot.is-active {
	background: #b08d57;
	border-color: #b08d57;
	color: #fff;
	font-weight: 600;
}

/* ── Appointment type ─────────────────────────────────────────────────────── */
.bfpg-booking__types {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #e4e4e4;
	border-radius: 6px;
}
.bfpg-booking__types legend {
	padding: 0 6px;
	font-weight: 600;
	font-size: 13px;
}
.bfpg-booking__types label {
	display: block;
	margin: 4px 0;
}

/* ── Consent + actions ────────────────────────────────────────────────────── */
.bfpg-booking__consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 4px 0 16px;
	font-size: 12.5px;
	color: #50575e;
}
.bfpg-booking__consent input {
	margin-top: 2px;
}
.bfpg-booking__error {
	margin: 0 0 12px;
	padding: 9px 11px;
	background: #fdecea;
	border: 1px solid #f3c4bd;
	border-radius: 5px;
	color: #a3271a;
	font-size: 13px;
}
.bfpg-booking__submit {
	display: inline-block;
	padding: 11px 22px;
	background: #b08d57;
	border: 1px solid #b08d57;
	border-radius: 5px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.bfpg-booking__submit:hover,
.bfpg-booking__submit:focus {
	background: #997844;
}
.bfpg-booking__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}
.bfpg-booking__done {
	padding: 18px;
	background: #f1f7f1;
	border: 1px solid #cfe6cf;
	border-radius: 6px;
	color: #2f5e2f;
	font-size: 13px;
}
.bfpg-booking__done-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
}

/* Honeypot — visually removed, kept in the layout for bots to find. */
.bfpg-booking .bfpg-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
