/* MinuteSante Booking — self-contained UI styles.
   Values mirror the original design 1:1 (card 720px / 40px pad / 20px radius,
   24px-800 headings, 2px borders, 18px-700 buttons, #162F62 navy, #EEF4FF
   summary, pill radius 50px). */

.mb-wrap {
	font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	/* !important so the widget keeps its width on any host theme. Card = 720px. */
	max-width: 752px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 40px;
	margin-bottom: 40px;
	padding: 0 16px;
	width: 100%;
	color: #333;
	box-sizing: border-box;
}
.mb-wrap *, .mb-wrap *::before, .mb-wrap *::after { box-sizing: border-box; }

/* Progress steps */
.mb-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}
.mb-step {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	color: #9aa7c2;
	background: #eef2fb;
	padding: 10px 24px;
	border-radius: 50px;
	white-space: nowrap;
}
.mb-step.active { color: #fff; background: #4D7DE1; }
.mb-step.done { color: #1f9d57; background: #e4f6ec; }
.mb-step-num, .mb-step-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	border-radius: 50%;
	font-size: 12px;
	background: rgba(255,255,255,.35);
}
.mb-step.active .mb-step-num { background: rgba(255,255,255,.3); color:#fff; }
.mb-step.done .mb-step-check { background: #1f9d57; color: #fff; }
.mb-step:not(.active):not(.done) .mb-step-num { background: #d6deef; color: #fff; }
.mb-step-line { flex: 1; height: 2px; background: #d9e1f2; }
.mb-step-line.done { background: #1f9d57; }

/* Card */
.mb-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 4px 24px rgba(77,125,225,.08);
	padding: 40px;
}
.mb-title { font-size: 24px; font-weight: 800; color: #162F62; margin: 0 0 6px; }
.mb-sub { font-size: 15px; color: #888; margin: 0 0 32px; }

/* Step 1 intro / practitioner card (photo + details row, optional full-width row below) */
.mb-intro {
	padding: 22px 26px;
	margin-bottom: 20px;
}
.mb-intro-top {
	display: flex;
	align-items: center;
	gap: 20px;
}
.mb-intro-photo { flex: none; }
.mb-intro-photo img {
	width: 96px; height: 96px;
	border-radius: 14px;
	object-fit: cover;
	display: block;
}
.mb-intro-body { min-width: 0; }
.mb-intro-name { font-size: 18px; font-weight: 800; color: #162F62; }
.mb-intro-title { font-size: 14px; font-weight: 600; color: #4D7DE1; margin-top: 2px; }
.mb-intro-desc { font-size: 13px; color: #666; line-height: 1.55; margin-top: 8px; }
.mb-intro-desc2 {
	font-size: 13px; color: #666; line-height: 1.6;
	margin-top: 16px; padding-top: 16px;
	border-top: 1px solid #EEF4FF;
}

.mb-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #162F62;
	margin: 0 0 10px;
}

/* Select */
.mb-select-wrap { position: relative; margin-bottom: 24px; }
.mb-select {
	width: 100%;
	appearance: none; -webkit-appearance: none;
	border: 2px solid #E8EEF9;
	border-radius: 10px;
	padding: 14px 48px 14px 16px;
	font-size: 15px;
	line-height: 1.5;
	height: auto !important; /* override themes that force a fixed select height */
	min-height: 0;
	color: #333;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
}
.mb-select-wrap::after {
	content: "";
	position: absolute; right: 16px; top: 50%;
	width: 13px; height: 9px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%234D7DE1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
	pointer-events: none;
}

/* Conditional follow-up question */
.mb-followup { margin-bottom: 24px; }
option.mb-opt-hidden, .mb-select option[hidden] { display: none; }

/* Date trigger + calendar */
.mb-date { position: relative; margin-bottom: 24px; }
.mb-date-trigger {
	display: flex; align-items: center; justify-content: space-between;
	border: 2px solid #E8EEF9;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
	cursor: pointer;
	background: #fff;
}
.mb-date-placeholder { color: #aaa; }
.mb-chevron { transition: transform .2s; flex: none; }

.mb-cal-popup {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	z-index: 30;
	background: #fff;
	border: 2px solid #4D7DE1;
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 16px;
	box-shadow: 0 12px 30px rgba(40,67,123,.12);
}
.mb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mb-cal-month { font-weight: 700; color: #162F62; font-size: 15px; }
.mb-cal-nav {
	border: none; background: #eef2fb; color: #4D7DE1;
	width: 30px; height: 30px; border-radius: 8px;
	font-size: 18px; line-height: 1; cursor: pointer;
}
.mb-cal-nav:hover { background: #e0e8fa; }
.mb-cal-weekdays, .mb-cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.mb-cal-weekdays span {
	text-align: center; font-size: 11px; color: #9aa7c2;
	padding: 6px 0; font-weight: 600;
}
.mb-cal-days { gap: 2px; }
.cal-day {
	text-align: center; padding: 9px 0; font-size: 13px;
	border-radius: 8px; cursor: pointer; color: #333;
}
.cal-day:hover:not(.disabled):not(.empty) { background: #eef2fb; }
.cal-day.empty { cursor: default; }
.cal-day.disabled { color: #cfd6e4; cursor: default; }
.cal-day.today { border: 2px solid #4D7DE1; color: #4D7DE1; font-weight: 700; }
.cal-day.selected { background: #4D7DE1; color: #fff; font-weight: 700; }

/* Time slots */
.mb-slots {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
	margin-bottom: 8px;
}
.time-slot {
	text-align: center;
	border: 2px solid #E8EEF9;
	border-radius: 10px;
	padding: 12px 0;
	font-size: 14px;
	cursor: pointer;
	background: #fff;
	transition: all .15s;
	user-select: none;
}
.time-slot:hover:not(.unavailable) { border-color: #4D7DE1; }
.time-slot.selected { background: #4D7DE1; color: #fff; border-color: #4D7DE1; }
.time-slot.unavailable { color: #cfd6e4; background: #f6f8fc; cursor: not-allowed; border-color: #eef2fb; }
.mb-time-error { display: none; color: #e0524d; font-size: 13px; margin: 6px 0 0; }

/* Continue / submit button */
.mb-btn {
	width: 100%;
	margin-top: 28px;
	background: #4D7DE1;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 18px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.mb-btn:hover { background: #3f6cd0; }
.mb-btn:disabled { opacity: .7; cursor: default; }

/* Step 2 */
.mb-back { display: inline-block; color: #4D7DE1; text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.mb-back:hover { text-decoration: underline; }
.mb-summary {
	display: flex; align-items: center; justify-content: space-between;
	background: #EEF4FF; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
}
.mb-summary-left { display: flex; align-items: center; gap: 12px; }
.mb-summary-icon { font-size: 22px; }
.mb-summary-title { font-weight: 700; color: #162F62; font-size: 15px; }
.mb-summary-detail { font-size: 13px; color: #888; margin-top: 2px; }
.mb-summary-price { font-size: 22px; font-weight: 800; color: #4D7DE1; }

.mb-note {
	background: #fff8e6; border: 1px solid #ffe7a8; border-left: 4px solid #f3c64d;
	border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; font-size: 13px; color: #7a6a3a;
}
.mb-note strong { display: block; margin-bottom: 3px; color: #6a5a2a; }

.mb-section {
	font-size: 16px; font-weight: 700; color: #162F62;
	margin: 24px 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #EEF4FF; /* sleek divider, matches original */
}
.mb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.mb-input {
	width: 100%;
	border: 2px solid #E8EEF9; border-radius: 10px;
	padding: 14px 16px; font-size: 15px; line-height: 1.5; font-family: inherit; color: #333;
	height: auto !important;
	min-height: 0;
}
.mb-input:focus { outline: none; border-color: #4D7DE1; }

.mb-card-element {
	border: 2px solid #E8EEF9; border-radius: 10px;
	padding: 14px 16px; background: #fff;
}
.mb-card-errors { color: #e0524d; font-size: 13px; margin-top: 8px; min-height: 16px; }
.mb-secure { font-size: 12px; color: #888; margin: 16px 0 0; }

.mb-spinner {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
	animation: mb-spin .7s linear infinite;
}
@keyframes mb-spin { to { transform: rotate(360deg); } }

/* Confirmation / transition screen */
.mb-confirm { text-align: center; }
.mb-confirm-icon {
	width: 64px; height: 64px; border-radius: 50%;
	background: #e4f6ec; color: #1f9d57;
	font-size: 34px; line-height: 64px;
	margin: 4px auto 18px;
}
.mb-confirm-title { font-size: 22px; font-weight: 800; color: #162F62; margin: 0 0 16px; }
.mb-confirm-appt {
	display: inline-block; background: #EEF4FF; color: #162F62; font-weight: 700;
	border-radius: 10px; padding: 12px 18px; margin-bottom: 18px; font-size: 15px;
}
.mb-confirm-msg { font-size: 14px; color: #555; line-height: 1.6; margin: 0 auto 20px; max-width: 460px; }
.mb-confirm-count { font-size: 13px; color: #888; margin: 0 0 20px; }
.mb-confirm .mb-btn { max-width: 340px; margin: 0 auto; }

@media (max-width: 560px) {
	.mb-wrap { margin-top: 20px; margin-bottom: 20px; }
	.mb-card { padding: 22px; border-radius: 16px; }
	.mb-title { font-size: 21px; }
	.mb-sub { margin-bottom: 24px; }
	.mb-slots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.mb-grid2 { grid-template-columns: 1fr; }

	/* Compact stepper: show only the active step's label; the other collapses to
	   just its number/check circle, so the row fits a phone width. */
	.mb-steps { gap: 6px; }
	.mb-step { font-size: 12px; padding: 7px 12px; gap: 6px; white-space: normal; }
	.mb-step:not(.active) .mb-step-label { display: none; }
	.mb-step:not(.active) { padding: 7px; }
	.mb-step-num, .mb-step-check { width: 18px; height: 18px; font-size: 11px; }
	.mb-step-line { max-width: 28px; }

	/* Stack the Step 2 summary so the date and price never get squished. */
	.mb-summary { flex-direction: column; align-items: flex-start; gap: 8px; }

	/* Intro card: smaller photo + tighter padding on phones. */
	.mb-intro { padding: 16px; gap: 14px; }
	.mb-intro-photo img { width: 72px; height: 72px; border-radius: 12px; }
	.mb-intro-name { font-size: 16px; }
}
