/*
 * Consulting page (page-consulting.php) and its booking widget.
 * Builds on ml-pages.css (info-page design) and the theme tokens (--ms-*),
 * so light and dark mode follow html[data-theme].
 */

.mlp--consulting {
	--mlb-field-bg: var(--ms-bg-2, #fbfcfb);
	--mlb-sel: color-mix(in srgb, var(--mlp-accent) 9%, var(--mlp-surface));
	--mlb-ring: 0 0 0 4px color-mix(in srgb, var(--mlp-accent) 18%, transparent);
	scroll-behavior: smooth;
}

html[data-theme="dark"] .mlp--consulting {
	--mlb-field-bg: rgba(255, 255, 255, .05);
	--mlb-sel: color-mix(in srgb, var(--mlp-accent) 16%, var(--mlp-surface));
}

.mlp--consulting [id] { scroll-margin-top: calc(var(--ms-header-h, 76px) + 16px); }

.mlp--consulting .mlp-hero__title { max-width: 720px; }

.mlc-head p {
	max-width: 640px;
	margin: 8px 0 0;
	color: var(--ms-muted);
	font-size: 14px;
	line-height: 2;
}

/* ---------------------------------------------------------------- Trust strip */
.mlc-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	max-width: 980px;
	margin: 0 auto;
	padding: 6px;
	list-style: none;
	background: var(--mlp-surface);
	border: 1px solid var(--mlp-border);
	border-radius: 20px;
	box-shadow: var(--ms-shadow, none);
}

.mlc-trust li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 10px;
	color: var(--ms-ink);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.mlc-trust li + li { border-inline-start: 1px solid var(--mlp-border); }

.mlc-trust i { color: var(--mlp-accent); font-size: 17px; }

/* ---------------------------------------------------------------- Services */
.mlc-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mlc-service { position: relative; }

.mlc-service p { flex: 0 1 auto; }

.mlc-service > p:not(.mlc-service__ideal) { flex: 1; }

.mlc-service__ideal {
	margin-top: 14px !important;
	padding-top: 12px;
	border-top: 1px dashed var(--mlp-border);
	font-size: 12.5px !important;
	line-height: 1.9 !important;
}

.mlc-service__ideal b { color: var(--ms-ink-2, var(--ms-ink)); font-weight: 800; }

.mlc-service .mlp-card__more { text-decoration: none; }

.mlc-service .mlp-card__more:hover { gap: 10px; }

/* ---------------------------------------------------------------- Steps */
.mlc-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlc-steps li {
	position: relative;
	padding: 22px 20px;
	background: var(--mlp-surface);
	border: 1px solid var(--mlp-border);
	border-radius: 20px;
}

.mlc-steps__n {
	position: absolute;
	top: 16px;
	inset-inline-end: 18px;
	color: color-mix(in srgb, var(--mlp-accent) 30%, transparent);
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
}

.mlc-steps__icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mlp-tint);
	color: var(--mlp-accent);
	font-size: 19px;
}

.mlc-steps h3 { margin: 14px 0 0; color: var(--ms-ink); font-size: 15.5px; font-weight: 800; }

.mlc-steps p { margin: 6px 0 0; color: var(--ms-muted); font-size: 13px; line-height: 1.95; }

/* ---------------------------------------------------------------- Booking widget */
.mlb__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 0;
	background: var(--mlp-surface);
	border: 1px solid var(--mlp-border);
	border-radius: 26px;
	box-shadow: var(--ms-shadow-lg, var(--ms-shadow));
	overflow: clip;
}

.mlb__main { padding: 28px 30px 30px; min-width: 0; }

.mlb-step {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	transition: opacity .2s ease;
}

.mlb-step + .mlb-step {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--mlp-border);
}

.mlb-step[disabled] { opacity: .45; }

.mlb-step__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	color: var(--ms-ink);
	font-size: 16px;
	font-weight: 900;
}

.mlb-step__n {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mlp-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.mlb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

/* Session types */
.mlb-types { display: grid; gap: 10px; }

.mlb-type {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--mlp-border);
	border-radius: 18px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.mlb-type:hover { border-color: color-mix(in srgb, var(--mlp-accent) 50%, var(--mlp-border)); }

.mlb-type:has(input:checked) {
	border-color: var(--mlp-accent);
	background: var(--mlb-sel);
}

.mlb-type:has(input:focus-visible) { box-shadow: var(--mlb-ring); }

.mlb-type__icon {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mlp-tint);
	color: var(--mlp-accent);
	font-size: 19px;
}

