/* ==========================================================================
   Mughleem — pre-booking & enquiry forms
   ========================================================================== */
.mg-booking, .mg-enquiry {
	scroll-margin-top: 140px;
	--f-line: #e6d6b2;
	--f-bg: #fff;
	position: relative;
	background: var(--f-bg);
	border: 1px solid rgba(212, 165, 72, 0.4);
	border-radius: 24px;
	padding: clamp(1.1rem, 3.2vw, 2.6rem);
	box-shadow: 0 34px 70px -40px rgba(42, 8, 39, 0.55);
	color: var(--wp--preset--color--ink, #2b1a26);
	font-size: 1rem;
	text-align: left;
}
.mg-enquiry { box-shadow: none; border: 0; padding: 0; background: transparent; }
.mg-booking-block.alignwide { max-width: var(--wp--style--global--wide-size); }

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

.mg-booking__head { text-align: center; margin-bottom: 1.5rem; }
.mg-booking__eyebrow { font-family: var(--wp--preset--font-family--accent); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 700; color: var(--wp--preset--color--bronze, #8a5a12); margin: 0 0 0.3rem; }
.mg-booking__title { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--wp--preset--color--aubergine, #2a0827); margin: 0 0 0.4rem; line-height: 1.1; }
.mg-enquiry .mg-booking__title { margin-bottom: 1.2rem; }
.mg-booking__intro { color: var(--wp--preset--color--muted, #6e5a66); margin: 0 auto 0.6rem; max-width: 40rem; }
.mg-booking__steps { display: flex; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: s; flex-wrap: wrap; }
.mg-booking__steps li { counter-increment: s; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--plum, #4a1442); background: rgba(212, 165, 72, 0.12); border: 1px solid rgba(212, 165, 72, 0.35); border-radius: 999px; padding: 0.35em 1em; }
.mg-booking__steps li::before { content: counter(s) " · "; color: var(--wp--preset--color--bronze, #8a5a12); }

.mg-step { border: 0; border-top: 1px dashed rgba(212, 165, 72, 0.55); margin: 0; padding: 1.6rem 0 1.2rem; min-width: 0; }
.mg-step legend { display: flex; align-items: center; gap: 0.7rem; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600; color: var(--wp--preset--color--aubergine, #2a0827); padding: 0 0.6rem 0 0; margin-bottom: 1rem; float: left; width: 100%; }
.mg-step legend + * { clear: both; }
.mg-step__num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: linear-gradient(135deg, #f6dc94, #d4a548 50%, #b07a22); color: #16031a; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 700; flex: 0 0 auto; }

/* Calendar */
.mg-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; clear: both; }
@media (max-width: 760px) { .mg-cal-wrap { grid-template-columns: 1fr; } }
.mg-cal { border: 1px solid var(--f-line); border-radius: 18px; padding: 1rem; background: linear-gradient(180deg, #fffdf8, #fbf7ef); }
.mg-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.mg-cal__month { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; font-weight: 600; color: var(--wp--preset--color--aubergine, #2a0827); }
.mg-cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--f-line); background: #fff; color: var(--wp--preset--color--aubergine, #2a0827); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background 0.2s; }
.mg-cal__nav:hover:not(:disabled) { background: #f3d488; }
.mg-cal__nav:disabled { opacity: 0.3; cursor: not-allowed; }
.mg-cal__dow, .mg-cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mg-cal__dow span { text-align: center; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--muted, #6e5a66); padding: 0.3rem 0; }
.mg-cal__grid { display: grid; gap: 5px; min-height: 260px; transition: opacity 0.2s; }
.mg-cal__grid.is-loading { opacity: 0.45; }
.mg-cal__row button {
	width: 100%;
	aspect-ratio: 1;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #f7eedc;
	color: var(--wp--preset--color--ink, #2b1a26);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.15s, background 0.15s, border-color 0.15s;
	position: relative;
	padding: 0;
}
.mg-cal__row button.is-available:hover { background: #f3d488; transform: translateY(-1px); }
.mg-cal__row button.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #8a5a12; transform: translateX(-50%); }
.mg-cal__row button.is-selected { background: var(--wp--preset--color--aubergine, #2a0827); color: #f3d488; border-color: #d4a548; box-shadow: 0 8px 18px -8px rgba(42, 8, 39, 0.7); }
.mg-cal__row button.is-past { background: transparent; color: rgba(43, 26, 38, 0.28); cursor: not-allowed; font-weight: 400; }
.mg-cal__row button.is-full, .mg-cal__row button.is-closed { background: repeating-linear-gradient(135deg, #f1e7dc 0 6px, #ebdfd2 6px 12px); color: rgba(43, 26, 38, 0.4); text-decoration: line-through; cursor: not-allowed; }

.mg-cal-side { display: flex; flex-direction: column; gap: 1rem; }
.mg-selected { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 14px; border: 1px dashed var(--f-line); color: var(--wp--preset--color--muted, #6e5a66); font-weight: 500; }
.mg-selected svg { width: 22px; height: 22px; color: #8a5a12; flex: 0 0 auto; }
.mg-selected.is-set { border: 1px solid #d4a548; background: rgba(212, 165, 72, 0.12); color: var(--wp--preset--color--aubergine, #2a0827); font-weight: 600; }
.mg-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.8rem; color: var(--wp--preset--color--muted, #6e5a66); }
.mg-legend li { display: flex; align-items: center; gap: 0.4rem; }
.mg-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mg-legend .is-available { background: #f7eedc; border: 1px solid #e6d6b2; }
.mg-legend .is-selected { background: #2a0827; }
.mg-legend .is-full { background: repeating-linear-gradient(135deg, #f1e7dc 0 3px, #e0d2c4 3px 6px); }

/* Fields */
.mg-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 1rem; min-width: 0; }
.mg-field > span { font-size: 0.88rem; font-weight: 600; color: var(--wp--preset--color--aubergine, #2a0827); }
.mg-field em { color: #b07a22; font-style: normal; }
.mg-field input[type="text"], .mg-field input[type="tel"], .mg-field input[type="email"], .mg-field input[type="date"], .mg-field select, .mg-field textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--f-line);
	border-radius: 12px;
	background: #fffdf8;
	color: var(--wp--preset--color--ink, #2b1a26);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.mg-field textarea { resize: vertical; min-height: 3.2rem; }
.mg-field input:focus, .mg-field select:focus, .mg-field textarea:focus { outline: none; border-color: #d4a548; box-shadow: 0 0 0 4px rgba(212, 165, 72, 0.22); }
.mg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 640px) { .mg-grid-2 { grid-template-columns: 1fr; } }
.mg-help { font-size: 0.85rem; color: var(--wp--preset--color--muted, #6e5a66); margin: 0; }
.mg-error { color: #b3261e; font-size: 0.85rem; margin: 0.25rem 0 0; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e !important; }
.mg-step.has-error .mg-cal { border-color: #b3261e; }
.mg-form-error { background: #fdecea; color: #8c1d18; border-radius: 12px; padding: 0.8rem 1rem; margin: 0 0 1rem; }

/* Combo pickers */
.mg-combos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; clear: both; }
@media (max-width: 640px) { .mg-combos { grid-template-columns: 1fr; } }
.mg-combo { border: 1px solid var(--f-line); border-radius: 18px; overflow: hidden; background: #fffdf8; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
.mg-combo.is-chosen { border-color: #d4a548; box-shadow: 0 0 0 3px rgba(212, 165, 72, 0.35); }
.mg-combo img { width: 100%; height: auto; aspect-ratio: 7 / 4.2; object-fit: cover; display: block; }
.mg-combo__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.mg-combo h4 { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.45rem; color: var(--wp--preset--color--aubergine, #2a0827); }
.mg-combo ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mg-combo li { font-size: 0.78rem; background: rgba(212, 165, 72, 0.12); color: #4a1442; padding: 0.2em 0.7em; border-radius: 999px; }
.mg-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }
.mg-qty input { width: 100%; max-width: 120px; text-align: center; font: inherit; font-size: 1.5rem; font-weight: 700; padding: 0.4rem; border: 1px solid var(--f-line); border-radius: 12px; color: #2a0827; background: #fff; -moz-appearance: textfield; }
.mg-qty input::-webkit-inner-spin-button, .mg-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mg-qty__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d4a548; background: #fff; color: #2a0827; font-size: 1.5rem; cursor: pointer; flex: 0 0 auto; transition: background 0.15s; }
.mg-qty__btn:hover { background: #f3d488; }
.mg-quick { display: flex; gap: 0.4rem; }
.mg-quick button { border: 1px dashed #d4a548; background: transparent; color: #8a5a12; border-radius: 999px; padding: 0.3em 0.9em; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.mg-quick button:hover { background: rgba(212, 165, 72, 0.15); }

.mg-total { margin: 1.25rem 0; padding: 1rem 1.2rem; border-radius: 16px; background: #2a0827; color: #f7eedc; }
.mg-total__row { display: flex; justify-content: space-between; align-items: baseline; }
.mg-total__row span { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.mg-total__row strong { font-family: var(--wp--preset--font-family--display); font-size: 2.2rem; line-height: 1; color: #f3d488; }
.mg-total__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); margin: 0.7rem 0 0.5rem; overflow: hidden; }
.mg-total__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b07a22, #f3d488); transition: width 0.35s ease; }
.mg-total__msg { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.mg-total.is-ready .mg-total__msg::before { content: "✓ "; color: #7ee2a3; }
.mg-total.is-ready .mg-total__bar span { background: linear-gradient(90deg, #1fa855, #7ee2a3); }

.mg-radios, .mg-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mg-radio, .mg-check { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.92rem; }
.mg-radios .mg-radio, .mg-checks .mg-check { border: 1px solid var(--f-line); border-radius: 999px; padding: 0.45em 0.95em 0.45em 0.7em; background: #fffdf8; transition: border-color 0.15s, background 0.15s; }
.mg-radios .mg-radio:has(input:checked), .mg-checks .mg-check:has(input:checked) { border-color: #d4a548; background: rgba(212, 165, 72, 0.15); }
.mg-radio input, .mg-check input { accent-color: #8a5a12; width: 1.05rem; height: 1.05rem; margin: 0; }
.mg-consent { margin: 0.4rem 0 0; align-items: flex-start; line-height: 1.5; }
.mg-consent input { margin-top: 0.2rem; }

/* Submit + success */
.mg-submit { text-align: center; padding-top: 1.25rem; border-top: 1px dashed rgba(212, 165, 72, 0.55); }
.mg-submit .mg-help { margin-top: 0.8rem; }
.mg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
	cursor: pointer;
	padding: 1.05rem 2.4rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #f6dc94 0%, #d4a548 48%, #b07a22 100%);
	color: #16031a;
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 14px 28px -14px rgba(176, 122, 34, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transition: transform 0.2s, box-shadow 0.2s;
}
.mg-btn:hover { transform: translateY(-2px); color: #16031a; }
.mg-btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.mg-btn svg { width: 1.2em; height: 1.2em; }
.mg-btn.is-whatsapp { background: #1fa855; color: #fff; box-shadow: 0 14px 28px -14px rgba(31, 168, 85, 0.9); }
.mg-btn.is-whatsapp:hover { color: #fff; background: #168a45; }
.mg-btn.is-outline { background: transparent; color: #4a1442; border: 1.5px solid #d4a548; box-shadow: none; text-transform: none; letter-spacing: 0; }
.mg-enquiry .mg-btn { width: 100%; }

.mg-success { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0; outline: none; scroll-margin-top: 150px; }
.mg-success__seal { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #16031a; background: linear-gradient(135deg, #f6dc94, #d4a548 50%, #b07a22); box-shadow: 0 0 0 8px rgba(212, 165, 72, 0.18); }
.mg-success h3 { font-family: var(--wp--preset--font-family--display); font-size: 2rem; color: #2a0827; margin: 0 0 0.4rem; }
.mg-success__summary { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; text-align: left; max-width: 520px; margin: 1.4rem auto; padding: 1.1rem 1.3rem; border-radius: 16px; background: #fbf7ef; border: 1px solid var(--f-line); font-size: 0.92rem; }
.mg-success__summary dt { color: #6e5a66; }
.mg-success__summary dd { margin: 0; font-weight: 600; color: #2b1a26; overflow-wrap: anywhere; }
.mg-success__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.mg-notice { border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 500; }
.mg-notice.is-success { background: rgba(31, 168, 85, 0.1); color: #13602f; }
.mg-notice.is-error { background: #fdecea; color: #8c1d18; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
