/* Monarch booking form. Uses theme variables when present, with fallbacks. */
.mb { --mb-navy: var(--navy, #102A43); --mb-teal: var(--teal, #087F8C); --mb-line: var(--line, #D5DEE5); --mb-muted: var(--muted, #52616F); --mb-gray: var(--gray, #F3F6F8); }
.mb-form { background: #fff; border: 1px solid var(--mb-line); border-radius: 20px; padding: 32px; box-shadow: 0 1px 2px rgba(16,42,67,.06), 0 12px 32px rgba(16,42,67,.08); }
.mb-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mb-form legend { font-size: 1.35rem; font-weight: 750; color: var(--mb-navy); margin: 0 0 18px; padding: 0; outline: none; }
.mb-form.is-stepped .mb-step { display: none; }
.mb-form.is-stepped .mb-step.is-active { display: block; }
.mb-form:not(.is-stepped) .mb-step { margin-bottom: 32px; }
.mb-form:not(.is-stepped) .mb-progress, .mb-form:not(.is-stepped) .mb-step[data-step="5"] { display: none; }
.mb-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: none; }
.mb-progress li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--mb-muted); padding-top: 10px; border-top: 4px solid var(--mb-gray); }
.mb-progress li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mb-gray); font-size: .8rem; }
.mb-progress li.is-active, .mb-progress li.is-done { color: var(--mb-navy); border-top-color: var(--mb-teal); }
.mb-progress li.is-active span, .mb-progress li.is-done span { background: var(--mb-teal); color: #fff; }
.mb-field { margin-bottom: 18px; }
.mb-field label, .mb-label { display: block; font-weight: 650; color: var(--mb-navy); margin-bottom: 6px; font-size: .97rem; }
.mb-field input[type="text"], .mb-field input[type="tel"], .mb-field input[type="email"], .mb-field input[type="date"], .mb-field select, .mb-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--mb-line); border-radius: 10px; font: inherit; font-size: 1rem; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mb-field textarea { min-height: 120px; resize: vertical; }
.mb-field input:focus, .mb-field select:focus, .mb-field textarea:focus { outline: none; border-color: var(--mb-teal); box-shadow: 0 0 0 4px rgba(8,127,140,.15); }
.mb-field [aria-invalid="true"] { border-color: #B42318; }
.mb-error { color: #B42318; font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.mb-hint { font-size: .86rem; color: var(--mb-muted); margin: 6px 0 0; }
.req { color: #B42318; }
.mb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mb-row--3 { grid-template-columns: 2fr 1fr 1fr; }
.mb-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mb-choice { position: relative; display: flex !important; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--mb-line); border-radius: 12px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.mb-choice input { margin-top: 4px; accent-color: var(--mb-teal); width: 18px; height: 18px; }
.mb-choice strong { display: block; color: var(--mb-navy); }
.mb-choice small { color: var(--mb-muted); font-size: .86rem; }
.mb-choice:has(input:checked) { border-color: var(--mb-teal); background: #F1FAF9; }
.mb-drop { border: 1.5px dashed var(--mb-line); border-radius: 12px; padding: 16px; background: var(--mb-gray); }
.mb-files { list-style: none; padding: 0; margin: 8px 0 0; font-size: .9rem; }
.mb-files li.is-bad { color: #B42318; }
.mb-consent label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.mb-consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--mb-teal); flex: none; }
.mb-review { display: grid; grid-template-columns: 150px 1fr; margin: 0 0 18px; border-top: 1px solid var(--mb-line); }
.mb-review dt, .mb-review dd { padding: 10px 0; border-bottom: 1px solid var(--mb-line); margin: 0; }
.mb-review dt { font-weight: 650; color: var(--mb-navy); }
.mb-review dd { display: flex; justify-content: space-between; gap: 12px; white-space: pre-wrap; word-break: break-word; }
.mb-edit { background: none; border: 0; color: var(--mb-teal); font-weight: 600; cursor: pointer; padding: 0 4px; flex: none; text-decoration: underline; }
.mb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.mb-nav .mb-next, .mb-nav .mb-submit { margin-left: auto; }
.mb-nav [hidden] { display: none !important; }
.mb-form:not(.is-stepped) .mb-prev, .mb-form:not(.is-stepped) .mb-next { display: none; }
.mb-submit[disabled] { opacity: .7; cursor: progress; }
.mb-small { font-size: .88rem; color: var(--mb-muted); }
.mb-foot { margin: 18px 0 0; }
.mb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mb-alert { border: 1px solid #F3B7B1; background: #FEF3F2; color: #7A271A; border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.mb-alert ul { margin: 6px 0 0; }
.mb-success { border: 1px solid #A6DCCB; background: #ECF8F4; border-radius: 16px; padding: 28px; }
.mb-success__title { font-size: 1.35rem; font-weight: 750; color: var(--mb-navy); margin: 0 0 8px; }
.mb .btn { min-height: 50px; }
@media (max-width: 640px) {
	.mb-form { padding: 22px 16px; border-radius: 16px; }
	.mb-row, .mb-row--3, .mb-choices { grid-template-columns: 1fr; }
	.mb-progress li { font-size: 0; gap: 0; justify-content: center; }
	.mb-progress li span { font-size: .8rem; }
	.mb-review { grid-template-columns: 1fr; }
	.mb-review dt { border-bottom: 0; padding-bottom: 0; }
	.mb-nav .btn { flex: 1; }
}

/* v2: chips, scheduling, calendar */
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-chip { position: relative; display: inline-flex !important; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.mb-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mb-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--mb-line); border-radius: 999px; background: #fff; font-size: .95rem; color: var(--mb-navy); }
.mb-chip input:checked + span { border-color: var(--mb-teal); background: #E3F3F2; color: #065F68; font-weight: 650; }
.mb-chip input:focus-visible + span { outline: 3px solid #F2B544; outline-offset: 2px; }
.mb-note { background: #F3F6F8; border-radius: 10px; padding: 10px 14px; font-size: .94rem; }
.mb-row--sched { grid-template-columns: minmax(0, 340px) 1fr; align-items: start; }
.mb-alt { margin-top: 8px; border-top: 1px solid var(--mb-line); padding-top: 12px; }
.mb-alt summary { cursor: pointer; font-weight: 650; color: var(--mb-teal); padding: 6px 0 12px; }
.mb-date--enhanced { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.mb-cal { border: 1.5px solid var(--mb-line); border-radius: 14px; padding: 12px; background: #fff; max-width: 340px; }
.mb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--mb-navy); }
.mb-cal__nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--mb-line); background: #fff; font-size: 1.3rem; line-height: 1; color: var(--mb-navy); cursor: pointer; }
.mb-cal__nav[disabled] { opacity: .3; cursor: default; }
.mb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mb-cal__dow { font-size: .75rem; font-weight: 700; color: var(--mb-muted); padding: 4px 0; }
.mb-cal__day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 10px; background: #F3F6F8; color: var(--mb-navy); font: inherit; font-size: .92rem; cursor: pointer; }
.mb-cal__day:hover:not([disabled]) { background: #E3F3F2; }
.mb-cal__day[disabled] { background: transparent; color: #B4C0CA; cursor: default; }
.mb-cal__day.is-selected { background: var(--mb-teal); color: #fff; font-weight: 700; }
.mb-cal__day:focus-visible { outline: 3px solid #F2B544; outline-offset: 1px; }
.mb-cal__picked { font-size: .9rem; color: #065F68; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.mb-review dd span { flex: 1; }
@media (max-width: 640px) {
	.mb-row--sched { grid-template-columns: 1fr; }
	.mb-cal { max-width: none; }
}
