/* Standard widget styling — only what Bootstrap does not give us: the step
   indicator + the brand-coloured primary button (driven by --brand-primary).
   Every label shares this; branding comes from the CSS vars, never edits here. */

/* brand primary button */
.mp-btn-primary {
    background: var(--brand-primary, #002DB4);
    color: #fff;
    border: none;
}
.mp-btn-primary:hover {
    filter: brightness(0.92);
    color: #fff;
}
.mp-btn-primary:disabled {
    background: #ced4da;
    color: #fff;
}

/* step indicator */
.mp-step .mp-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 13px;
    font-weight: 700;
}
.mp-step.is-active .mp-dot {
    background: var(--brand-primary, #002DB4);
    color: #fff;
}
.mp-step.is-done .mp-dot {
    background: #198754;
    color: #fff;
}
.mp-step .small {
    color: #6c757d;
    font-size: 11px;
}
.mp-step.is-active .small {
    color: #212529;
    font-weight: 600;
}

/* success check */
.mp-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #198754;
    font-size: 32px;
    line-height: 64px;
    text-align: center;
}

/* Floating CTA — appears when the form's "Hitung Simulasi" button scrolls out of
   view, so a scrolling user never loses the action. Hidden by default; shown by
   JS via the .mp-float-cta--visible class. */
.mp-float-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-primary, #002DB4);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}
.mp-float-cta--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mp-float-cta:hover {
    filter: brightness(0.92);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.mp-float-cta:active {
    transform: translateY(0) scale(0.97);
}

/* On narrow screens, center the button and make it full-width with side padding */
@media (max-width: 480px) {
    .mp-float-cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: center;
        border-radius: 12px;
    }
}
