/* FMB Booking - uses the theme's tokens where available. */
.fmbb {
	--b-navy: var(--fmb-navy, #17295a);
	--b-accent: var(--fmb-accent, #B8491A);
	--b-accent-dark: var(--fmb-accent-dark, #9C3C14);
	--b-ink: var(--fmb-ink, #1d1d1f);
	--b-copy: var(--fmb-copy, #555c6b);
	--b-muted: var(--fmb-muted, #7a8190);
	--b-line: var(--fmb-line, #dfe3ec);
	--b-cream: var(--fmb-cream, #F7F5F2);
	font-family: var(--fmb-body, "Karla", Arial, sans-serif);
	color: var(--b-ink);
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
.fmbb *, .fmbb *::before, .fmbb *::after { box-sizing: border-box; }
.fmbb h2 { font-family: var(--fmb-display, "Archivo", Arial, sans-serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 .5rem; color: var(--b-navy); }
.fmbb h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; color: var(--b-navy); }
.fmbb [hidden] { display: none !important; }
.fmbb h2:focus, .fmbb h3:focus { outline: none; }
.fmbb a { color: var(--b-accent-dark); }

.fmbb-note { background: var(--b-cream); border-left: 4px solid var(--b-accent); padding: 14px 16px; border-radius: 6px; margin: 0 0 20px; color: var(--b-copy); }
.fmbb-note strong { color: var(--b-ink); }
.fmbb-sub { color: var(--b-copy); margin: 0 0 16px; }

.fmbb-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; }
.fmbb-steps li { flex: 1; font-size: .85rem; color: var(--b-muted); border-top: 3px solid var(--b-line); padding-top: 6px; counter-increment: s; margin: 0; }
.fmbb-steps li::before { content: counter(s) ". "; font-weight: 700; }
.fmbb-steps li.is-on { color: var(--b-navy); border-color: var(--b-accent); font-weight: 600; }
.fmbb-steps li.is-done { color: var(--b-navy); border-color: var(--b-navy); }

.fmbb-step, .fmbb-card, .fmbb-form { background: #fff; border: 1px solid var(--b-line); border-radius: 10px; padding: 20px; box-shadow: var(--fmb-shadow, none); }
.fmbb-step .fmbb-form { border: 0; padding: 0; box-shadow: none; }

.fmbb-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.fmbb-field { margin: 0 0 14px; display: flex; flex-direction: column; min-width: 0; }
.fmbb-field--pc { flex: 0 1 180px; }
.fmbb-field--btn { flex: 0 0 auto; }
.fmbb-field label { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.fmbb-field label span { font-weight: 400; color: var(--b-muted); font-size: .85rem; }
.fmbb input[type=text], .fmbb input:not([type]), .fmbb input[type=email], .fmbb input[type=tel], .fmbb select, .fmbb textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--b-ink);
	border: 1px solid #c5cbd8; border-radius: 6px; background: #fff;
}
.fmbb textarea { min-height: 0; resize: vertical; }
.fmbb input:focus, .fmbb select:focus, .fmbb textarea:focus { outline: 3px solid rgba(184, 73, 26, .35); outline-offset: 1px; border-color: var(--b-accent); }
.fmbb .is-bad { border-color: #c62828 !important; background: #fff6f6; }
.fmbb fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.fmbb legend { font-family: var(--fmb-display, Arial, sans-serif); font-weight: 700; color: var(--b-navy); font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.fmbb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.fmbb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fmbb-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 14px; font-weight: 600; }
.fmbb-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--b-accent); }
.fmbb-price { font-size: .92rem; color: var(--b-copy); background: var(--b-cream); padding: 10px 12px; border-radius: 6px; }
.fmbb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.fmbb-btn, .fmbb .btn.fmbb-btn { min-height: 46px; padding: 10px 22px; cursor: pointer; border: 0; border-radius: 6px; background: var(--b-accent); color: #fff; font: inherit; font-weight: 700; }
.fmbb-btn:hover { background: var(--b-accent-dark); }
.fmbb-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fmbb-link { background: none; border: 0; padding: 10px 4px; font: inherit; color: var(--b-navy); text-decoration: underline; cursor: pointer; min-height: 44px; }
.fmbb-danger { color: #b3261e; }
.fmbb-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fmbb-actions:only-child, .fmbb-step[data-step="1"] .fmbb-actions { justify-content: flex-end; }

.fmbb-msg { margin: 8px 0; min-height: 0; }
.fmbb-msg:empty { display: none; }
.fmbb-msg.is-warn { background: #fff4e5; border: 1px solid #f3c98b; padding: 10px 12px; border-radius: 6px; }
.fmbb-msg.is-ok { background: #ecf7ee; border: 1px solid #a9d8b2; padding: 10px 12px; border-radius: 6px; }

/* Calendar */
.fmbb-dow, .fmbb-grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fmbb-dow { margin-bottom: 4px; }
.fmbb-dow span { text-align: center; font-size: .78rem; color: var(--b-muted); text-transform: uppercase; letter-spacing: .04em; }
.fmbb-day { position: relative; min-height: 52px; border: 1px solid var(--b-line); background: #fff; border-radius: 8px; font: inherit; cursor: pointer; padding: 4px 0; color: var(--b-navy); }
.fmbb-day b { font-size: 1.05rem; }
.fmbb-day em { position: absolute; top: 2px; left: 5px; font-style: normal; font-size: .65rem; color: var(--b-muted); text-transform: uppercase; }
.fmbb-day:hover:not([disabled]) { border-color: var(--b-accent); }
.fmbb-day.is-off { background: #f4f5f8; color: #b4b9c4; cursor: default; border-color: transparent; }
.fmbb-day.is-pad { border: 0; background: none; }
.fmbb-day.is-sel { background: var(--b-navy); color: #fff; border-color: var(--b-navy); }
.fmbb-day.is-sel em { color: #cfd6e8; }
.fmbb-wins { margin-top: 16px; }
.fmbb-wins-title { font-weight: 700; margin: 0 0 8px; }
.fmbb-wins-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmbb-win { min-height: 52px; border: 2px solid var(--b-line); border-radius: 8px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--b-navy); }
.fmbb-win small { display: block; font-weight: 400; color: var(--b-muted); }
.fmbb-win.is-sel { border-color: var(--b-accent); background: #fdf3ee; }
.fmbb-win[disabled] { opacity: .5; cursor: not-allowed; }
.fmbb-empty { background: var(--b-cream); padding: 14px; border-radius: 6px; }

.fmbb-done { background: #fff; border: 1px solid var(--b-line); border-radius: 10px; padding: 24px; border-top: 4px solid #2e7d32; outline: none; }
.fmbb-ref { color: var(--b-muted); font-size: .85rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .05em; }
.fmbb-manage-actions { margin: 16px 0; }
.fmbb-move { margin-top: 8px; }

@media (max-width: 640px) {
	.fmbb-step, .fmbb-card, .fmbb-form, .fmbb-done { padding: 16px; }
	.fmbb-grid, .fmbb-grid--2 { grid-template-columns: 1fr; }
	.fmbb-dow, .fmbb-grid7 { gap: 4px; }
	.fmbb-day { min-height: 46px; }
	.fmbb-steps li { font-size: .78rem; }
	.fmbb-actions { flex-direction: column-reverse; align-items: stretch; }
	.fmbb-actions .fmbb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fmbb * { transition: none !important; scroll-behavior: auto !important; } }

/* The theme's reset.css forces `button { padding:0 !important; margin:0 !important }` - restore ours. */
.fmbb .fmbb-btn { padding: 12px 24px !important; line-height: 1.2; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.fmbb .fmbb-field--btn .fmbb-btn { min-width: 110px; }
.fmbb .fmbb-link { padding: 10px 6px !important; }
.fmbb .fmbb-win { padding: 8px 12px !important; }
.fmbb .fmbb-day { padding: 4px 0 !important; }
@media (max-width: 640px) { .fmbb .fmbb-btn { white-space: normal; } }
