/* =========================================================
   faith Bangladesh – therapy booking frontend (mobile first)
   Everything is scoped under .mf so the existing template
   CSS (Bootstrap 5 + legacy theme) is not affected.
   Needs Bootstrap 5.x and Font Awesome 4.7 (already loaded).
   ========================================================= */
.mf {
	--mf-primary: #1063AF;
	--mf-primary-2: #088EDD;
	--mf-primary-soft: #EAF3FB;
	--mf-success: #16875A;
	--mf-success-soft: #E5F5EE;
	--mf-warning: #A86400;
	--mf-warning-soft: #FFF4DF;
	--mf-danger: #C0392B;
	--mf-danger-soft: #FCEBEA;
	--mf-text: #1F2933;
	--mf-muted: #5F6F80;
	--mf-border: #DCE3EA;
	--mf-bg: #F3F6F9;
	--mf-card: #FFFFFF;
	--mf-radius: 12px;
	--mf-shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
	--mf-sidebar-w: 260px;
	--mf-sidebar-w-collapsed: 64px;

	color: var(--mf-text);
	font-size: 15px;
	line-height: 1.5;
	background: var(--mf-bg);
	padding: 12px 0 24px;
}
.mf.mf-bare { padding: 0; background: none; }
.mf *, .mf *::before, .mf *::after { box-sizing: border-box; }
.mf a { text-decoration: none; }
.mf h1, .mf h2, .mf h3 { background: none; border: 0; padding: 0; text-transform: none; }
.mf-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 768px) { .mf-container { padding: 0 20px; } .mf { padding-top: 20px; } }

/* ---------- Page header ---------- */
.mf-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mf-page-head h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--mf-text); }
.mf-page-head-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.mf-page-head-nowrap { flex-wrap: nowrap; }
.mf-page-head-nowrap > .mf-btn { flex-shrink: 0; }
.mf-page-head-main h1, .mf-page-head-main .mf-sub { overflow-wrap: anywhere; }
.mf-page-head h1.mf-welcome { font-size: 20px; font-weight: 700; color: var(--mf-text); }
@media (min-width: 768px) { .mf-page-head h1.mf-welcome { font-size: 26px; } }
@media (max-width: 380px) { .mf-page-head-nowrap h1 { font-size: 17px; } }
.mf-page-head-main .mf-sidebar-toggle { flex-shrink: 0; }
.mf-page-head .mf-sub { color: var(--mf-muted); font-size: 13px; margin: 2px 0 0; }
@media (min-width: 768px) { .mf-page-head h1 { font-size: 24px; } }

