/* Booking Form — Wizard + Body Map */

.mbs-booking-form-wrap {
    max-width: 820px;
}

/* Progress bar */
.mbs-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    padding: 12px 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mbs-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 48px;
}

.mbs-wizard-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.mbs-wizard-step.active .mbs-wizard-dot {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.mbs-wizard-step.done .mbs-wizard-dot {
    background: #10b981;
    color: #fff;
}

.mbs-wizard-label {
    font-size: 10px;
    color: #94a3b8;
    text-align: center;
    max-width: 64px;
    line-height: 1.2;
}

.mbs-wizard-step.active .mbs-wizard-label {
    color: #7c3aed;
    font-weight: 600;
}

.mbs-wizard-line {
    width: 16px;
    height: 2px;
    background: #e2e8f0;
    margin-bottom: 18px;
}

.mbs-wizard-step.done + .mbs-wizard-line,
.mbs-wizard-step.done ~ .mbs-wizard-line {
    background: #10b981;
}

/* Panels */
.mbs-form-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.mbs-section-header {
    background: linear-gradient(135deg, #0a2540, #1a4a7a);
    color: #fff;
    padding: 14px 20px;
}

.mbs-section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.mbs-section-desc {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.mbs-step-indicator {
    margin: 6px 0 0;
    font-size: 11px;
    opacity: 0.7;
}

.mbs-section-body {
    padding: 20px;
}

.mbs-field-radio .mbs-radio-group,
.mbs-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.mbs-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.mbs-radio input { accent-color: #7c3aed; }

.mbs-checkbox-group .mbs-checkbox {
    min-width: 160px;
}

.required { color: #ef4444; }

.mbs-field-error label { color: #ef4444; }
.mbs-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* Body map: one reference image only, with an invisible interactive overlay */
.mbs-body-map-container {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, .8fr);
    gap: 24px;
    align-items: start;
}
.mbs-body-map { text-align: center; min-width: 0; }
.mbs-body-figure {
    position: relative !important;
    display: block !important;
    width: min(100%, 300px) !important;
    aspect-ratio: 1 / 2 !important;
    height: auto !important;
    margin: 0 auto !important;
    line-height: 0 !important;
    overflow: hidden !important;
}
.mbs-body-reference {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    z-index: 1 !important;
}
.mbs-body-hitareas {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
.mbs-body-hitareas .body-part {
    fill: transparent !important;
    stroke: transparent !important;
    stroke-width: 0 !important;
    cursor: pointer !important;
    pointer-events: all !important;
    transition: fill .15s ease !important;
}
.mbs-body-hitareas .body-part:hover,
.mbs-body-hitareas .body-part:focus-visible {
    fill: rgba(240,193,75,.24) !important;
    stroke: transparent !important;
    outline: none !important;
}
.mbs-body-hitareas .body-part.selected {
    fill: rgba(240,193,75,.58) !important;
    stroke: transparent !important;
    stroke-width: 0 !important;
}
.mbs-body-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.4;
}
.mbs-body-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mbs-body-check {
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .2s;
    cursor: pointer;
    font-size: 14px;
}
.mbs-body-check:has(input:checked) { background: #fef3c7; }

/* Wizard nav */
.mbs-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 20px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.mbs-form-actions {
    text-align: center;
    padding: 0 20px 16px;
}

.mbs-btn-lg { min-width: 260px; }

@media (max-width: 600px) {
    .mbs-body-map-container {
        grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr);
        gap: 12px;
    }
    .mbs-body-figure { width: min(100%, 300px) !important; }
    .mbs-wizard-label { display: none; }
    .mbs-wizard-line { width: 10px; }
}
