/*
 * FFF Appointment Requests - public panel (B-48)
 * One compact card. The card changes in place; steps are never stacked.
 * Faith. Safety. Responsibility.
 */

.fff-ar {
	--fff-black: #000000;
	--fff-gold: #fbbe28;
	--fff-white: #ffffff;
	--fff-ink: #101010;
	--fff-muted: #5b5b5b;
	--fff-line: #d9d9d9;
	--fff-soft: #f6f6f6;
	--fff-error: #a11414;
	--fff-radius: 8px;

	max-width: 820px;
	margin: 0 auto;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fff-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}

.fff-ar *,
.fff-ar *::before,
.fff-ar *::after {
	box-sizing: inherit;
}

/*
 * A theme or page builder that sets `display` on buttons, sections or list
 * items outranks the user-agent [hidden] rule, which would leave every step
 * of the panel on screen at once. The whole single-panel model depends on
 * hidden meaning hidden, so assert it here.
 */
.fff-ar [hidden] {
	display: none !important;
}

.fff-ar__panel {
	background: var(--fff-white);
	border: 1px solid var(--fff-line);
	border-top: 4px solid var(--fff-gold);
	border-radius: var(--fff-radius);
	padding: 24px;
	max-width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* ------------------------------------------------------------------ head */

.fff-ar__head {
	border-bottom: 1px solid var(--fff-line);
	padding-bottom: 14px;
	margin-bottom: 16px;
}

.fff-ar__title {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--fff-black);
	margin: 0 0 6px;
}

.fff-ar__stepline {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fff-muted);
	margin: 0 0 10px;
}

.fff-ar__progress {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fff-ar__progress li {
	flex: 1 1 60px;
	min-width: 58px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fff-muted);
	border-top: 3px solid var(--fff-line);
	padding-top: 6px;
}

.fff-ar__progress li.is-current {
	color: var(--fff-black);
	border-top-color: var(--fff-gold);
}

.fff-ar__progress li.is-done {
	color: var(--fff-ink);
	border-top-color: var(--fff-black);
}

/* --------------------------------------------------------- service card */

.fff-ar__svcpick {
	margin-bottom: 12px;
}

.fff-ar__svcpick-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fff-muted);
	margin-bottom: 4px;
}

.fff-ar__svcpick select {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--fff-line);
	border-radius: var(--fff-radius);
	font: inherit;
	background: var(--fff-white);
	color: var(--fff-ink);
}

.fff-ar__svc {
	background: var(--fff-black);
	color: var(--fff-white);
	border-radius: var(--fff-radius);
	padding: 14px 16px;
	margin-bottom: 16px;
}

.fff-ar__svc-name {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fff-gold);
	margin: 0 0 6px;
}

.fff-ar__svc-meta {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
	gap: 4px 10px;
	font-size: 0.86rem;
	color: var(--fff-white);
}

.fff-ar__svc-meta li + li::before {
	content: "\00b7";
	margin-right: 10px;
	color: var(--fff-gold);
}

.fff-ar__svc-status {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fff-gold);
}

/* ----------------------------------------------------------- step body */

.fff-ar__step {
	margin: 0;
	padding: 0;
	border: 0;
}

.fff-ar__step:focus {
	outline: none;
}

.fff-ar__step:focus-visible {
	outline: 3px solid var(--fff-gold);
	outline-offset: 4px;
}

.fff-ar__step-title {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--fff-black);
	margin: 0 0 6px;
}

.fff-ar__hint,
.fff-ar__chosen {
	font-size: 0.88rem;
	color: var(--fff-muted);
	margin: 0 0 12px;
}

.fff-ar__chosen {
	font-weight: 600;
	color: var(--fff-black);
	font-size: 1rem;
}

.fff-ar__loading {
	font-size: 0.9rem;
	color: var(--fff-muted);
	padding: 12px 0;
}

.fff-ar__empty {
	font-size: 0.92rem;
	background: var(--fff-soft);
	border-radius: var(--fff-radius);
	padding: 14px;
	margin: 0;
}

.fff-ar__month {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fff-muted);
	margin: 14px 0 8px;
}

.fff-ar__month:first-child {
	margin-top: 0;
}

.fff-ar__datewrap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
}

/* ----------------------------------------------------- choice controls */

.fff-ar__date,
.fff-ar__time {
	font: inherit;
	cursor: pointer;
	background: var(--fff-white);
	color: var(--fff-ink);
	border: 1px solid var(--fff-line);
	border-radius: var(--fff-radius);
	min-height: 44px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fff-ar__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	min-height: 72px;
}

.fff-ar__date-dow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fff-muted);
}

.fff-ar__date-day {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--fff-black);
}

.fff-ar__date-mon {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--fff-muted);
}

.fff-ar__times {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 8px;
}

.fff-ar__time {
	padding: 10px 8px;
	font-weight: 600;
	text-align: center;
}

