/* Matei Booking — front-end. Paleta naturala Delta: salvie/oliv + crem + lemn cald. */
.mb-widget {
	--mb-green: #55684d;
	--mb-green-d: #3e4d38;
	--mb-cream: #f8f3e9;
	--mb-cream-2: #eee6d5;
	--mb-clay: #bd7a4f;
	--mb-clay-d: #a4653d;
	--mb-wood: #bd7a4f;
	--mb-ink: #34362e;
	--mb-muted: #8c8676;
	--mb-line: #e7ddc9;
	--mb-busy: #ddccb4;
	--mb-range: #d7e0c6;
	--mb-wa: #1fa855;
	--mb-wa-d: #178f47;
	--mb-white: #ffffff;
	--mb-radius: 16px;
	--mb-shadow: 0 10px 34px rgba(62, 77, 56, .12);
	--mb-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--mb-sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	max-width: 760px;
	margin: 0 auto;
	font-family: var(--mb-sans);
	color: var(--mb-ink);
	box-sizing: border-box;
}
.mb-widget *, .mb-widget *::before, .mb-widget *::after { box-sizing: border-box; }
.mb-widget .mb-uc-name, .mb-widget .mb-uh-name, .mb-widget .mb-success h3,
.mb-widget .mb-cal-title, .mb-widget .mb-sum-dates strong {
	font-family: var(--mb-serif);
}

.mb-inner {
	background: var(--mb-white);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-shadow);
	padding: 22px;
}
.mb-loading { text-align: center; color: var(--mb-muted); padding: 30px 0; }

/* ---- carduri unitati ---- */
.mb-units { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mb-unit-card {
	border: 1.5px solid var(--mb-line);
	border-radius: 12px;
	padding: 14px 15px;
	cursor: pointer;
	background: var(--mb-cream);
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.mb-unit-card:hover { border-color: var(--mb-wood); }
.mb-unit-card.is-active {
	border-color: var(--mb-green);
	background: var(--mb-white);
	box-shadow: 0 0 0 3px rgba(107, 122, 94, .15);
}
.mb-uc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mb-uc-name { font-weight: 700; font-size: 16px; }
.mb-uc-price { font-weight: 700; color: var(--mb-green-d); white-space: nowrap; }
.mb-uc-price small { font-weight: 500; color: var(--mb-muted); font-size: 11px; }
.mb-uc-short { font-size: 12.5px; color: var(--mb-muted); line-height: 1.4; }
.mb-uc-note { font-size: 11.5px; color: var(--mb-wood); margin-top: 7px; font-weight: 600; }

/* ---- header o unitate ---- */
.mb-unit-head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mb-line); }
.mb-uh-name { font-size: 19px; font-weight: 700; }
.mb-uh-meta { font-size: 13px; color: var(--mb-muted); margin: 3px 0 6px; }
.mb-uh-price { font-size: 17px; font-weight: 700; color: var(--mb-green-d); }
.mb-uh-price span { font-size: 12px; font-weight: 500; color: var(--mb-muted); }

