/* ===== Multi-step form ===== */
/*.step-content { display: none; }*/
.step-content.active { display: block; animation: stepFade .3s ease; }
@keyframes stepFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Step tracker ===== */
.indicator { border: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }

.indicator_box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    box-shadow: var(--bs-box-shadow-sm);
    transition: background-color .3s, color .3s, box-shadow .3s;
}
.step-label-meta { opacity: .6; transition: opacity .3s; }
.step-heading { color: var(--bs-secondary-color); }

.indicator.completed:not(.active) .indicator_box { background: rgba(var(--bs-success-rgb), .15); color: var(--bs-success); }
.indicator.completed:not(.active) .step-label-meta { opacity: .8; }
.indicator.completed:not(.active) .step-heading { color: var(--bs-success); }

.indicator.active { border-color: var(--bs-primary); box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), .15); }
.indicator.active .indicator_box { background: var(--bs-primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), .3); }
.indicator.active .step-label-meta { opacity: 1; }
.indicator.active .step-heading { color: var(--bs-primary); font-weight: 600; }

/* ===== Form look: Bootstrap reads these variables for inputs, selects, buttons and alerts inside the form ===== */
#enrollmentForm { --bs-border-color: #CBD5E1; --bs-border-radius: 8px; }
.form-label { font-size: .875rem; font-weight: 500; }

/* ===== Toast animation ===== */
@keyframes slideInRight  { from { transform: translateX(400px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideOutRight { from { transform: none; opacity: 1; } to { transform: translateX(400px); opacity: 0; } }
.alert.fade:not(.show) { animation: slideOutRight .3s ease-out; }

/* ===== HTMX ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block !important; }