.fff-ar__date:hover,
.fff-ar__time:hover {
	border-color: var(--fff-black);
}

.fff-ar__date.is-selected,
.fff-ar__time.is-selected {
	background: var(--fff-black);
	border-color: var(--fff-black);
	color: var(--fff-white);
}

.fff-ar__date.is-selected .fff-ar__date-day,
.fff-ar__date.is-selected .fff-ar__date-dow,
.fff-ar__date.is-selected .fff-ar__date-mon {
	color: var(--fff-gold);
}

.fff-ar__date:focus-visible,
.fff-ar__time:focus-visible,
.fff-ar__btn:focus-visible,
.fff-ar input:focus-visible,
.fff-ar textarea:focus-visible,
.fff-ar select:focus-visible {
	outline: 3px solid var(--fff-gold);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- form */

.fff-ar__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.fff-ar__field--full {
	grid-column: 1 / -1;
}

.fff-ar__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fff-black);
	margin-bottom: 4px;
}

.fff-ar__field input,
.fff-ar__field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	font: inherit;
	color: var(--fff-ink);
	background: var(--fff-white);
	border: 1px solid var(--fff-line);
	border-radius: var(--fff-radius);
}

.fff-ar__field textarea {
	min-height: 84px;
	resize: vertical;
}

.fff-ar__field input[aria-invalid="true"],
.fff-ar__field textarea[aria-invalid="true"] {
	border-color: var(--fff-error);
	border-width: 2px;
}

.fff-ar__req {
	color: var(--fff-error);
}

.fff-ar__optional {
	font-weight: 400;
	color: var(--fff-muted);
}

.fff-ar__error {
	margin: 4px 0 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fff-error);
}

.fff-ar__privacy {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: var(--fff-muted);
}

.fff-ar__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------- review */

.fff-ar__review {
	margin: 0 0 14px;
	border-top: 1px solid var(--fff-line);
}

.fff-ar__review > div {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--fff-line);
}

.fff-ar__review dt {
	flex: 0 0 40%;
	min-width: 120px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fff-muted);
	margin: 0;
}

.fff-ar__review dd {
	flex: 1 1 50%;
	margin: 0;
	font-weight: 600;
	color: var(--fff-black);
	min-width: 0;
	overflow-wrap: break-word;
}

.fff-ar__pending {
	background: var(--fff-soft);
	border-left: 4px solid var(--fff-gold);
	border-radius: 0 var(--fff-radius) var(--fff-radius) 0;
	padding: 12px 14px;
	margin: 0 0 12px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--fff-black);
}

/* ---------------------------------------------------------------- nav */

.fff-ar__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--fff-line);
}

.fff-ar__btn {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: var(--fff-radius);
	border: 2px solid var(--fff-black);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fff-ar__btn--back {
	background: var(--fff-white);
	color: var(--fff-black);
	margin-right: auto;
}

.fff-ar__btn--back:hover:not(:disabled) {
	background: var(--fff-soft);
}

.fff-ar__btn--next,
.fff-ar__btn--submit {
	background: var(--fff-black);
	color: var(--fff-gold);
}

.fff-ar__btn--next:hover:not(:disabled),
.fff-ar__btn--submit:hover:not(:disabled) {
	background: var(--fff-gold);
	color: var(--fff-black);
}

.fff-ar__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ------------------------------------------------------------- errors */

.fff-ar__errors {
	background: #fdf2f2;
	border: 1px solid var(--fff-error);
	border-radius: var(--fff-radius);
	padding: 12px 14px;
	margin-bottom: 16px;
	color: #7a0f0f;
	font-size: 0.92rem;
}

.fff-ar__errors p {
	margin: 0;
	font-weight: 600;
}

.fff-ar__errors ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

.fff-ar__notice {
	background: var(--fff-soft);
	border-left: 4px solid var(--fff-gold);
	padding: 14px 16px;
	border-radius: 0 var(--fff-radius) var(--fff-radius) 0;
}

.fff-ar__notice p {
	margin: 0 0 6px;
}

.fff-ar__notice p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ success */

.fff-ar__success:focus {
	outline: none;
}

.fff-ar__success:focus-visible {
	outline: 3px solid var(--fff-gold);
	outline-offset: 4px;
}

.fff-ar__success-mark {
	font-size: 2rem;
	line-height: 1;
	color: var(--fff-black);
	background: var(--fff-gold);
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin: 0 0 12px;
}

.fff-ar__success-title {
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--fff-black);
	margin: 0 0 8px;
}

.fff-ar__contact {
	margin: 14px 0 0;
	font-weight: 600;
}

.fff-ar__contact a {
	color: var(--fff-black);
}

.fff-ar__creed {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--fff-line);
	font-family: Montserrat, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fff-muted);
}

