/* ============================================================
   MPBA Services — Brand Theming
   Primary color controlled via --mpba-svc-primary (set by PHP from Settings)
   Default: #CEBCA8 (Consult Aashra warm gold)
   ============================================================ */

:root {
	--mpba-svc-primary   : #CEBCA8;
	--mpba-svc-primary-dk: #b8a492;
	--mpba-svc-txt       : #14162a;  /* dark text on primary bg */
	--mpba-svc-radius    : 14px;
}

.mpba-svc-wrap *, .mpba-svc-overlay * {
	box-sizing: border-box;
    font-family: "Urbanist", Sans-serif;
}

/* ---- User Bar ---- */
.mpba-svc-user-bar {
	display: flex; align-items: center; justify-content: flex-end; gap: 16px;
	padding: 8px 0 20px; flex-wrap: wrap;
}
.mpba-svc-hi { font-size: 14px; color: #555; }
.mpba-svc-link { font-size: 13.5px; color: var(--mpba-svc-primary); font-weight: 600; text-decoration: none; }
.mpba-svc-link:hover { opacity: .8; text-decoration: underline; }
.mpba-svc-login-link {
	font-size: 13.5px; font-weight: 700; color: var(--mpba-svc-txt);
	border: 2px solid var(--mpba-svc-primary); padding: 8px 20px; border-radius: 50px;
	text-decoration: none; transition: all .2s; background: transparent;
}
.mpba-svc-login-link:hover { background: var(--mpba-svc-primary); }

/* ---- Cards Grid ---- */
.mpba-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.mpba-svc-empty { text-align: center; color: #aaa; padding: 60px 20px; font-size: 15px; }

/* ---- Liquid Glass Card ---- */
.mpba-glass-card {
	position: relative; border-radius: 24px; overflow: hidden;
	cursor: pointer; background: #1a1a2e;
	box-shadow: 0 8px 32px rgba(0,0,0,.15);
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
	aspect-ratio: 3/4;
	-webkit-tap-highlight-color: transparent;
}

.mpba-card-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mpba-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.mpba-glass-card:hover .mpba-card-media img { transform: scale(1.06); }
.mpba-card-no-img { font-size: 72px; opacity: .3; color: #fff; }

.mpba-card-glass-overlay {
	position: absolute; bottom: 0; left: 0; right: 0;
	padding: 48px 22px 24px;
	background: linear-gradient(to top, rgba(5,5,15,.92) 0%, rgba(5,5,15,.65) 50%, transparent 100%);
}
.mpba-card-title { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 7px; line-height: 1.2; }
.mpba-card-desc  { font-size: 13.5px; color: rgba(255,255,255,.75); margin: 0 0 10px; line-height: 1.5;display:none; }
.mpba-intro-price { font-size: 9px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
.mpba-card-price { font-size: 17px; font-weight: 700; color: var(--mpba-svc-primary); margin-bottom: 12px; }

.mpba-glass-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--mpba-svc-primary);
	border: none; color: var(--mpba-svc-txt);
	padding: 10px 22px; border-radius: 50px;
	font-size: 13.5px; font-weight: 700; cursor: pointer;
	transition: all .2s; letter-spacing: .2px;
}
.mpba-glass-btn:hover { 
    opacity: .88; 
    transform: scale(1.04); 
    background-color: #B08D57;
    color: #fff;
}

/* ============================================================
   SERVICE MODAL OVERLAY (always display:flex for centering,
   hidden via opacity — avoids flex centering issues)
   ============================================================ */
.mpba-svc-overlay {
	position: fixed !important; inset: 0 !important; z-index: 999999 !important;
	background: rgba(8,8,16,.75) !important;
	backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 16px !important;
	opacity: 0 !important; pointer-events: none !important;
	transition: opacity .2s ease !important;
}
.mpba-svc-overlay.active { opacity: 1 !important; pointer-events: auto !important; }

.mpba-svc-modal {
	background: #fff; border-radius: 0;
	width: 100%; max-width: 70%; max-height: 88vh;
	overflow-y: auto; position: relative;
	box-shadow: 0 32px 80px rgba(0,0,0,.3);
    padding: 10px 20px;
	animation: mpba-slidein .25s cubic-bezier(.34,1.2,.64,1);
}
@keyframes mpba-fadein  { from { opacity:0 } to { opacity:1 } }
@keyframes mpba-slidein { from { transform:translateY(28px);opacity:0 } to { transform:translateY(0);opacity:1 } }
.mpba-svc-modal::-webkit-scrollbar { width: 5px; }
.mpba-svc-modal::-webkit-scrollbar-thumb { background: #e0d5cb; border-radius: 4px; }

.mpba-svc-close {
	position: sticky; top: 12px; right: 0; float: right;
	width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.08);
	border: none; cursor: pointer; font-size: 14px; color: #555; font-weight: 700;
	display: flex; align-items: center; justify-content: center; z-index: 10;
}
.mpba-svc-close:hover { background: rgba(0,0,0,.15); }
.mpba-svc-modal-inner { padding: 28px 32px 32px; clear: both; }

/* Progress Bar */
.mpba-progress-bar { display: flex; align-items: center; margin-bottom: 24px; }
.mpba-prog-step {
	width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700;
	background: #f0ebe5; color: #aaa; border: 2px solid #e0d5cb;
	transition: all .3s;
}
.mpba-prog-step.done   { background: var(--mpba-svc-primary); border-color: var(--mpba-svc-primary); color: var(--mpba-svc-txt); }
.mpba-prog-step.active { background: var(--mpba-svc-primary); border-color: var(--mpba-svc-primary); color: var(--mpba-svc-txt); box-shadow: 0 0 0 4px rgba(206,188,168,.3); }
.mpba-prog-line { flex: 1; height: 2px; background: #e0d5cb; transition: background .3s; }
.mpba-prog-line.done { background: var(--mpba-svc-primary); }

.mpba-step-heading { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 5px; }
.mpba-step-sub     { font-size: 13px; color: #888; margin: 0 0 22px; line-height: 1.5; }

/* File Upload */
.mpba-upload-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 6px; }
.mpba-upload-slot {
	aspect-ratio: 1; border-radius: var(--mpba-svc-radius); border: 2px dashed #d8ccbe;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	cursor: pointer; position: relative; overflow: hidden; background: #fdf9f6; transition: all .2s;
}
.mpba-upload-slot:hover { border-color: var(--mpba-svc-primary); background: #faf5f0; }
.mpba-upload-slot.has-file { border-style: solid; border-color: var(--mpba-svc-primary); }
.mpba-upload-icon  { font-size: 22px; margin-bottom: 5px; color: #c8b8a4; }
.mpba-upload-label { font-size: 11px; color: #b0a090; font-weight: 600; text-align: center; padding: 0 4px; }
.mpba-upload-preview { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.mpba-upload-del {
	position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
	border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: none;
	font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mpba-upload-note { font-size: 11.5px; color: #bbb; margin: 4px 0 18px; }

/* Form fields */
.mpba-sf-group { margin-bottom: 13px; }
.mpba-sf-group label { display: block; font-size: 11.5px; font-weight: 700; color: #555; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.mpba-sf-input, .mpba-sf-textarea, .mpba-sf-select {
	width: 100%; padding: 11px 14px; border: 1.5px solid #e8ddd4; border-radius: var(--mpba-svc-radius);
	font-size: 14px; color: #111; background: #fdfaf7; outline: none; transition: border-color .15s;
}
.mpba-sf-input:focus, .mpba-sf-textarea:focus { border-color: var(--mpba-svc-primary); background: #fff; }
.mpba-sf-textarea { resize: vertical; min-height: 90px; }

/* 2-col grid */
.mpba-sf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mpba-sf-section-label {
	font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: var(--mpba-svc-primary);
	text-transform: uppercase; text-align: center; margin: 18px 0 12px;
}

/* Buttons */
.mpba-step-nav { display: flex; gap: 10px; margin-top: 22px; }
.mpba-btn-back {
	flex: 1; padding: 13px; border: 1.5px solid #e8ddd4; border-radius: var(--mpba-svc-radius);
	background: #fff; color: #666; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.mpba-btn-back:hover { border-color: #c0b0a0; color: #333; }
.mpba-sf-submit {
	flex: 2; padding: 13px; border-radius: var(--mpba-svc-radius);
	background: var(--mpba-svc-primary); color: var(--mpba-svc-txt);
	border: none; font-size: 14px; font-weight: 700; cursor: pointer;
	transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mpba-sf-submit:hover { background: var(--mpba-svc-primary-dk); transform: translateY(-1px); }
.mpba-sf-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.mpba-sf-err { font-size: 12.5px; color: #dc2626; margin-top: 6px; display: block; min-height: 18px; }

/* Payment */
.mpba-payment-amount { text-align: center; font-size: 30px; font-weight: 800; color: #111; margin: 0 0 5px; letter-spacing: -1px; }
.mpba-payment-label  { text-align: center; color: #888; font-size: 13px; margin-bottom: 22px; }
.mpba-pay-btn {
	width: 100%; padding: 15px; border-radius: var(--mpba-svc-radius);
	font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s;
	border: none; margin-bottom: 10px;
}
.mpba-pay-rzp { background: var(--mpba-svc-primary); color: var(--mpba-svc-txt); }
.mpba-pay-rzp:hover { background: var(--mpba-svc-primary-dk); }
.mpba-payment-no-gw { background: #fdf9f6; border: 1.5px solid #e8ddd4; border-radius: var(--mpba-svc-radius); padding: 16px; text-align: center; font-size: 13.5px; color: #888; }

/* Success */
.mpba-success-wrap { text-align: center; padding: 20px 0 8px; }
.mpba-success-tick  { font-size: 52px; display: block; margin-bottom: 14px; animation: mpba-pop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes mpba-pop { from { transform:scale(0) } to { transform:scale(1) } }
.mpba-success-title { font-size: 22px; font-weight: 800; color: #111; margin: 0 0 10px; }
.mpba-success-msg   { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 20px; }

/* ============================================================
   AUTH PAGE ([mpba_auth])
   ============================================================ */
.mpba-auth-page-wrap { display: flex; justify-content: center; padding: 32px 16px; }
.mpba-auth-page-card {
	background: #fff; border-radius: 20px; border: 1px solid #ece4da;
	padding: 36px; width: 100%; max-width: 420px;
	box-shadow: 0 4px 24px rgba(20,22,42,.07);
}
.mpba-auth-page-tabs { display: flex; gap: 4px; background: #f5ede5; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.mpba-auth-tab { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 600; color: #999; cursor: pointer; transition: all .15s; }
.mpba-auth-tab.active { background: #fff; color: var(--mpba-svc-txt); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.mpba-auth-panel { display: none; }
.mpba-auth-panel.active { display: block; }
.mpba-auth-page-heading { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 20px; }
.mpba-auth-err { font-size: 12.5px; color: #dc2626; margin-top: 8px; min-height: 18px; display: block; }

/* My bookings */
.mpba-mb-header  { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.mpba-mb-heading { font-size: 22px; font-weight: 800; color: #111; }
.mpba-mb-empty   { text-align: center; color: #bbb; padding: 60px 20px; }
.mpba-mb-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.mpba-mb-card    { background: #fff; border: 1px solid #ece4da; border-radius: 16px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.mpba-mb-card-top{ display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.mpba-mb-service { font-weight: 700; font-size: 15px; color: #14162a; }
.mpba-mb-badge   { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.mpba-mb-badge-pending   { background: #fef3c7; color: #b45309; }
.mpba-mb-badge-confirmed { background: #d1fae5; color: #065f46; }
.mpba-mb-badge-completed { background: #fdf5eb; color: #92683e; border: 1px solid var(--mpba-svc-primary); }
.mpba-mb-date   { font-size: 12px; color: #aaa; margin-bottom: 8px; }
.mpba-mb-detail { font-size: 13px; color: #555; margin-bottom: 4px; }
.mpba-mb-files  { display: flex; gap: 6px; margin: 8px 0; }
.mpba-mb-files a img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.mpba-mb-payment{ font-size: 12.5px; color: #888; margin-top: 8px; }
.mpba-paid   { color: #16a34a; font-weight: 700; }
.mpba-unpaid { color: #d97706; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.mpba-cards-grid   { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
	.mpba-svc-modal    { border-radius: 18px; }
	.mpba-svc-modal-inner { padding: 20px; }
	.mpba-sf-2col      { grid-template-columns: 1fr; }
	.mpba-mb-grid      { grid-template-columns: 1fr; }
	.mpba-auth-page-card{ padding: 24px 20px; }
}
@media (max-width: 480px) {
	.mpba-cards-grid   { grid-template-columns: 1fr; }
	.mpba-upload-slots { grid-template-columns: repeat(3,1fr); gap: 8px; }
	.mpba-svc-overlay  { padding: 10px !important; }
	.mpba-svc-modal    { border-radius: 16px; max-height: 95vh; }
	.mpba-step-nav     { flex-direction: column-reverse; }
	.mpba-btn-back, .mpba-sf-submit { flex: unset; width: 100%; }
}

/* Auth error banner */
.mpba-auth-err-banner {
	background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626;
	border-radius: 10px; padding: 12px 16px; font-size: 13.5px;
	margin-bottom: 18px; font-weight: 600;
}

/* ============================================================
   MOBILE FIX — Comprehensive responsive overrides
   ============================================================ */

/* Force 16px on all inputs on mobile — prevents iOS auto-zoom */
@media (max-width: 768px) {
	.mpba-sf-input, .mpba-sf-textarea, .mpba-sf-select,
	.mpba-auth-page-card input, .mpba-auth-page-card textarea {
		font-size: 16px !important;
		-webkit-appearance: none;
		appearance: none;
	}

	/* Auth card: full width on mobile */
	.mpba-auth-page-wrap { padding: 16px; }
	.mpba-auth-page-card { padding: 24px 18px; max-width: 100%; }

	/* Cards: single column with proper aspect ratio */
	.mpba-cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.mpba-glass-card { aspect-ratio: 2/3; }
	.mpba-card-title { font-size: 16px; }
	.mpba-card-desc  { font-size: 12px; }

	/* User bar wrap on mobile */
	.mpba-svc-user-bar { justify-content: center; gap: 10px; padding-bottom: 14px; }

	/* My bookings grid */
	.mpba-mb-header { flex-direction: column; align-items: flex-start; gap: 6px; }
	.mpba-mb-grid   { grid-template-columns: 1fr; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
	.mpba-cards-grid { grid-template-columns: 1fr; gap: 16px; }
	.mpba-glass-card { aspect-ratio: 3/4; }

	/* Bottom-sheet modal on mobile — slides up from bottom */
	.mpba-svc-overlay {
		padding: 0 !important;
		align-items: flex-end !important;   /* modal anchors to bottom */
	}
	.mpba-svc-modal {
		border-radius: 22px 22px 0 0 !important;
		max-height: 94vh !important;
		min-height: 60vh;
		width: 100% !important;
		max-width: 100% !important;
		/* Slide-up animation */
		animation: mpba-slideup .28s cubic-bezier(.34,1.1,.64,1) !important;
	}
	@keyframes mpba-slideup {
		from { transform: translateY(100%); }
		to   { transform: translateY(0); }
	}

	.mpba-svc-modal-inner { padding: 16px 18px 28px !important; }
	.mpba-svc-close {
		position: fixed !important; /* stays in place while scrolling */
		top: auto !important;
		/* Position close btn at top of sheet */
		margin-top: 0; margin-right: 0;
	}

	/* Pull handle at top of sheet */
	.mpba-svc-modal::before {
		content: '';
		display: block;
		width: 40px; height: 4px;
		background: #ddd; border-radius: 2px;
		margin: 12px auto 4px;
	}

	/* Progress dots smaller */
	.mpba-prog-step { width: 28px; height: 28px; font-size: 12px; }

	/* Upload slots — 3 smaller squares */
	.mpba-upload-slots { grid-template-columns: repeat(3,1fr); gap: 8px; }
	.mpba-upload-icon  { font-size: 18px; }
	.mpba-upload-label { font-size: 10px; }

	/* Forms: full width, no 2-col */
	.mpba-sf-2col { grid-template-columns: 1fr !important; gap: 0 !important; }
	.mpba-sf-group { margin-bottom: 10px; }

	/* Buttons */
	.mpba-step-nav { flex-direction: column-reverse; gap: 8px; margin-top: 16px; }
	.mpba-btn-back, .mpba-sf-submit { flex: unset !important; width: 100% !important; padding: 14px !important; }

	/* Payment button */
	.mpba-pay-btn { padding: 16px; font-size: 16px; }
	.mpba-payment-amount { font-size: 26px; }

	/* Success screen */
	.mpba-success-tick  { font-size: 44px; }
	.mpba-success-title { font-size: 20px; }

	/* Auth page full screen feel */
	.mpba-auth-page-wrap { padding: 12px; min-height: 80vh; align-items: flex-start; }
	.mpba-auth-page-card { border-radius: 16px; padding: 22px 16px; }
	.mpba-auth-page-card form button[type="submit"] { width: 100%; }

	/* My Bookings cards */
	.mpba-mb-files a img { width: 50px; height: 50px; }
}

/* ---- Very small phones (360px) ---- */
@media (max-width: 380px) {
	.mpba-cards-grid { gap: 12px; }
	.mpba-svc-modal-inner { padding: 12px 14px 24px !important; }
	.mpba-prog-step { width: 24px; height: 24px; font-size: 10px; }
}

/* ---- Fix close button overlap with pull handle ---- */
@media (max-width: 480px) {
	.mpba-svc-close {
		position: absolute !important;
		top: 10px !important; right: 14px !important;
		width: 30px; height: 30px; font-size: 13px;
	}
}

/* ---- Prevent body scroll when modal open on mobile ---- */
body.mpba-modal-open {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
}

/* ============================================================
   MARQUEE TICKER (above service cards)
   ============================================================ */
.mpba-marquee-outer {
    display: none;
	overflow: hidden;
	background: var(--mpba-svc-primary, #CEBCA8);
	padding: 14px 0; margin-bottom: 32px;
	border-radius: 8px;
}
.mpba-marquee-track {
	display: flex; align-items: center; gap: 0;
	animation: mpba-ticker 40s linear infinite;
	white-space: nowrap; width: max-content;
}
.mpba-marquee-outer:hover .mpba-marquee-track { animation-play-state: paused; }
@keyframes mpba-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33%); } }

.mpba-marquee-item {
	display: inline-block;
	font-size: 15px; font-weight: 600; font-style: italic;
	color: var(--mpba-svc-txt, #14162a);
	padding: 0 32px; letter-spacing: .3px;
	font-family: Georgia, 'Times New Roman', serif;
}
@media (max-width: 480px) {
	.mpba-marquee-item { font-size: 13px; padding: 0 22px; }
	.mpba-marquee-outer { margin-bottom: 20px; border-radius: 0; }
}

/* ============================================================
   SUB-SERVICES SELECTION STEP
   ============================================================ */
.mpba-sub-svc-heading { font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.mpba-sub-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mpba-sub-svc-btn {
	padding: 14px 14px; border: 2px solid #e8ddd4; border-radius: 12px;
	background: #fdfaf7; cursor: pointer; font-size: 13.5px; font-weight: 600;
	text-align: left; color: #14162a; transition: all .15s; line-height: 1.4;
}
.mpba-sub-svc-btn:hover { border-color: var(--mpba-svc-primary); background: #faf5f0; transform: translateY(-1px); }
.mpba-sub-svc-btn.selected { border-color: var(--mpba-svc-primary); background: #faf5f0; box-shadow: 0 0 0 3px rgba(206,188,168,.25); }

.mpba-selected-sub-banner {
	background: #faf5f0; border: 1px solid var(--mpba-svc-primary);
	border-radius: 10px; padding: 10px 14px; font-size: 13px;
	color: #555; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.mpba-selected-sub-banner strong { color: var(--mpba-svc-txt); }
.mpba-change-sub { font-size: 12px; color: var(--mpba-svc-primary); cursor: pointer; margin-left: auto; font-weight: 600; text-decoration: underline; }

@media (max-width: 480px) {
	.mpba-sub-svc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTIONS LAYOUT (new grouped layout)
   ============================================================ */
.mpba-svc-sections { display: flex; flex-direction: column; gap: 48px; }

/* Section heading */
.mpba-svc-section-head {
	display: flex; align-items: baseline; gap: 14px;
	margin-bottom: 18px; padding-bottom: 12px;
	border-bottom: 1.5px solid var(--mpba-svc-primary, #CEBCA8);
}
.mpba-svc-section-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 20px; font-weight: 700; font-style: italic;
	color: #14162a; letter-spacing: .5px; white-space: nowrap;
}
.mpba-svc-section-desc {
	font-size: 13px; color: #aaa; font-style: italic;
}

/* Sub-service cards grid: horizontal row, wraps if needed */
.mpba-sub-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

/* Sub-service card title (smaller text for longer names) */
.mpba-card-title-sub {
	font-size: 16px !important;
	line-height: 1.35 !important;
}

/* Section spacing bottom */
.mpba-svc-section:not(:last-child) {
	padding-bottom: 12px;
}

/* Responsive: 2 cols on tablet, 1 on mobile */
@media (max-width: 768px) {
	.mpba-sub-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.mpba-svc-sections { gap: 32px; }
	.mpba-svc-section-title { font-size: 17px; }
}
@media (max-width: 480px) {
	.mpba-sub-cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mpba-svc-section-head { flex-direction: column; gap: 4px; }
	.mpba-glass-card { aspect-ratio: 2/3; }
}

/* ============================================================
   EDITORIAL BENTO GRID — Exact image 1 layout
   4 equal columns. Zigzag: [img][txt][img][txt] / [txt][img][txt][img]
   Row height = natural image aspect-ratio (landscape 4:3)
   7 services: rows 1-3 fill 6 services, row 4 has S7 + 3 filler cells
   ============================================================ */

.mpba-bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid #ddd6cc;
	border-radius: 0;   /* image 1 has no rounded corners on the outer grid */
	overflow: hidden;
	background-color:#F8F5F0;
}

/* ---------- Common cell ---------- */
.mpba-bento-cell {
	border-right: 1px solid #ddd6cc;
	border-bottom: 1px solid #ddd6cc;
	overflow: hidden;
}
.mpba-bento-cell:nth-child(4n)        { border-right: none; }
.mpba-bento-cell:nth-last-child(-n+4) { border-bottom: none; }

/* ---------- Image cell ----------
   aspect-ratio keeps a landscape proportion regardless of container width.
   The image fills 100% width × 100% height via object-fit:cover.  */
.mpba-bento-cell-img {
	background: #e8e1d8;
	aspect-ratio: 2 / 1;  
	overflow: hidden;
}
.mpba-bento-cell-img img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform .5s ease;
}
.mpba-bento-cell-img:hover img { transform: scale(1.04); }

/* ---------- Text cell ----------
   No fixed height — CSS Grid stretches it to match the image row height. */
.mpba-bento-cell-txt {
	padding: 15px;
	background: #F8F5F0;
	display: flex; flex-direction: column;
	justify-content: center; 
	gap: 0px;
}

/* ---------- Typography (matches image 1 exactly) ---------- */
.mpba-bento-num {
	font-size: 20px; font-weight: 400;
	letter-spacing: 1px;
	color: var(--mpba-svc-primary, #CEBCA8);
	margin-bottom: 2px;
}
.mpba-bento-title {
	font-size: 18px; font-weight: 500; line-height: 1.2;
	color: #1a1918; margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
}
.mpba-bento-desc {
	font-size: 13.5px; color: #888; line-height: 1.75; margin: 0;font-style:italic;
}
.mpba-bento-explore {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12.5px; font-weight: 400; letter-spacing: .2px;
	color: #444; background: transparent !important;
	border: none !important; outline: none !important; box-shadow: none !important;
	-webkit-appearance: none; cursor: pointer; padding: 0; margin-top: 6px;
	transition: gap .2s ease, color .15s; text-decoration: none;
}
.mpba-bento-explore:hover,
.mpba-bento-explore:focus,
.mpba-bento-explore:active {
	background: transparent !important; outline: none !important;
	box-shadow: none !important; gap: 14px;
	color: var(--mpba-svc-primary, #CEBCA8);
}

/* ---------- Filler / empty cells (S7 row padding) ---------- */
.mpba-bento-cell-empty {
	background: #faf8f5;
	aspect-ratio: 4 / 3;
}
.mpba-bento-no-img {
	width: 100%; height: 100%; min-height: 200px;
	display: flex; align-items: center; justify-content: center;
	font-size: 40px; opacity: .1; background: #e8e1d8;
}

/* S7 — full-width banner spanning all 4 grid columns */
.mpba-bento-cell-banner {
	grid-column: 1 / -1;
	text-align: center;
	align-items: center;
	justify-content: center;
	padding: 72px 60px;
	border-right: none !important;
	border-bottom: none;
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: transparent; 
	min-height: 280px;
}
/* Dark overlay so text is readable over image */
.mpba-bento-cell-banner::before {
	content: '';
	position: absolute; inset: 0;
	/*background: linear-gradient(135deg, rgba(10,8,6,.65) 0%, rgba(10,8,6,.45) 100%);*/
	z-index: 0;
}
/* All banner content above overlay */
.mpba-bento-cell-banner > * { position: relative; z-index: 1; }
.mpba-bento-cell-banner .mpba-bento-num   { color: var(--mpba-svc-primary, #CEBCA8); }
.mpba-bento-cell-banner .mpba-bento-title { font-size: 36px; color: #fff; }
.mpba-bento-cell-banner .mpba-bento-desc  { max-width: 520px; margin: 0 auto; color: rgba(255,255,255,.8); }
.mpba-bento-cell-banner .mpba-bento-explore {
	margin: 0 auto; color: #fff;
	/*border-bottom: 1px solid rgba(255,255,255,.5) !important;*/
	padding-bottom: 2px;
}
.mpba-bento-cell-banner .mpba-bento-explore:hover { color: var(--mpba-svc-primary, #CEBCA8); border-bottom-color: var(--mpba-svc-primary, #CEBCA8) !important; }


/* ============================================================
   SUB-SERVICES POPUP OVERLAY
/* ============================================================
   SUB-SERVICES POPUP OVERLAY
   ============================================================ */
/* Sub-overlay: display:none prevents any page-load flash */
.mpba-sub-overlay {
	display: none;
	position: fixed; inset: 0; z-index: 999998;
	background: rgba(8,8,16,.82);
	backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
	align-items: center; justify-content: center;
	padding: 20px;
	transition: opacity .22s ease;
}
.mpba-sub-overlay.active { display: flex; opacity: 1; pointer-events: auto; }
/* HOVER: show white modal background only — cards hidden */
.mpba-sub-overlay.peek {
	opacity: 0.7;
	pointer-events: none;
}
.mpba-sub-overlay.peek .mpba-sub-modal {
	transform: scale(0.95) translateY(10px);
	transition: transform .2s ease;
}
.mpba-sub-overlay.peek .mpba-sub-cards-popup,
.mpba-sub-overlay.peek .mpba-sub-modal-hint {
	opacity: 0;  /* hide cards + hint text in peek */
	pointer-events: none;
}
/* CLICK: full popup with cards */
.mpba-sub-overlay.active {
	opacity: 1;
	pointer-events: auto;
}
.mpba-sub-overlay.active .mpba-sub-modal {
	transform: scale(1) translateY(0);
	transition: transform .28s cubic-bezier(.34,1.2,.64,1);
}
.mpba-sub-overlay.active .mpba-sub-cards-popup,
.mpba-sub-overlay.active .mpba-sub-modal-hint {
	opacity: 1;
	transition: opacity .2s ease .1s;
}

.mpba-sub-modal {
    background-image: url(https://mumbaipixels.org/virtual/wp-content/uploads/2026/07/back.png);
	/*background: #fdfaf7; */
	border-radius: 0px;
    background-size: cover;
	max-width: 70%; width: 100%; max-height: 88vh;
	overflow-y: auto; padding:20px 35px;
	position: relative;
	animation: mpba-slidein .25s cubic-bezier(.34,1.2,.64,1);
}
.mpba-sub-modal::-webkit-scrollbar { width: 5px; }
.mpba-sub-modal::-webkit-scrollbar-thumb { background: #e0d5cb; border-radius: 4px; }

.mpba-sub-modal-header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 6px;
}
.mpba-sub-modal-title {
	font-size: 26px; font-weight: 800; color: #B08D57;
	font-family: Georgia, serif; margin: 0;
}
.mpba-sub-modal-hint {
	font-size: 13px; color: #000; margin: 0 0 24px;
}
.mpba-sub-cards-popup {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
	gap: 18px;
}

/* Override booking modal z-index to appear above sub-overlay */
.mpba-svc-overlay { z-index: 1000000 !important; }

/* ============================================================
   RESPONSIVE — Bento Grid
   ============================================================ */
/* ---- Responsive: image 1 bento grid ---- */
@media (max-width: 900px) {
	/* 2 cols: each service = [img][txt] or [txt][img] */
	.mpba-bento-grid { grid-template-columns: 1fr 1fr; }
	.mpba-bento-cell:nth-child(2n)        { border-right: none; }
	.mpba-bento-cell:nth-child(4n)        { border-right: 1px solid #ddd6cc; }
	.mpba-bento-cell:nth-last-child(-n+4) { border-bottom: 1px solid #ddd6cc; }
	.mpba-bento-cell:nth-last-child(-n+2) { border-bottom: none; }
	.mpba-bento-cell-txt  { padding: 22px 20px 28px;z-index:5 !important; }
	.mpba-bento-title     { font-size: 20px; }
	.mpba-sub-cards-popup { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 580px) {
	/* 1 col: image on top, text below for each service */
	.mpba-bento-grid  { grid-template-columns: 1fr; }
	.mpba-bento-cell  { border-right: none !important; }
	.mpba-bento-cell-txt { padding: 10px;gap: 5px; justify-content: flex-start; }
	.mpba-bento-title { font-size: 15px; }
	.mpba-bento-cell-empty { display: none; }
	.mpba-sub-overlay { padding: 10px; }
	.mpba-sub-modal   { padding: 18px 16px; border-radius: 14px; }
	.mpba-sub-cards-popup { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mpba-bento-cell-img { aspect-ratio: 4 / 3 !important;height:100%; }
}

/* ============================================================
   RESPONSIVE — BENTO GRID
   ============================================================ */
@media (max-width: 900px) {
	.mpba-bento-grid { grid-template-columns: 1fr 1fr; }
	.mpba-bento-cell:nth-child(2n)         { border-right: none; }
	.mpba-bento-cell:nth-child(4n)         { border-right: 1px solid #ddd6cc; }
	.mpba-bento-cell:nth-last-child(-n+4)  { border-bottom: 1px solid #ddd6cc; }
	.mpba-bento-cell:nth-last-child(-n+2)  { border-bottom: none; }
	.mpba-bento-cell-txt   { padding: 22px 20px 28px; }
	.mpba-bento-title      { font-size: 20px; }
	.mpba-bento-cell-banner{ padding: 52px 32px; }
	.mpba-bento-cell-banner .mpba-bento-title { font-size: 28px; }
	.mpba-sub-cards-popup  { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---- MOBILE: explicit grid placement via CSS custom properties --mr / --mc ----
   PHP sets --mr (row) and --mc (column) on each cell.
   Alternating pattern per service: even-index = img left, odd-index = img right. */
@media (max-width: 580px) {
	.mpba-bento-grid {
		grid-template-columns: 1fr 1fr;
		/* Remove desktop auto-flow so explicit placement takes over */
		grid-auto-rows: auto;
	}
	/* Apply explicit mobile row + column from CSS vars */
	.mpba-bento-cell {
		grid-row:    var(--mr, auto);
		grid-column: var(--mc, auto);
		border-right:  1px solid #ddd6cc;
		/*border-bottom: 1px solid #ddd6cc;*/
		min-height: 0;
	}
	/* Remove border from right cells and bottom-most row */
	.mpba-bento-cell[style*="--mc:2"] { border-right: none; }
	/* Text cells: top-aligned on mobile */
	.mpba-bento-cell-txt { padding: 8px 18px; justify-content: flex-start; }
	.mpba-bento-title    { font-size: 18px; }
	.mpba-bento-desc     { font-size: 12px; line-height: 15px; }
	.mpba-bento-cell-img img { min-height: 100%; }
	/* Banner: spans both columns, placed after all services */
	.mpba-bento-cell-banner {
		grid-row:    auto;
		grid-column: 1 / -1;
		border-right: none;
		padding: 48px 20px;
		min-height: 200px;
	}
	.mpba-bento-cell-banner .mpba-bento-title { font-size: 22px; }
	/* Sub-popup on mobile */
	.mpba-sub-overlay { padding: 10px; align-items: flex-end; }
	.mpba-sub-modal   { border-radius: 20px 20px 0 0; padding: 20px 18px 28px; max-height: 90vh; width: 100%; max-width: 100%; }
	.mpba-sub-cards-popup { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mpba-sub-modal-title { font-size: 20px; }
}

/* ============================================================
   DESKTOP / MOBILE IMAGE SWITCHING (per service)
   Admin can set a separate "Mobile Box Image".
   When none is set, only the desktop <img> is output.
   ============================================================ */
.mpba-bento-img-mobile { display: none; }

@media (max-width: 580px) {
	/* A mobile crop was rendered → hide the desktop one, show the mobile one */
	.mpba-bento-img-desktop.has-mob { display: none; }
	.mpba-bento-img-mobile          { display: block; }

	/* Full-width banner: use the mobile background when provided */
	.mpba-bento-cell-banner { background-image: var(--mob-bg, none) !important; }
}

/* ============================================================
   reCAPTCHA v3 — badge shown INSIDE the form
   v3 injects one floating badge at the page corner; JS moves that
   element into .mpba-rc-slot so it sits above the submit button.
   ============================================================ */
.mpba-rc-slot {
	margin: 18px 0 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	min-height: 60px;
}

/* The relocated badge: un-fix it and show it fully expanded */
.mpba-rc-slot .grecaptcha-badge {
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 256px !important;
	height: 60px !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	top: auto !important;
	transform: none !important;
	box-shadow: none !important;
	border-radius: 4px;
	overflow: hidden;
	transition: none !important;
	margin: 0;
}

/* Text fallback — hidden once the real badge is mounted */
.mpba-rc-note {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: #a99f93;
	letter-spacing: .2px;
}
.mpba-rc-note a { color: #a99f93; text-decoration: underline; text-underline-offset: 2px; }
.mpba-rc-note a:hover { color: var(--mpba-svc-primary, #B08D57); }
.mpba-rc-slot.has-badge .mpba-rc-note { display: none; }

/* While the badge lives in the form it must not also float in the corner */
.grecaptcha-badge { z-index: 1000001 !important; }

@media (max-width: 580px) {
	.mpba-rc-slot { justify-content: center; margin-top: 14px; min-height: 0; }
	.mpba-rc-slot .grecaptcha-badge { transform: scale(.85) !important; transform-origin: center; }
	.mpba-rc-note { font-size: 10.5px; text-align: center; }
}

/* ============================================================
   MOBILE IMAGE OVERFLOW FIX
   Earlier the image cell had both aspect-ratio AND height:100%,
   while the <img> had min-height:100%. Those fight each other:
   the cell's height became indefinite, min-height resolved against
   it, and the image pushed past the cell instead of being clipped.

   Fix: the cell keeps a definite square ratio and clips, and the
   image is taken OUT of flow (absolute, inset:0). An out-of-flow
   image cannot grow its parent, so overflow is impossible — and
   it always fills the row height exactly, matching the text cell.
   ============================================================ */
@media (max-width: 580px) {
	.mpba-svc-wrap    { overflow-x: hidden; }
	.mpba-bento-grid  { max-width: 100%;background-color:#F8F5F0; }

	.mpba-bento-cell-img {
		position: relative !important;
		aspect-ratio: 4 / 3 !important;   /* your original mobile ratio — unchanged */
		height: auto !important;          /* was 100% — caused the conflict */
		min-height: 0 !important;
		overflow: hidden !important;             /* grow with the row if text is taller */
	}
	.mpba-bento-cell-img img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;         /* was 100% — pushed past the cell */
		max-width: none !important;
		object-fit: cover !important;
		object-position: center center !important;
		display: block !important;
	}
	/* No zoom-on-tap: it would reveal the clipped edges */
	.mpba-bento-cell-img:hover img { transform: none !important; }
}


/* ---- Full screen loader shown while a booking is being confirmed ---- */
.mpba-fs-loader {
	position: fixed; inset: 0; z-index: 2147483647;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.mpba-fs-spinner {
	width: 54px; height: 54px; border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: var(--mpba-svc-primary, #B08D57);
	animation: mpba-fs-spin .8s linear infinite;
}
@keyframes mpba-fs-spin { to { transform: rotate(360deg); } }

/* ---- Phone field: country flag + dial code ---- */
.mpba-phone-wrap { position: relative; display: flex; align-items: stretch; gap: 6px; z-index: 5; }
.mpba-phone-btn .mpba-phone-flag:empty { display: none; }
.mpba-phone-wrap .mpba-phone-input { flex: 1 1 auto; min-width: 0; }
.mpba-phone-btn {
	display: flex !important; align-items: center; gap: 5px;
	flex: 0 0 auto; padding: 0 10px !important; cursor: pointer;
	font: inherit; font-size: 14px !important; line-height: 1 !important;
	background: #fff !important; color: #222 !important;
	border: 1px solid rgba(0, 0, 0, .15) !important; border-radius: 8px !important;
	box-shadow: none !important; text-shadow: none !important;
	text-transform: none !important; letter-spacing: normal !important;
	min-height: 0 !important; width: auto !important; transform: none !important;
}
.mpba-phone-btn:hover, .mpba-phone-btn:focus, .mpba-phone-btn:active {
	background: #fff !important; color: #222 !important;
	border-color: rgba(0, 0, 0, .15) !important;
	box-shadow: none !important; transform: none !important; outline: none !important;
}
.mpba-phone-btn .mpba-phone-flag { font-size: 17px; }
.mpba-phone-btn .mpba-phone-caret { font-size: 10px; opacity: .6; }
.mpba-phone-dd {
	position: absolute; z-index: 99999; top: calc(100% + 4px); left: 0;
	width: min(320px, 100%); max-height: 260px; overflow: hidden;
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.mpba-phone-dd[hidden] { display: none; }
.mpba-phone-search {
	border: 0; border-bottom: 1px solid rgba(0, 0, 0, .1);
	padding: 10px 12px; font: inherit; font-size: 14px; outline: none;
}
.mpba-phone-list { list-style: none !important; margin: 0 !important; padding: 4px 0 !important; overflow-y: auto; background: #fff; }
.mpba-phone-list li {
	display: flex !important; align-items: center; gap: 8px;
	padding: 8px 12px !important; margin: 0 !important; cursor: pointer;
	font-size: 14px !important; color: #222 !important; background: #fff;
	list-style: none !important; text-transform: none !important; line-height: 1.4 !important;
}
.mpba-phone-list li::before, .mpba-phone-list li::marker { content: none !important; }
.mpba-phone-list li:hover { background: rgba(0, 0, 0, .05) !important; }
.mpba-phone-list .mpba-phone-flag { flex: 0 0 auto; }
.mpba-phone-list .mpba-phone-name { flex: 1 1 auto; color: #222 !important; }
.mpba-phone-list .mpba-phone-dial { opacity: .6; font-size: 13px !important; color: #222 !important; }
.mpba-phone-list .mpba-phone-empty { cursor: default; opacity: .6; }
.mpba-phone-search { color: #222 !important; background: #fff !important; }
.mpba-phone-empty:hover { background: none; }
@media (max-width: 580px) {
	.mpba-phone-btn { padding: 0 8px; font-size: 13px; }
	.mpba-phone-dd { width: 100%; }
}

/* ---- [mpba_inquiry] inline form ---- */
.mpba-inline-inquiry {
	background: #F8F0E3;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
	padding: 36px 32px;
	max-width: 860px;
	margin: 0 auto;
}
.mpba-iiq-heading {
	font-size: 20px; font-style: italic; font-weight: 400;
	color: #333; margin: 0 0 24px;
}
.mpba-inline-inquiry, .mpba-inline-inquiry .mpba-sf-2col, .mpba-inline-inquiry .mpba-sf-group { overflow: visible; }
.mpba-inline-inquiry .mpba-iiq-success { text-align: center; padding: 30px 10px; }
.mpba-inline-inquiry .mpba-success-icon  { font-size: 48px; line-height: 1; }
.mpba-inline-inquiry .mpba-success-title { margin: 12px 0 8px; font-size: 24px; }
.mpba-inline-inquiry .mpba-success-msg   { font-size: 15px; line-height: 1.7; }
.mpba-inline-inquiry .mpba-success-note  { font-size: 13px; opacity: .6; margin-top: 14px; }
@media (max-width: 780px) {
	.mpba-inline-inquiry .mpba-sf-2col { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 580px) {
	.mpba-inline-inquiry { padding: 24px 16px; border-radius: 12px; }
	.mpba-iiq-heading { font-size: 17px; }
	.mpba-inline-inquiry .mpba-success-title { font-size: 20px; }
}
