/* Pulse Forms: every color, font and spacing value comes from --pf-* tokens (Pulse Forms → Styles). */
.pf-form {
	color: var(--pf-text, inherit);
	font-family: var(--pf-font, inherit);
	font-size: 15px;
	line-height: 1.5;
}
.pf-form *, .pf-form *::before, .pf-form *::after { box-sizing: border-box; }
.pf-form [hidden] { display: none !important; }

.pf-step {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pf-gap, 16px) 16px;
	margin: 0;
	padding: 0;
	border: 0;
}
.pf-step-title { flex: 1 1 100%; margin: 0; font-size: 1.15em; color: var(--pf-text, inherit); }
.pf-field { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.pf-w-half { flex-basis: calc(50% - 8px); }
.pf-w-third { flex-basis: calc(33.333% - 11px); }
.pf-w-quarter { flex-basis: calc(25% - 12px); }
@media (max-width: 600px) {
	.pf-w-half, .pf-w-third, .pf-w-quarter { flex-basis: 100%; }
}
/* Label hidden from view but still read by screen readers. */
.pf-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Text before / after an input, e.g. "$" or "lbs". */
.pf-affix { display: flex; align-items: stretch; }
.pf-form .pf-affix .pf-input { flex: 1 1 auto; min-width: 0; }
.pf-affix-before, .pf-affix-after {
	display: flex; align-items: center; padding: 0 12px; white-space: nowrap;
	color: var(--pf-muted, #6c675d); background: var(--pf-input-bg, #fff);
	border: 1px solid var(--pf-input-border, #cfc8ba);
}
.pf-affix-before { border-right: 0; border-radius: var(--pf-radius, 4px) 0 0 var(--pf-radius, 4px); }
.pf-affix-after { border-left: 0; border-radius: 0 var(--pf-radius, 4px) var(--pf-radius, 4px) 0; }
.pf-form .pf-affix-before + .pf-input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pf-form .pf-affix .pf-input:has(+ .pf-affix-after) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pf-confirm-label { display: block; margin-top: 10px; }
.pf-form .pf-input[readonly] { opacity: .75; cursor: default; }

.pf-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-weight: 600;
	font-size: .82em;
	letter-spacing: .02em;
	text-transform: var(--pf-label-case, none);
	color: var(--pf-label, inherit);
}
.pf-sublabel { display: block; margin: 0 0 4px; font-size: .78em; color: var(--pf-muted, inherit); }
.pf-req { color: var(--pf-error, #a2412b); }
.pf-help { margin: 6px 0 0; font-size: .85em; color: var(--pf-muted, inherit); }

.pf-form .pf-input {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	color: var(--pf-input-text, inherit);
	background: var(--pf-input-bg, #fff);
	border: 1px solid var(--pf-input-border, #cfc8ba);
	border-radius: var(--pf-radius, 4px);
	box-shadow: none;
	appearance: none;
}
.pf-form select.pf-input {
	padding-right: 36px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.pf-form textarea.pf-input { min-height: 110px; resize: vertical; }
.pf-form .pf-input:focus { background-color: var(--pf-input-bg, #fff); border-color: var(--pf-input-border, #cfc8ba); }
.pf-form .pf-input:focus, .pf-choice input:focus-visible, .pf-button:focus-visible {
	outline: 2px solid var(--pf-focus, #8a6a24);
	outline-offset: 2px;
}
.pf-form .pf-input::placeholder { color: var(--pf-muted, #6c675d); opacity: .8; }

.pf-name { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-name-part { flex: 1 1 180px; min-width: 0; }

.pf-choices { display: grid; gap: 8px; }
.pf-choice { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-weight: 400; }
.pf-choice input { margin: 3px 0 0; accent-color: var(--pf-accent, #8a6a24); width: 18px; height: 18px; flex: none; }
.pf-consent a { color: inherit; text-decoration: underline; }

.pf-form .pf-field.is-invalid .pf-input { border-color: var(--pf-error, #a2412b); }
.pf-error { margin: 6px 0 0; font-size: .85em; color: var(--pf-error, #a2412b); }
.pf-form-error {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-left: 3px solid var(--pf-error, #a2412b);
	color: var(--pf-error, #a2412b);
	background: transparent;
}

.pf-turnstile { flex: 1 1 100%; min-height: 0; }
.pf-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--pf-on-accent, #fff);
	background: var(--pf-accent, #8a6a24);
	border: 1px solid var(--pf-accent, #8a6a24);
	border-radius: var(--pf-radius, 4px);
	cursor: pointer;
}
.pf-button:hover { background: var(--pf-accent-hover, #6f5419); border-color: var(--pf-accent-hover, #6f5419); }
.pf-button[disabled] { opacity: .65; cursor: progress; }
.pf-button--back {
	color: var(--pf-text, inherit);
	background: transparent;
	border-color: var(--pf-input-border, #cfc8ba);
}
.pf-button--back:hover { background: transparent; border-color: var(--pf-text, currentColor); }

.pf-success {
	padding: 18px 20px;
	background: var(--pf-success-bg, #f1ede3);
	border-radius: var(--pf-radius, 4px);
	color: var(--pf-text, inherit);
}
.pf-success:focus { outline: none; }
.pf-success p:first-child { margin-top: 0; }
.pf-success p:last-child { margin-bottom: 0; }

.pf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.pf-admin-note { padding: 8px 12px; border: 1px dashed #a2412b; color: #a2412b; font-size: 13px; }

/* Progress ("Page 2 of 3"), turned on per form. */
.pf-progress { display: grid; gap: 6px; margin: 0 0 18px; font-size: .8em; color: var(--pf-muted, inherit); }
.pf-progress-bar { display: block; height: 3px; background: var(--pf-input-border, #cfc8ba); border-radius: 2px; overflow: hidden; }
.pf-progress-bar span { display: block; height: 100%; background: var(--pf-accent, #8a6a24); transition: width .25s ease; }

/* Pop-ups (deploy tag display="popup"). Window colors and fonts: --pf-m-* (Styles → Pop-up window). */
.pf-modal { font-family: var(--pf-m-sans); }
.pf-modal[hidden] { display: none !important; }
.pf-modal * { box-sizing: border-box; }
.pf-modal-ov { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--pf-m-scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: pfFade .2s ease; }
@keyframes pfFade { from { opacity: 0; } to { opacity: 1; } }
.pf-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; text-align: left; color: var(--pf-m-text); background: var(--pf-m-card); border: 1px solid var(--pf-m-border); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4); animation: pfPop .28s ease; }
@keyframes pfPop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pf-modal-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--pf-m-accent); }
.pf-modal-body { padding: 34px 36px 30px; }
.pf-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--pf-m-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.pf-modal-close:hover { color: var(--pf-m-heading); }
.pf-modal-eye { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--pf-m-accent); }
.pf-modal-h { margin: 0 0 12px; font-family: var(--pf-m-serif); font-weight: 600; font-size: 32px; line-height: 1.04; color: var(--pf-m-heading) !important; }
.pf-modal-h em { font-style: italic; font-weight: 500; color: var(--pf-m-accent) !important; }
.pf-modal-lede { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--pf-m-muted); }
.pf-modal-fine { margin-top: 16px; font-size: 11px; line-height: 1.6; color: var(--pf-m-muted); }
.pf-modal .pf-button--submit { flex: 1 1 auto; }
@media (max-width: 600px) { .pf-modal-body { padding: 28px 22px 24px; } }
.pf-open { display: inline-block; padding: 14px 26px; border: 0; cursor: pointer; font-family: var(--pf-m-sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-m-on-accent); background: var(--pf-m-accent); }
.pf-open:hover { background: var(--pf-m-accent-hover); }

@media (prefers-reduced-motion: reduce) {
	.pf-form *, .pf-modal-ov, .pf-modal-box { transition: none !important; animation: none !important; }
}

/* Booking field: a month of days with open times, then that day's times, in the visitor's time zone. */
.pf-slots { margin-top: 4px; container-type: inline-size; }
.pf-slots-msg { margin: 8px 0; color: var(--pf-muted, inherit); }
.pf-slots-retry { margin-top: 4px; min-height: 40px; padding: 8px 18px; }
.pf-cal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@container (max-width: 560px) { .pf-cal-layout { grid-template-columns: 1fr; gap: 18px; } }
.pf-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.pf-cal-month { font-weight: 600; }
.pf-cal-nav {
	width: 36px; height: 36px; padding: 0; font: inherit; font-size: 1.3em; line-height: 1;
	color: var(--pf-accent, #8a6a24); background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer;
}
.pf-cal-nav:hover:not([disabled]) { border-color: var(--pf-accent, #8a6a24); }
.pf-cal-nav[disabled] { opacity: .3; cursor: default; }
.pf-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.pf-cal-wd { font-size: .75em; font-weight: 600; text-transform: uppercase; color: var(--pf-muted, #6b6b6b); padding: 4px 0; }
.pf-cal-day, .pf-cal-off, .pf-cal-blank { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; max-width: 48px; width: 100%; margin: 0 auto; }
.pf-cal-off { color: var(--pf-muted, #9a9a9a); opacity: .55; font-size: .92em; }
.pf-cal-day {
	padding: 0; font: inherit; font-size: .92em; font-weight: 600; cursor: pointer;
	color: var(--pf-accent, #8a6a24);
	background: color-mix(in srgb, var(--pf-accent, #8a6a24) 10%, transparent);
	border: 1px solid transparent; border-radius: 50%;
}
.pf-cal-day:hover { border-color: var(--pf-accent, #8a6a24); }
.pf-cal-date { font-weight: 600; margin: 6px 0 12px; }
.pf-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 2px; }
.pf-time {
	min-height: 44px; margin: 0; padding: 8px 12px; font: inherit; font-size: .92em; line-height: 1.2; white-space: nowrap; cursor: pointer;
	color: var(--pf-accent, #8a6a24);
	background: var(--pf-input-bg, #fff);
	border: 1px solid var(--pf-accent, #8a6a24);
	border-radius: var(--pf-radius, 4px);
}
.pf-time:hover { background: color-mix(in srgb, var(--pf-accent, #8a6a24) 8%, var(--pf-input-bg, #fff)); }
.pf-cal-day:focus-visible, .pf-time:focus-visible, .pf-cal-nav:focus-visible { outline: 2px solid var(--pf-focus, #8a6a24); outline-offset: 2px; }
.pf-cal-day[aria-pressed="true"], .pf-time[aria-pressed="true"] {
	color: var(--pf-on-accent, #fff);
	background: var(--pf-accent, #8a6a24);
	border-color: var(--pf-accent, #8a6a24);
}
.pf-field--booking.is-invalid .pf-times { outline: 1px solid var(--pf-error, #a2412b); outline-offset: 4px; border-radius: var(--pf-radius, 4px); }
.pf-slots-tz { margin-top: 14px; }

/* [pulse_booking]: move or cancel a demo */
.pf-manage-when { font-size: 1.15em; font-weight: 600; margin: 4px 0 12px; }
.pf-manage-when.is-cancelled { text-decoration: line-through; color: var(--pf-muted, inherit); }
.pf-manage .pf-success { margin-bottom: 16px; }
.pf-manage .pf-form-error { margin: 12px 0; }