.fff-ar__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 600px) {
	.fff-ar__panel {
		padding: 18px 14px;
		border-radius: var(--fff-radius);
	}

	.fff-ar__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fff-ar__datewrap {
		grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
	}

	.fff-ar__times {
		grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	}

	.fff-ar__nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fff-ar__btn {
		width: 100%;
		margin-right: 0;
	}

	.fff-ar__review dt {
		flex-basis: 100%;
	}
}

@media (max-width: 360px) {
	.fff-ar__datewrap {
		grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	}

	.fff-ar__times {
		grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.fff-ar * {
		transition: none !important;
		animation: none !important;
	}
}

@media (forced-colors: active) {
	.fff-ar__panel,
	.fff-ar__date,
	.fff-ar__time,
	.fff-ar__btn {
		border: 1px solid ButtonBorder;
	}

	.fff-ar__date.is-selected,
	.fff-ar__time.is-selected {
		background: Highlight;
		color: HighlightText;
		forced-color-adjust: none;
	}

	.fff-ar__date:focus-visible,
	.fff-ar__time:focus-visible,
	.fff-ar__btn:focus-visible {
		outline: 3px solid CanvasText;
	}
}


/* =====================================================================
 * THEME RESILIENCE
 *
 * This panel is dropped into a page-builder theme whose global button and
 * form styles are authored with higher specificity than a single class.
 * Left alone, those rules repaint every control as a theme button and
 * collapse the date-card layout. The declarations below are the minimum
 * set required for the panel to render as designed in that environment;
 * each one is a property the theme was observed to override.
 * ===================================================================== */

.fff-ar .fff-ar__date,
.fff-ar .fff-ar__time {
	background-color: var(--fff-white) !important;
	background-image: none !important;
	color: var(--fff-ink) !important;
	border: 1px solid var(--fff-line) !important;
	border-radius: var(--fff-radius) !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	width: 100% !important;
}

.fff-ar .fff-ar__date {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	padding: 8px 4px !important;
	line-height: 1.2 !important;
}

.fff-ar .fff-ar__time {
	display: block !important;
	padding: 12px 8px !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
}

.fff-ar .fff-ar__date > span {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
}

.fff-ar .fff-ar__date .fff-ar__date-day {
	font-size: 1.25rem !important;
	line-height: 1.15 !important;
}

.fff-ar .fff-ar__date .fff-ar__date-dow,
.fff-ar .fff-ar__date .fff-ar__date-mon {
	font-size: 0.68rem !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
}

.fff-ar .fff-ar__date.is-selected,
.fff-ar .fff-ar__time.is-selected {
	background-color: var(--fff-black) !important;
	border-color: var(--fff-black) !important;
	color: var(--fff-white) !important;
}

.fff-ar .fff-ar__date.is-selected span {
	color: var(--fff-gold) !important;
}

.fff-ar .fff-ar__btn {
	background-image: none !important;
	border-radius: var(--fff-radius) !important;
	box-shadow: none !important;
	text-transform: none !important;
	width: auto !important;
}

.fff-ar .fff-ar__btn--back {
	background-color: var(--fff-white) !important;
	color: var(--fff-black) !important;
	border: 2px solid var(--fff-black) !important;
}

.fff-ar .fff-ar__btn--next,
.fff-ar .fff-ar__btn--submit {
	background-color: var(--fff-black) !important;
	color: var(--fff-gold) !important;
	border: 2px solid var(--fff-black) !important;
}

.fff-ar .fff-ar__btn:disabled {
	opacity: 0.45 !important;
}

.fff-ar .fff-ar__field input,
.fff-ar .fff-ar__field textarea {
	background-color: var(--fff-white) !important;
	color: var(--fff-ink) !important;
	border: 1px solid var(--fff-line) !important;
	border-radius: var(--fff-radius) !important;
	width: 100% !important;
}

.fff-ar .fff-ar__svc-name,
.fff-ar .fff-ar__svc-status {
	color: var(--fff-gold) !important;
}

.fff-ar .fff-ar__svc,
.fff-ar .fff-ar__svc-meta li {
	color: var(--fff-white) !important;
}

@media (max-width: 600px) {
	.fff-ar .fff-ar__btn {
		width: 100% !important;
	}
}

/* ------------------------------------------------------------------
   B-49 : PROGRESSIVE SELECTION AND HONEST SUCCESS MESSAGING
   ------------------------------------------------------------------ */

/* Date and Time now advance on selection. On step 1 nothing remains in the
   button row, so the row itself is removed rather than left as an empty
   bordered strip. */
.fff-ar .fff-ar__nav.is-empty {
	display: none !important;
}

/* Shown only when the site could not queue the confirmation email. The request
   is still saved; the customer is told the truth rather than promised mail. */
.fff-ar .fff-ar__success-warn {
	border-left: 4px solid var(--fff-gold) !important;
	background: #fffaed !important;
	color: var(--fff-ink) !important;
	padding: 14px 16px !important;
	margin: 0 0 18px !important;
	border-radius: var(--fff-radius) !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
}