/* ---- banner promoție ---- */
.mb-promo-banner {
	display: flex; align-items: center; gap: 10px;
	margin: 4px 0 14px; padding: 11px 14px; border-radius: 12px;
	background: linear-gradient(180deg, #fbf3e4, #f6ead2);
	border: 1px solid #e8d3a6; color: #7a5a1e;
}
.mb-promo-ico { font-size: 22px; line-height: 1; align-self: flex-start; }
.mb-promo-txt { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mb-promo-item { display: flex; flex-direction: column; }
.mb-promo-head { font-weight: 700; color: #7a5a1e; }
.mb-promo-sub { color: var(--mb-clay-d); font-size: 13px; }
.mb-promo-sub b { color: var(--mb-clay-d); }

/* ---- calendar ---- */
.mb-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mb-cal-title { font-weight: 700; font-size: 14.5px; text-align: center; flex: 1; }
.mb-nav-btn {
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--mb-line); background: var(--mb-cream);
	color: var(--mb-green-d); font-size: 20px; line-height: 1; cursor: pointer;
	transition: background .15s;
}
.mb-nav-btn:hover { background: var(--mb-cream-2); }
.mb-nav-btn:disabled { opacity: .3; cursor: default; }

.mb-months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mb-month { position: relative; }
.mb-month-promo {
	position: absolute; top: -6px; right: 0;
	background: var(--mb-clay); color: #fff; font-size: 10.5px; font-weight: 700;
	padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 6px rgba(189,122,79,.35);
}
.mb-month-cap { display: none; text-align: center; font-weight: 600; font-size: 13px; color: var(--mb-muted); margin-bottom: 6px; }
.mb-week-head { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.mb-dow { text-align: center; font-size: 11px; color: var(--mb-muted); font-weight: 600; padding: 2px 0; }
.mb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.mb-day {
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; border-radius: 9px; position: relative;
	user-select: none;
}
.mb-empty { visibility: hidden; }
.mb-avail { background: var(--mb-cream); color: var(--mb-ink); cursor: pointer; transition: background .12s; }
.mb-avail:hover { background: #e3ecd8; }
.mb-busy { background: var(--mb-busy); color: #9a8b74; text-decoration: line-through; cursor: not-allowed; }
.mb-past { color: #cfcabb; cursor: default; }

.mb-start, .mb-end { background: var(--mb-green) !important; color: #fff !important; font-weight: 700; }
.mb-inrange { background: var(--mb-range) !important; color: var(--mb-green-d) !important; border-radius: 0; }
.mb-start { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mb-end { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---- legenda ---- */
.mb-legend { display: flex; gap: 16px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.mb-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mb-muted); }
.mb-sw { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.mb-sw-free { background: var(--mb-cream); border: 1px solid var(--mb-line); }
.mb-sw-busy { background: var(--mb-busy); }
.mb-sw-sel { background: var(--mb-green); }

/* ---- sumar ---- */
.mb-summary {
	margin-top: 16px; padding: 15px 16px;
	background: var(--mb-cream); border: 1px solid var(--mb-line); border-radius: 12px;
}
.mb-sum-dates { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.mb-sum-dates > div { flex: 1; }
.mb-sum-lbl { display: block; font-size: 11px; color: var(--mb-muted); text-transform: uppercase; letter-spacing: .4px; }
.mb-sum-dates strong { font-size: 15px; }
.mb-sum-arrow { flex: 0 !important; color: var(--mb-wood); font-size: 18px; }
.mb-sum-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 3px 0; }
.mb-sum-total { font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--mb-line); }
.mb-sum-total strong { font-size: 17px; }
.mb-sum-strike { color: var(--mb-muted); font-weight: 500; }
.mb-sum-disc { color: var(--mb-clay-d); }
.mb-sum-disc strong { color: var(--mb-clay-d); }

/* defalcare plata clara: avans acum vs rest la sosire */
.mb-pay { margin-top: 10px; display: grid; gap: 8px; }
.mb-pay-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; }
.mb-pay-now { background: #eef3e6; border: 1px solid #cfdcbc; }
.mb-pay-rest { background: var(--mb-white); border: 1px dashed var(--mb-line); }
.mb-pay-lbl { display: flex; flex-direction: column; }
.mb-pay-lbl b { font-size: 13.5px; }
.mb-pay-lbl small { font-size: 11.5px; color: var(--mb-muted); }
.mb-pay-val { font-size: 16px; font-weight: 700; }
.mb-pay-now .mb-pay-val { color: var(--mb-green-d); }
.mb-sum-note { margin-top: 9px; font-size: 12px; color: var(--mb-muted); text-align: center; line-height: 1.4; }
.mb-sum-warn { margin-top: 8px; color: var(--mb-clay-d); font-size: 13px; font-weight: 600; }

/* CTA WhatsApp — oferte personalizate */
.mb-wa-cta {
	display: flex; align-items: center; gap: 12px;
	margin-top: 14px; padding: 13px 15px;
	background: linear-gradient(180deg, #f4f7ee, #eef3e4);
	border: 1px solid #d8e2c8; border-radius: 12px;
}
.mb-wa-ico {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	background: var(--mb-wa); color: #fff; display: flex; align-items: center; justify-content: center;
}
.mb-wa-ico svg { width: 21px; height: 21px; fill: #fff; }
.mb-wa-txt { flex: 1; font-size: 13px; line-height: 1.35; color: var(--mb-ink); }
.mb-wa-txt b { display: block; font-size: 13.5px; }
.mb-wa-txt span { color: var(--mb-muted); }
.mb-wa-btn {
	flex: 0 0 auto; text-decoration: none; white-space: nowrap;
	background: var(--mb-wa); color: #fff; font-weight: 700; font-size: 13px;
	padding: 9px 15px; border-radius: 9px; transition: background .15s;
}
.mb-wa-btn:hover { background: var(--mb-wa-d); color: #fff; }

/* ---- indiciu selectare ---- */
.mb-pick-hint {
	margin-top: 14px; padding: 12px 14px; text-align: center;
	background: var(--mb-cream); border: 1px dashed var(--mb-line); border-radius: 12px;
	font-size: 13.5px; color: var(--mb-muted);
}
.mb-pick-hint strong { color: var(--mb-green-d); }

/* ---- formular ---- */
.mb-form-wrap { margin-top: 16px; }
.mb-form-title { font-family: var(--mb-serif); font-size: 17px; font-weight: 600; margin: 0 0 12px; color: var(--mb-ink); }
.mb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mb-field { display: block; margin-bottom: 12px; }
.mb-field > span { display: block; font-size: 12.5px; color: var(--mb-muted); margin-bottom: 5px; font-weight: 600; }
.mb-field input, .mb-field select, .mb-field textarea {
	width: 100%; padding: 11px 12px; font-size: 14px; font-family: inherit;
	border: 1px solid var(--mb-line); border-radius: 10px; background: #fff; color: var(--mb-ink);
	transition: border-color .15s, box-shadow .15s;
}
.mb-field input:focus, .mb-field select:focus, .mb-field textarea:focus {
	outline: none; border-color: var(--mb-green); box-shadow: 0 0 0 3px rgba(107,122,94,.13);
}
.mb-field textarea { resize: vertical; }
.mb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mb-submit {
	width: 100%; margin-top: 6px; padding: 14px; font-size: 15px; font-weight: 700; font-family: inherit;
	color: #fff; background: var(--mb-green); border: none; border-radius: 11px; cursor: pointer;
	transition: background .15s, transform .05s;
}
.mb-submit:hover { background: var(--mb-green-d); }
.mb-submit:active { transform: translateY(1px); }
.mb-submit:disabled { opacity: .6; cursor: default; }
.mb-form-note { text-align: center; font-size: 12px; color: var(--mb-muted); margin: 9px 0 0; }

/* ---- mesaje ---- */
.mb-msg { margin-top: 12px; font-size: 13.5px; text-align: center; }
.mb-msg:empty { margin: 0; }
.mb-msg-warn { color: #b3541e; }
.mb-msg-error { color: #b23a3a; }
.mb-msg-info { color: var(--mb-muted); }

/* ---- succes ---- */
.mb-success { text-align: center; padding: 26px 12px; }
.mb-succ-ico {
	width: 58px; height: 58px; border-radius: 50%; background: #e3ecd8; color: var(--mb-green-d);
	font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.mb-success h3 { margin: 0 0 8px; font-size: 20px; }
.mb-success p { color: var(--mb-muted); margin: 0 auto; max-width: 380px; line-height: 1.5; }
.mb-succ-wa { margin-top: 12px !important; }

/* ---- responsive ---- */
@media (max-width: 640px) {
	.mb-inner { padding: 16px; }
	.mb-units { grid-template-columns: 1fr; }
	.mb-months { grid-template-columns: 1fr; }
	.mb-field-row { grid-template-columns: 1fr; gap: 0; }
	.mb-day { font-size: 14px; }
	.mb-wa-cta { flex-wrap: wrap; }
	.mb-wa-txt { flex: 1 1 60%; }
	.mb-wa-btn { flex: 1 1 100%; text-align: center; }
}