.mlb-type__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.mlb-type__title { color: var(--ms-ink); font-size: 14.5px; font-weight: 800; }

.mlb-type__desc { color: var(--ms-muted); font-size: 12.5px; line-height: 1.9; }

.mlb-type__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	text-align: left;
	white-space: nowrap;
}

.mlb-type__dur {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ms-bg, #f6f7f6);
	color: var(--ms-body, var(--ms-muted));
	font-size: 12px;
	font-weight: 700;
}

.mlb-type__price { color: var(--ms-ink); font-size: 14px; font-weight: 900; }

.mlb-type__check {
	position: absolute;
	top: -8px;
	inset-inline-start: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--mlp-accent);
	color: #fff;
	font-size: 11px;
	box-shadow: 0 0 0 3px var(--mlp-surface);
}

.mlb-type:has(input:checked) .mlb-type__check { display: inline-flex; }

/* Date strip */
.mlb-days-wrap {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
}

.mlb-days__nav {
	width: 36px;
	height: 36px;
	border: 1px solid var(--mlp-border);
	border-radius: 50%;
	background: var(--mlp-surface);
	color: var(--ms-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.mlb-days__nav:hover:not(:disabled) { border-color: var(--mlp-accent); color: var(--mlp-accent); }

.mlb-days__nav:disabled { opacity: .35; cursor: default; }

.mlb-days {
	display: flex;
	gap: 8px;
	min-width: 0;
	padding: 4px 2px 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.mlb-days::-webkit-scrollbar { display: none; }

.mlb-day {
	flex: none;
	width: 78px;
	padding: 10px 4px 9px;
	border: 1.5px solid var(--mlp-border);
	border-radius: 16px;
	background: var(--mlp-surface);
	color: var(--ms-ink);
	font: inherit;
	text-align: center;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mlb-day:hover:not(:disabled) { border-color: color-mix(in srgb, var(--mlp-accent) 55%, var(--mlp-border)); }

.mlb-day:focus-visible,
.mlb-time:focus-visible,
.mlb-days__nav:focus-visible { outline: 0; box-shadow: var(--mlb-ring); }

.mlb-day b { display: block; font-size: 20px; font-weight: 900; line-height: 1.3; }

.mlb-day span { display: block; color: var(--ms-muted); font-size: 11.5px; line-height: 1.7; }

.mlb-day .mlb-day__free {
	margin-top: 4px;
	color: var(--ms-green-ink, var(--mlp-accent));
	font-size: 11px;
	font-weight: 700;
}

.mlb-day[aria-pressed="true"] {
	border-color: var(--mlp-accent);
	background: var(--mlp-accent);
	color: #fff;
}

.mlb-day[aria-pressed="true"] span { color: rgba(255, 255, 255, .88); }

.mlb-day:disabled {
	cursor: not-allowed;
	background: transparent;
	border-style: dashed;
	opacity: .5;
}

.mlb-day:disabled .mlb-day__free { color: var(--ms-muted); font-weight: 500; }

/* Time chips */
.mlb-times { margin-top: 16px; min-height: 48px; }

.mlb-times__group + .mlb-times__group { margin-top: 14px; }

.mlb-times__label {
	margin: 0 0 8px;
	color: var(--ms-muted);
	font-size: 12px;
	font-weight: 700;
}

.mlb-times__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}

.mlb-time {
	min-height: 42px;
	border: 1.5px solid var(--mlp-border);
	border-radius: 12px;
	background: var(--mlp-surface);
	color: var(--ms-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.mlb-time:hover { border-color: var(--mlp-accent); color: var(--mlp-accent); }

.mlb-time[aria-pressed="true"] {
	border-color: var(--mlp-accent);
	background: var(--mlp-accent);
	color: #fff;
}

.mlb-hint {
	margin: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ms-bg, #f6f7f6);
	color: var(--ms-muted);
	font-size: 13px;
	line-height: 1.9;
}

.mlb-skel {
	flex: none;
	width: 78px;
	height: 86px;
	border-radius: 16px;
	background: linear-gradient(90deg, var(--ms-line-soft, #f0f2f0), var(--ms-bg, #f6f7f6), var(--ms-line-soft, #f0f2f0));
	background-size: 200% 100%;
	animation: mlb-shimmer 1.2s linear infinite;
}

@keyframes mlb-shimmer { to { background-position: -200% 0; } }

.mlb-local {
	margin: 12px 0 0;
	color: var(--ms-muted);
	font-size: 12.5px;
}

.mlb-local i { color: var(--mlp-accent); margin-inline-end: 4px; }

/* Form */
.mlb-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.mlb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.mlb-field--wide { grid-column: 1 / -1; }

.mlb-field label { color: var(--ms-ink); font-size: 13px; font-weight: 700; }

.mlb-field label span { color: var(--mlp-accent); }

.mlb-field label small { color: var(--ms-muted); font-weight: 500; }

.mlb-field input,
.mlb-field select,
.mlb-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--mlp-border);
	border-radius: 12px;
	background: var(--mlb-field-bg);
	color: var(--ms-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mlb-field textarea { min-height: 110px; resize: vertical; line-height: 1.9; }

.mlb-field input::placeholder,
.mlb-field textarea::placeholder { color: var(--ms-muted); opacity: .8; }

.mlb-field input[dir="ltr"]::placeholder { text-align: right; }

.mlb-field input:focus,
.mlb-field select:focus,
.mlb-field textarea:focus {
	outline: 0;
	border-color: var(--mlp-accent);
	box-shadow: var(--mlb-ring);
}

.mlb-field small { color: var(--ms-muted); font-size: 12px; }

.mlb-field.is-invalid input,
.mlb-field.is-invalid select,
.mlb-field.is-invalid textarea { border-color: #dc2626; }

.mlb-field__err { color: #dc2626; font-size: 12px; font-weight: 700; }

html[data-theme="dark"] .mlb-field__err,
html[data-theme="dark"] .mlb-error--page { margin: 0 0 16px; padding: 14px 18px; font-weight: 700; }

.mlb-error { color: #fca5a5; }

html[data-theme="dark"] .mlb-field select option { background: #291d16; color: var(--ms-ink); }

.mlb-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Summary */
.mlb__summary {
	position: relative;
	padding: 28px 26px;
	background: var(--ms-bg-2, #fbfcfb);
	border-inline-start: 1px solid var(--mlp-border);
}

html[data-theme="dark"] .mlb__summary { background: rgba(255, 255, 255, .025); }

.mlb__sticky { position: sticky; top: calc(var(--ms-header-h, 76px) + 20px); }

.mlb__summary h3 { margin: 0; color: var(--ms-ink); font-size: 16px; font-weight: 900; }

.mlb-sum { margin: 14px 0 0; }

.mlb-sum div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mlp-border);
	font-size: 13px;
}

.mlb-sum dt { flex: none; color: var(--ms-muted); }

.mlb-sum dd { margin: 0; color: var(--ms-ink); font-weight: 700; text-align: left; line-height: 1.8; }

.mlb-sum__total { border-bottom: 0 !important; padding-top: 14px !important; }

.mlb-sum__total dd { font-size: 17px; font-weight: 900; color: var(--ms-ink); }

.mlb-error {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: color-mix(in srgb, #dc2626 9%, transparent);
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.9;
}

.ms-btn.mlb-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin-top: 16px;
	border: 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 900;
}

.ms-btn.mlb-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.ms-btn.mlb-submit.is-busy { opacity: .8; cursor: progress; }

.mlb-assure {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ms-muted);
	font-size: 12.5px;
}

.mlb-assure i { width: 18px; color: var(--mlp-accent); margin-inline-end: 6px; text-align: center; }

.mlb-policy {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--mlp-border);
}

.mlb-policy summary {
	color: var(--ms-ink);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.mlb-policy p { margin: 8px 0 0; color: var(--ms-muted); font-size: 12.5px; line-height: 2; }

/* ---------------------------------------------------------------- Confirmation panel */
.mlb-done {
	display: flex;
	gap: 20px;
	max-width: 900px;
	margin: 0 auto 40px;
	padding: 28px 30px;
	background: var(--mlp-surface);
	border: 1.5px solid var(--mlp-border);
	border-radius: 24px;
	box-shadow: var(--ms-shadow-lg, var(--ms-shadow));
	outline: 0;
}

.mlb-done--ok { border-color: color-mix(in srgb, #16a34a 45%, var(--mlp-border)); }

.mlb-done--hold { border-color: color-mix(in srgb, #f59e0b 55%, var(--mlp-border)); }

.mlb-done--fail { border-color: color-mix(in srgb, #dc2626 40%, var(--mlp-border)); }

.mlb-done__icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	background: color-mix(in srgb, #16a34a 12%, transparent);
	color: #16a34a;
}

.mlb-done--hold .mlb-done__icon { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #d97706; }

.mlb-done--fail .mlb-done__icon { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }

.mlb-done__body { flex: 1; min-width: 0; }

.mlb-done h2 { margin: 4px 0 0; color: var(--ms-ink); font-size: 21px; font-weight: 900; line-height: 1.6; }

.mlb-done__body > p { margin: 6px 0 0; color: var(--ms-body, var(--ms-muted)); font-size: 14px; line-height: 2; }

.mlb-done__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
}

.mlb-done__facts div {
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--ms-bg, #f6f7f6);
}

html[data-theme="dark"] .mlb-done__facts div { background: rgba(255, 255, 255, .04); }

.mlb-done__facts dt { color: var(--ms-muted); font-size: 12px; }

.mlb-done__facts dd { margin: 2px 0 0; color: var(--ms-ink); font-size: 14px; font-weight: 800; line-height: 1.8; }

.mlb-done__meet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px dashed var(--mlp-border);
	font-size: 13.5px;
}

.mlb-done__meet b { color: var(--ms-ink); }

.mlb-done__meet a { color: var(--mlp-accent); font-weight: 700; word-break: break-all; }

.mlb-done__meet span { color: var(--ms-muted); }

.mlb-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.mlb-done__actions .ms-btn { display: inline-flex; align-items: center; gap: 8px; }

.mlb-done__next { margin: 16px 0 0 !important; font-size: 13px !important; color: var(--ms-muted) !important; }

.mlb-done__next b { color: var(--ms-ink); }

/* ---------------------------------------------------------------- What you get + tips */
.mlc-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.mlc-split .mlp-points { margin-top: 18px; }

.mlc-tips ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }

.mlc-tips li { display: flex; gap: 10px; color: var(--ms-body, var(--ms-muted)); font-size: 13.5px; line-height: 1.95; }

.mlc-tips li i {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--mlp-tint);
	color: var(--mlp-accent);
	font-size: 11px;
}

.mlc-tips__note {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--mlp-tint);
	color: var(--ms-ink-2, var(--ms-ink));
	font-size: 13px;
	line-height: 2;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
	.mlb__card { grid-template-columns: minmax(0, 1fr) 290px; }
	.mlc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.mlc-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mlb__card { grid-template-columns: 1fr; }
	.mlb__summary { border-inline-start: 0; border-top: 1px solid var(--mlp-border); }
	.mlb__sticky { position: static; }
	.mlc-split { grid-template-columns: 1fr; }
	.mlc-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mlc-trust li:nth-child(3) { border-inline-start: 0; }
	.mlc-trust li:nth-child(n+3) { border-top: 1px solid var(--mlp-border); }
}

@media (max-width: 620px) {
	.mlc-services,
	.mlc-steps { grid-template-columns: 1fr; }
	.mlb__main { padding: 20px 16px 22px; }
	.mlb__summary { padding: 20px 16px; }
	.mlb__card { border-radius: 20px; }
	.mlb-type { grid-template-columns: auto minmax(0, 1fr); padding: 12px; gap: 12px; }
	.mlb-type__icon { width: 40px; height: 40px; font-size: 17px; }
	.mlb-type__meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: right; }
	.mlb-days-wrap { grid-template-columns: minmax(0, 1fr); }
	.mlb-days__nav { display: none; }
	.mlb-day { width: 70px; }
	.mlb-fields { grid-template-columns: 1fr; }
	.mlb-times__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mlb-done { flex-direction: column; padding: 22px 18px; gap: 12px; }
	.mlb-done__facts { grid-template-columns: 1fr; }
	.mlc-trust li { font-size: 12px; padding: 10px 6px; gap: 6px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.mlp--consulting { scroll-behavior: auto; }
	.mlb-skel { animation: none; }
}
