/* FM Consult Booking. Colors match the Kadence site palette. */
.fmcb {
	--fmcb-ink: #2B2730;
	--fmcb-muted: #6E6A73;
	--fmcb-accent: #237A77;
	--fmcb-accent-soft: #E3F1F0;
	--fmcb-plum: #5B3962;
	--fmcb-cream: #FAF7F0;
	--fmcb-tan: #F1EADC;
	--fmcb-line: #E6DFD1;
	--fmcb-gold: #F3C476;
	--fmcb-error: #B23D4A;
	max-width: 820px;
	margin: 0 auto;
	color: var(--fmcb-ink);
	font-size: 16px;
	line-height: 1.6;
}
.fmcb *, .fmcb *::before, .fmcb *::after { box-sizing: border-box; }

.fmcb-steps { display: flex; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: fmcb; }
.fmcb-steps li { counter-increment: fmcb; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fmcb-muted); margin: 0; }
.fmcb-steps li::before { content: counter(fmcb); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fmcb-tan); color: var(--fmcb-muted); font-weight: 600; font-size: 13px; }
.fmcb-steps li + li::after { content: none; }
.fmcb-steps li.is-on { color: var(--fmcb-ink); }
.fmcb-steps li.is-on::before { background: var(--fmcb-accent); color: #fff; }

.fmcb-panel { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(43, 39, 48, .07); }
.fmcb-h { font-family: Outfit, Poppins, sans-serif; font-weight: 300; font-size: 1.7rem; line-height: 1.2; margin: 0 0 6px; }
.fmcb-sub { color: var(--fmcb-muted); margin: 0 0 22px; }

.fmcb-loading, .fmcb-empty { color: var(--fmcb-muted); }
.fmcb-note { background: #FBEFD9; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }

.fmcb-smart { background: var(--fmcb-cream); border: 1px solid var(--fmcb-line); border-radius: 14px; padding: 16px; margin: 0 0 20px; }
.fmcb-smart-h { font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.fmcb-smart-h::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fmcb-gold); box-shadow: 0 0 0 4px rgba(243, 196, 118, .3); }
.fmcb-smart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fmcb-smart-or { margin: 12px 0 0; font-size: 14px; color: var(--fmcb-muted); }

.fmcb-day-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.fmcb-day { flex: 0 0 auto; scroll-snap-align: start; width: 74px; padding: 10px 6px; border: 1px solid var(--fmcb-line); border-radius: 14px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; color: var(--fmcb-ink); font: inherit; transition: border-color .15s, background .15s; }
.fmcb-day:hover { border-color: var(--fmcb-accent); }
.fmcb-day.is-on { background: var(--fmcb-accent); border-color: var(--fmcb-accent); color: #fff; }
.fmcb-day-w, .fmcb-day-m { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.fmcb-day-n { font-size: 22px; font-weight: 600; margin: 2px 0; }

.fmcb-times-h { font-weight: 600; margin: 14px 0 10px; }
.fmcb-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.fmcb-slot { padding: 11px 10px; border: 1px solid var(--fmcb-line); border-radius: 999px; background: #fff; color: var(--fmcb-ink); font: inherit; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.fmcb-slot:hover { border-color: var(--fmcb-accent); background: var(--fmcb-accent-soft); }
.fmcb-slot.is-on { background: var(--fmcb-accent); border-color: var(--fmcb-accent); color: #fff; }
.fmcb-slot--smart { border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 14px; }
.fmcb-slot-d { font-size: 13px; opacity: .8; }
.fmcb-slot-t { font-weight: 600; font-size: 17px; }

.fmcb-actions { margin-top: 24px; display: flex; justify-content: flex-end; }
.fmcb-btn { appearance: none; border: 0; border-radius: 999px; background: var(--fmcb-accent); color: #fff; font: inherit; font-weight: 600; font-size: 1.04rem; padding: 13px 26px; cursor: pointer; transition: opacity .15s, transform .15s; }
.fmcb-btn:hover { transform: translateY(-1px); }
.fmcb-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fmcb-btn--ghost { background: transparent; color: var(--fmcb-ink); box-shadow: inset 0 0 0 1px var(--fmcb-line); }
.fmcb-link { appearance: none; background: none; border: 0; padding: 0; color: var(--fmcb-accent); text-decoration: underline; font: inherit; cursor: pointer; }

.fmcb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0 0 24px; }
.fmcb-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 500; }
.fmcb input[type="text"], .fmcb input:not([type]), .fmcb input[type="email"], .fmcb input[type="tel"], .fmcb select, .fmcb textarea {
	width: 100%; padding: 11px 13px; border: 1px solid var(--fmcb-line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--fmcb-ink);
}
.fmcb input:focus, .fmcb select:focus, .fmcb textarea:focus { outline: 2px solid var(--fmcb-accent); outline-offset: 1px; border-color: transparent; }

.fmcb-q { border: 0; padding: 18px 0; margin: 0; border-top: 1px solid var(--fmcb-line); min-width: 0; }
.fmcb-q legend { font-weight: 600; padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.fmcb-q legend + * { clear: both; }
.fmcb-help { font-size: 14px; color: var(--fmcb-muted); margin: 0 0 10px; clear: both; }
.fmcb-chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.fmcb-chip { position: relative; cursor: pointer; }
.fmcb-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fmcb-chip span { display: inline-block; padding: 8px 15px; border: 1px solid var(--fmcb-line); border-radius: 999px; font-size: 14px; background: #fff; transition: border-color .15s, background .15s; }
.fmcb-chip:hover span { border-color: var(--fmcb-accent); }
.fmcb-chip input:checked + span { background: var(--fmcb-accent-soft); border-color: var(--fmcb-accent); color: #1A5C5A; font-weight: 600; }
.fmcb-chip input:focus-visible + span { outline: 2px solid var(--fmcb-accent); outline-offset: 2px; }

.fmcb-optin { display: flex; gap: 10px; align-items: flex-start; padding: 16px; margin: 8px 0 0; background: var(--fmcb-cream); border-radius: 12px; font-size: 14px; cursor: pointer; }
.fmcb-optin input { margin-top: 4px; accent-color: var(--fmcb-accent); }

.fmcb-invalid legend, .fmcb-invalid > span { color: var(--fmcb-error); }
.fmcb-invalid input, .fmcb-invalid select { border-color: var(--fmcb-error); }
.fmcb-invalid .fmcb-chip span { border-color: rgba(178, 61, 74, .45); }
.fmcb-error { color: var(--fmcb-error); font-weight: 500; margin: 16px 0 0; }

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

@media (max-width: 640px) {
	.fmcb-panel { padding: 20px 16px; border-radius: 14px; }
	.fmcb-grid { grid-template-columns: 1fr; }
	.fmcb-actions { justify-content: stretch; }
	.fmcb-actions .fmcb-btn { width: 100%; }
	.fmcb-steps li { font-size: 13px; }
}

/* Manage and confirm pages (served by the plugin, outside the theme). */
body.fmcb-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #FAF7F0; font-family: Poppins, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: #2B2730; padding: 24px 16px; box-sizing: border-box; }
.fmcb-card { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; padding: 34px 30px; box-shadow: 0 10px 30px rgba(43, 39, 48, .08); border-top: 6px solid #2E8F8C; line-height: 1.6; }
.fmcb-card h1 { font-family: Outfit, Poppins, sans-serif; font-weight: 300; font-size: 1.8rem; line-height: 1.2; margin: 6px 0 14px; }
.fmcb-card a { color: #237A77; }
.fmcb-logo { font-family: Outfit, Poppins, sans-serif; font-weight: 300; letter-spacing: .02em; text-decoration: none; color: #5B3962 !important; }
.fmcb-card .fmcb-btn { appearance: none; border: 0; border-radius: 999px; background: #237A77; color: #fff; font: inherit; font-weight: 600; padding: 12px 22px; cursor: pointer; margin: 6px 8px 6px 0; }
.fmcb-card .fmcb-btn--ghost { background: transparent; color: #2B2730; box-shadow: inset 0 0 0 1px #E6DFD1; }
.fmcb-card .fmcb-help { font-size: 14px; color: #6E6A73; }

/* Month labels in the day picker. */
.fmcb-month { flex: 0 0 auto; align-self: stretch; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fmcb-plum); padding: 0 2px; border-left: 2px solid var(--fmcb-gold); }

/* Month calendar (v0.4.5) */
.fmcb-cal { max-width: 460px; margin: 0 auto; }
.fmcb-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.fmcb-cal-title { margin: 0; font-family: Outfit, Poppins, sans-serif; font-size: 1.25rem; font-weight: 400; }
.fmcb-cal-nav { appearance: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fmcb-line); background: #fff; color: var(--fmcb-ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.fmcb-cal-nav:hover:not(:disabled) { border-color: var(--fmcb-accent); color: var(--fmcb-accent); }
.fmcb-cal-nav:disabled { opacity: .3; cursor: default; }
.fmcb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fmcb-cal-wd { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--fmcb-muted); padding: 6px 0; }
.fmcb-cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #B9B4BD; font: inherit; }
.fmcb-cal-day.is-open { appearance: none; border: 0; background: var(--fmcb-accent-soft); color: #1A5C5A; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.fmcb-cal-day.is-open:hover { background: #CDE8E6; transform: scale(1.05); }
.fmcb-cal-day.is-on, .fmcb-cal-day.is-on:hover { background: var(--fmcb-accent); color: #fff; }
.fmcb-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--fmcb-gold); }
.fmcb-cal-day.is-open:focus-visible { outline: 2px solid var(--fmcb-accent); outline-offset: 2px; }
.fmcb-cal-none { text-align: center; color: var(--fmcb-muted); font-size: 14px; margin: 12px 0 0; }
.fmcb-times-h { text-align: center; }
.fmcb-time-grid { max-width: 460px; margin: 0 auto; }
@media (max-width: 640px) {
	.fmcb-cal-grid { gap: 4px; }
	.fmcb-cal-day { font-size: 14px; }
}
@media (max-width: 640px) {
	.fmcb-smart-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.fmcb-slot--smart { padding: 8px 8px; }
	.fmcb-slot-d { font-size: 11px; }
	.fmcb-slot-t { font-size: 14px; }
}