/* ---------- Cards ---------- */
.mf-card { background: var(--mf-card); border: 1px solid var(--mf-border); border-radius: var(--mf-radius); box-shadow: var(--mf-shadow); margin-bottom: 14px; }
.mf-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--mf-border); }
.mf-card-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--mf-text); }
.mf-card-head h2 .fa { color: var(--mf-primary); margin-right: 6px; }
.mf-card-body { padding: 14px; }
.mf-card-foot { padding: 12px 14px; border-top: 1px solid var(--mf-border); background: #FAFBFC; border-radius: 0 0 var(--mf-radius) var(--mf-radius); }

/* ---------- Notices ---------- */
.mf-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; border: 1px solid transparent; }
.mf-note .fa { margin-top: 3px; }
.mf-note-info { background: var(--mf-primary-soft); color: #0B4C86; border-color: #CFE2F3; }
.mf-note-warn { background: var(--mf-warning-soft); color: #7A4A00; border-color: #F5DDB0; }
.mf-note-danger { background: var(--mf-danger-soft); color: #8E2A20; border-color: #F3C9C5; }
.mf-note-success { background: var(--mf-success-soft); color: #0F5F40; border-color: #BFE6D4; }
.mf-note a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- Buttons ---------- */
.mf .mf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--mf-border);
	background: #fff; color: var(--mf-text); font-size: 15px; font-weight: 600; line-height: 1.2;
	cursor: pointer; white-space: nowrap; text-decoration: none; font-family: inherit; width: auto; margin: 0;
	-webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, color .15s;
}
.mf .mf-btn:hover { border-color: var(--mf-primary); color: var(--mf-primary); }
.mf .mf-btn:focus-visible { outline: 3px solid rgba(16,99,175,.35); outline-offset: 2px; }
.mf .mf-btn-primary { background: var(--mf-primary); border-color: var(--mf-primary); color: #fff; }
.mf .mf-btn-primary:hover { background: #0C4F8D; border-color: #0C4F8D; color: #fff; }
.mf .mf-btn-success { background: var(--mf-success); border-color: var(--mf-success); color: #fff; }
.mf .mf-btn-success:hover { background: #106B47; border-color: #106B47; color: #fff; }
.mf .mf-btn-danger { background: #fff; border-color: #F0C4BF; color: var(--mf-danger); }
.mf .mf-btn-danger:hover { background: var(--mf-danger-soft); border-color: var(--mf-danger); color: var(--mf-danger); }
.mf .mf-btn-ghost { background: transparent; border-color: transparent; color: var(--mf-primary); }
.mf .mf-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.mf .mf-btn-block { display: flex; width: 100%; }
.mf .mf-btn[disabled], .mf .mf-btn.is-busy { opacity: .6; pointer-events: none; }
.mf .mf-btn .mf-spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mf-spin .7s linear infinite; }
.mf .mf-btn.is-busy .mf-spin { display: inline-block; }
.mf .mf-btn.is-busy .fa { display: none; }
@keyframes mf-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.mf .mf-field { margin-bottom: 12px; }
/* Labels sit left-aligned above the field on every page (the site stylesheet centres and shrinks plain labels,
   and some pages sit inside text-center wrappers, so these rules are deliberately specific). */
.mf { text-align: left; }
.mf label.mf-label, .mf .mf-label { display: block; width: 100%; float: none; text-align: left !important; font-size: 14px !important; line-height: 1.3; font-weight: 600; color: #3E4C59; background: none !important; padding: 0 !important; margin: 0 0 6px !important; text-transform: none; letter-spacing: 0; }
.mf .mf-label .mf-req { color: var(--mf-danger); margin-left: 2px; }
.mf .mf-input, .mf select.mf-input, .mf .mf-field input[type=text], .mf .mf-field input[type=email], .mf .mf-field input[type=password], .mf .mf-field input[type=number], .mf .mf-field select {
	display: block; width: 100%; min-height: 44px; padding: 8px 12px; font-size: 16px; /* 16px stops iOS zoom */
	border: 1px solid var(--mf-border); border-radius: 10px; background: #fff; color: var(--mf-text);
	margin: 0; box-shadow: none; font-family: inherit;
}
.mf .mf-input:focus, .mf .mf-field input:focus, .mf .mf-field select:focus { border-color: var(--mf-primary-2); outline: 3px solid rgba(8,142,221,.18); }
.mf .mf-help { font-size: 12px; color: var(--mf-muted); margin-top: 4px; }
.mf .mf-row-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .mf .mf-row-2 { grid-template-columns: 1fr 1fr; } }
.mf .mf-inline { display: flex; gap: 8px; }
.mf .mf-inline > * { flex: 1; }
.mf .mf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.mf .mf-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.mf .mf-section-title { font-size: 15px; font-weight: 700; color: var(--mf-primary); margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.mf p.error, .mf .error { color: var(--mf-danger); font-size: 13px; margin: 4px 0; }

/* ---------- Filter bar (booking search) ---------- */
.mf-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-filter .mf-span-2 { grid-column: span 2; }
.mf-filter #loadConsultantList select { display: block; width: 100%; min-height: 44px; padding: 8px 12px; font-size: 16px; border: 1px solid var(--mf-border); border-radius: 10px; background: #fff; }
.mf-filter-actions { display: flex; gap: 8px; }
.mf-filter-actions .mf-btn { flex: 1; }
@media (min-width: 992px) {
	.mf-filter { grid-template-columns: 1.2fr 1.4fr 1fr 1fr auto; align-items: end; }
	.mf-filter .mf-span-2 { grid-column: auto; }
	.mf-filter .mf-field { margin-bottom: 0; }
}

/* ---------- Slot list (schedule) ---------- */
.mf-slots { list-style: none; margin: 0; padding: 0; }
.mf-slot {
	display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
	padding: 12px 14px; border-bottom: 1px solid var(--mf-border); background: #fff;
}
.mf-slot:last-child { border-bottom: 0; border-radius: 0 0 var(--mf-radius) var(--mf-radius); }
.mf-slot-who { grid-column: 1 / -1; min-width: 0; }
.mf-slot-name { font-weight: 700; font-size: 16px; color: #7A1F1F; line-height: 1.3; }
.mf-slot-spec { font-size: 13px; color: var(--mf-muted); }
.mf-slot-when { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.mf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--mf-bg); border: 1px solid var(--mf-border); font-size: 13px; color: var(--mf-text); white-space: nowrap; }
.mf-chip .fa { color: var(--mf-primary); }
.mf-chip-test { background: var(--mf-danger-soft); border-color: #F3C9C5; color: var(--mf-danger); }
.mf-chip-test .fa { color: var(--mf-danger); }
.mf-chip-online { background: var(--mf-primary-soft); border-color: #CFE2F3; color: #0B4C86; }
.mf-slot-act { justify-self: end; }
.mf-slot.is-booked { background: #FFF8E1; }
.mf-slot.is-booked .mf-slot-name { color: #8A6D3B; }
.mf-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mf-badge-booked { background: var(--mf-success-soft); color: var(--mf-success); }
.mf-badge-na { background: #EEF1F4; color: var(--mf-muted); }
.mf-slots-head { display: none; }
@media (min-width: 768px) {
	.mf-slots-head, .mf-slot { grid-template-columns: 44px minmax(0, 2fr) 1.6fr 140px; }
	.mf-slots-head { display: grid; gap: 12px; padding: 10px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mf-muted); background: #F7F9FB; border-bottom: 1px solid var(--mf-border); }
	.mf-slot-sl { display: block !important; color: var(--mf-muted); font-size: 13px; text-align: center; }
	.mf-slot-who { grid-column: auto; }
	.mf-slot-act { justify-self: stretch; text-align: center; }
	.mf-slot-act .mf-btn { width: 100%; }
}
.mf-slot-sl { display: none; }
.mf-empty { padding: 28px 14px; text-align: center; color: var(--mf-muted); }
.mf-empty .fa { font-size: 28px; display: block; margin-bottom: 8px; color: #B8C4CF; }

/* ---------- Pagination (CI pagination output inside #pegi) ---------- */
.mf-pager { display: flex; justify-content: center; padding: 12px; }
.mf-pager #pegi, .mf-pager p { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.mf-pager a, .mf-pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--mf-border); background: #fff; color: var(--mf-primary); font-weight: 600; font-size: 14px; }
.mf-pager strong { background: var(--mf-primary); border-color: var(--mf-primary); color: #fff; }

/* ---------- Sticky cart bar (mobile) ---------- */
.mf-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--mf-border); box-shadow: 0 -4px 16px rgba(16,24,40,.12); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.mf-cartbar .mf-cartbar-text { flex: 1; font-size: 14px; line-height: 1.3; }
.mf-cartbar .mf-cartbar-text b { font-size: 16px; }
.mf-has-cartbar { padding-bottom: 84px; }
@media (min-width: 992px) {
	.mf-cartbar { position: sticky; bottom: 12px; border: 1px solid var(--mf-border); border-radius: var(--mf-radius); margin-top: 14px; }
	.mf-has-cartbar { padding-bottom: 24px; }
}

/* ---------- Quick links (top of booking page) ---------- */
.mf-quick { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: none; }
.mf-quick::-webkit-scrollbar { display: none; }
.mf-quick .mf-btn { flex: 0 0 auto; }
.mf-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mf-danger); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Cart / payment ---------- */
.mf-cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--mf-border); }
.mf-cart-item:last-child { border-bottom: 0; }
.mf-cart-item .mf-slot-name { font-size: 15px; }
.mf-cart-meta { font-size: 13px; color: var(--mf-muted); }
.mf-cart-price { font-weight: 700; text-align: right; white-space: nowrap; }
.mf-cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; border-top: 2px solid var(--mf-border); margin-top: 4px; }
.mf-cart-total b { font-size: 20px; color: var(--mf-success); }
.mf-timer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--mf-warning-soft); color: #7A4A00; border: 1px solid #F5DDB0; margin-bottom: 12px; font-size: 14px; }
.mf-timer b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mf-timer.is-low { background: var(--mf-danger-soft); border-color: #F3C9C5; color: #8E2A20; }
.mf-pay-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
@media (min-width: 576px) { .mf-pay-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- Link tiles ---------- */
.mf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 768px) { .mf-tiles { grid-template-columns: repeat(3, 1fr); } }
.mf-tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--mf-border); border-radius: 10px; background: #fff; color: var(--mf-text); font-size: 14px; font-weight: 600; line-height: 1.25; }
.mf-tile .fa { width: 20px; text-align: center; color: var(--mf-primary); font-size: 16px; }
.mf-tile:hover { border-color: var(--mf-primary); color: var(--mf-primary); }

/* ---------- Profile header ---------- */
.mf-person { display: flex; gap: 12px; align-items: center; }
.mf-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #E3E8EE; flex: 0 0 auto; border: 2px solid #fff; box-shadow: var(--mf-shadow); }
.mf-person-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.mf-person-meta { font-size: 13px; color: var(--mf-muted); word-break: break-word; }
.mf-gift { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #FFF0F6; border: 1px solid #F6C9DC; font-size: 14px; }
.mf-gift .fa { font-size: 24px; color: #C2185B; }

/* ---------- Data list (paid bookings) ---------- */
.mf-dl { list-style: none; margin: 0; padding: 0; }
.mf-dl li { padding: 12px 14px; border-bottom: 1px solid var(--mf-border); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.mf-dl li:last-child { border-bottom: 0; }
.mf-dl .mf-dl-title { font-weight: 700; }
.mf-dl .mf-dl-meta { font-size: 13px; color: var(--mf-muted); grid-column: 1 / -1; }
.mf-dl .mf-dl-amount { font-weight: 700; text-align: right; white-space: nowrap; }
.mf-contrib { color: #A0137F; font-size: 12px; font-weight: 600; }
.mf-zoom { grid-column: 1 / -1; font-size: 13px; background: var(--mf-primary-soft); border-radius: 8px; padding: 6px 10px; color: #0B4C86; }
.mf-receipts { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-receipts a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--mf-border); border-radius: 8px; background: #fff; font-size: 13px; color: var(--mf-primary); font-weight: 600; }
.mf-receipts a code { color: var(--mf-muted); font-size: 12px; }

/* ---------- Profile layout + sidebar ---------- */
.mf-shell { display: block; }
.mf-main { min-width: 0; }
.mf-sidebar-toggle { display: inline-flex; }
@media (min-width: 992px) {
	.mf-shell { display: grid; grid-template-columns: var(--mf-sidebar-w) minmax(0, 1fr); gap: 20px; align-items: start; transition: grid-template-columns .2s ease; }
	.mf-shell.is-collapsed { grid-template-columns: var(--mf-sidebar-w-collapsed) minmax(0, 1fr); }
	.mf-sidebar-toggle.mf-mobile-only { display: none; }
}

/* Offcanvas on phones/tablets; static, sticky panel on desktop. Works with Bootstrap 5.0+ */
.mf-sidebar.offcanvas { --bs-offcanvas-width: 290px; width: 290px; max-width: 86vw; }
.mf-sidebar .offcanvas-header { border-bottom: 1px solid var(--mf-border); }
.mf-sidebar .offcanvas-body { padding: 12px; }
@media (min-width: 992px) {
	.mf .mf-sidebar.offcanvas {
		position: sticky; top: 12px; transform: none !important; visibility: visible !important;
		width: auto; max-width: none; height: auto; max-height: calc(100vh - 24px); z-index: 1;
		border: 1px solid var(--mf-border); border-radius: var(--mf-radius); box-shadow: var(--mf-shadow);
		background: #fff; overflow: hidden; display: flex; flex-direction: column;
	}
	.mf .mf-sidebar .offcanvas-header { display: none; }
	.mf .mf-sidebar .offcanvas-body { overflow-y: auto; flex: 1 1 auto; }
}
.mf-side-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--mf-border); margin-bottom: 8px; }
.mf-side-user .mf-avatar { width: 42px; height: 42px; }
.mf-side-user-text { min-width: 0; }
.mf-side-user-text b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-side-user-text span { display: block; font-size: 12px; color: var(--mf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Section titles: large text on a coloured band; links below pick up the same colour */
.mf-nav-group { --g: #1063AF; --g-soft: #E7F0FA; display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--g); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; }
.mf-nav-group:first-of-type { margin-top: 4px; }
.mf-nav-group .fa { font-size: 18px; width: 20px; text-align: center; }
.mf-nav-group.mf-g1 { --g: #1063AF; --g-soft: #E7F0FA; }
.mf-nav-group.mf-g2 { --g: #16A087; --g-soft: #E3F5F1; }
.mf-nav-group.mf-g3 { --g: #7A4FB3; --g-soft: #F0EAF8; }
.mf-nav-group.mf-g4 { --g: #D9771A; --g-soft: #FCEFE2; }
.mf-nav-group + .mf-nav { border-left: 3px solid var(--g); margin-left: 6px; padding-left: 4px; }
.mf-nav-group.mf-g1 + .mf-nav { --g: #1063AF; --g-soft: #E7F0FA; }
.mf-nav-group.mf-g2 + .mf-nav { --g: #16A087; --g-soft: #E3F5F1; }
.mf-nav-group.mf-g3 + .mf-nav { --g: #7A4FB3; --g-soft: #F0EAF8; }
.mf-nav-group.mf-g4 + .mf-nav { --g: #D9771A; --g-soft: #FCEFE2; }
.mf-nav-group + .mf-nav a .fa { color: var(--g); }
.mf-nav-group + .mf-nav a:hover, .mf-nav-group + .mf-nav a.is-active { background: var(--g-soft); color: var(--g); }
.mf-nav { list-style: none; margin: 0; padding: 0; }
.mf-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--mf-text); font-size: 14px; font-weight: 600; }
.mf-nav a .fa { width: 20px; text-align: center; font-size: 16px; color: var(--mf-primary); flex: 0 0 auto; }
.mf-nav a:hover { background: var(--mf-bg); color: var(--mf-primary); }
.mf-nav a.is-active { background: var(--mf-primary-soft); color: var(--mf-primary); }
.mf-nav a .mf-count { margin-left: auto; }
.mf-nav a.mf-nav-logout, .mf-nav a.mf-nav-logout .fa { color: var(--mf-danger); }
.mf-collapse-btn { display: none; }
@media (min-width: 992px) {
	.mf-collapse-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-top: 1px solid var(--mf-border); background: #FAFBFC; color: var(--mf-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
	.mf-collapse-btn .fa { width: 20px; text-align: center; transition: transform .2s; }
	.mf-shell.is-collapsed .mf-collapse-btn .fa { transform: rotate(180deg); }
	.mf-shell.is-collapsed .mf-sidebar .mf-label-text,
	.mf-shell.is-collapsed .mf-sidebar .mf-nav-group,
	.mf-shell.is-collapsed .mf-sidebar .mf-side-user-text,
	.mf-shell.is-collapsed .mf-sidebar .mf-count { display: none; }
	.mf-shell.is-collapsed .mf-sidebar .mf-nav-group + .mf-nav { border-left: 0; margin-left: 0; padding-left: 0; }
	.mf-shell.is-collapsed .mf-sidebar .mf-nav a,
	.mf-shell.is-collapsed .mf-collapse-btn { justify-content: center; padding: 8px 0; }
	.mf-shell.is-collapsed .mf-side-user { justify-content: center; padding: 4px 0 12px; }
	.mf-shell.is-collapsed .mf-sidebar .offcanvas-body { padding: 10px 6px; }
}

/* ---------- Bits ---------- */
.mf-muted { color: var(--mf-muted); }
.mf-mt-0 { margin-top: 0 !important; }
.mf-hide-sm { display: none; }
@media (min-width: 768px) { .mf-hide-sm { display: initial; } }
.mf-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0C4F8D, #088EDD); color: #fff; }
.mf-hero .mf-container { padding-top: 18px; padding-bottom: 18px; }
.mf-hero h1 { color: #fff; margin: 0; font-size: 20px; font-weight: 700; }
.mf-hero p { margin: 4px 0 0; color: rgba(255,255,255,.88); font-size: 14px; }
@media (min-width: 768px) { .mf-hero h1 { font-size: 28px; } .mf-hero .mf-container { padding-top: 28px; padding-bottom: 28px; } }
.mf-help-wrap { background: #E9F5EC; border-bottom: 1px solid #CDE8D4; }
.mf-help-wrap > summary { list-style: none; cursor: pointer; padding: 10px 12px; font-weight: 700; color: #1C6B37; font-size: 14px; display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; }
.mf-help-wrap > summary::-webkit-details-marker { display: none; }
.mf-help-wrap > summary .fa-chevron-down { margin-left: auto; transition: transform .2s; }
.mf-help-wrap[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.mf-help-body { max-width: 1200px; margin: 0 auto; padding: 0 12px 12px; }
.mf-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mf-captcha img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--mf-border); }
.mf-captcha input { max-width: 180px; }
.mf-yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; background: #000 center/cover no-repeat; border-radius: 10px; overflow: hidden; cursor: pointer; border: 0; padding: 0; }
.mf-yt::after { content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: rgba(255,0,0,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; }
.mf-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mf-star-wrap { overflow-x: auto; }

/* ---------- Home sliders (med_home_slider, services home) ---------- */
.mf-slider .carousel-item img { display: block; width: 100%; height: auto; object-fit: cover; background: #DDE6EE; }
.mf-slider .carousel-caption .mf-cap-btn { margin-top: 8px; }
@media (max-width: 767.98px) {
	/* On phones the caption sits under the photo so the text stays readable */
	.mf-slider .carousel-item img { aspect-ratio: 16 / 9; }
	.mf-slider .carousel-caption { position: static; padding: 12px 14px 34px !important; background: #0C4F8D; text-align: left; }
	.mf-slider .carousel-caption h5 { font-size: 17px !important; margin-bottom: 4px; }
	.mf-slider .carousel-caption p { font-size: 14px; margin-bottom: 0; }
	.mf-slider .carousel-control-prev, .mf-slider .carousel-control-next { height: 56vw; width: 12%; }
	.mf-slider .carousel-indicators { margin-bottom: 8px; }
}

/* ---------- Booking popup (confirm / tick / cross) ---------- */
html.mf-noscroll, html.mf-noscroll body { overflow: hidden; }
.mf.mf-modal-wrap { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: none; }
.mf.mf-modal-wrap.is-open { display: flex; }
.mf-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); animation: mf-fade .2s ease; }
.mf-modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); outline: none; animation: mf-pop .22s cubic-bezier(.2,.9,.3,1.2); }
@media (max-width: 575.98px) {
	.mf.mf-modal-wrap { align-items: flex-end; padding: 0; }
	.mf-modal { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: mf-up .25s ease; }
}
.mf-modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px; }
.mf-modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; flex: 1; color: var(--mf-text); }
.mf-modal-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mf-success-soft); color: var(--mf-success); font-size: 18px; flex: 0 0 auto; }
.mf-modal-icon-danger { background: var(--mf-danger-soft); color: var(--mf-danger); }
.mf-modal-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--mf-muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.mf-modal-x:hover { background: var(--mf-bg); }
.mf-modal-body { padding: 8px 18px 4px; }
.mf-summary { border: 1px solid var(--mf-border); border-radius: 12px; overflow: hidden; }
.mf-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--mf-border); }
.mf-summary-row:last-child { border-bottom: 0; }
.mf-summary-row span { color: var(--mf-muted); }
.mf-summary-row b { text-align: right; }
.mf-summary-row b small { display: block; font-weight: 400; color: var(--mf-muted); font-size: 12px; }
.mf-summary-total { background: var(--mf-success-soft); }
.mf-summary-total b { color: var(--mf-success); font-size: 18px; }
.mf-modal-note { display: flex; gap: 8px; font-size: 13px; color: #7A4A00; background: var(--mf-warning-soft); border-radius: 10px; padding: 8px 10px; margin: 12px 0 0; text-align: left; }
.mf-modal-note .fa { margin-top: 2px; }
.mf-modal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px 18px; }
.mf-modal-foot:has(> :only-child) { grid-template-columns: 1fr; }
.mf-modal-result { padding: 26px 22px 4px; text-align: center; }
.mf-modal-result h2 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; color: var(--mf-text); }
.mf-modal-result p { margin: 0 0 4px; color: var(--mf-muted); font-size: 14px; }

/* animated tick / cross */
.mf-anim { width: 84px; height: 84px; display: block; margin: 0 auto; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mf-anim circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: mf-draw .6s ease-out forwards; }
.mf-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: mf-draw .35s .55s ease-out forwards; }
.mf-anim-ok { stroke: var(--mf-success); animation: mf-fill-ok .4s .85s ease forwards, mf-bounce .45s .85s ease; border-radius: 50%; }
.mf-anim-err { stroke: var(--mf-danger); animation: mf-shake .4s .85s ease; }
@keyframes mf-draw { to { stroke-dashoffset: 0; } }
@keyframes mf-fill-ok { to { box-shadow: inset 0 0 0 42px var(--mf-success-soft); } }
@keyframes mf-bounce { 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes mf-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes mf-fade { from { opacity: 0; } }
@keyframes mf-pop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
@keyframes mf-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
	.mf-modal, .mf-modal-backdrop, .mf-anim, .mf-anim * { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.mf-hide-xs { display: inline; }
@media (max-width: 420px) { .mf-hide-xs { display: none; } }
