/* Shared form styling. See docs/development/style-guide.md "Forms". */
.form-required-label::after {
    content: " *";
    color: #dc3545;
}
.bg-form-w-80 { width: 80px; }
.bg-form-w-100 { width: 100px; }
.bg-form-w-120 { width: 120px; }
.bg-form-w-140 { width: 140px; }
.bg-form-w-0 { width: 0; }
.bg-form-w-30 { width: 30px; }
.bg-form-w-50 { width: 50px; }
.bg-form-w-60 { width: 60px; }
.bg-form-w-2_5rem { width: 2.5rem; }
.bg-form-w-4_5rem { width: 4.5rem; }
.bg-form-w-5rem { width: 5rem; }
.bg-form-w-5_5rem { width: 5.5rem; }
.bg-form-w-6rem { width: 6rem; }
.bg-form-w-6_5rem { width: 6.5rem; }
.bg-form-password-toggle {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #6c757d;
}
.bg-form-max-w-320 { max-width: 320px; }
.bg-form-max-w-600 { max-width: 600px; }
.bg-form-max-w-900 { max-width: 900px; }
.bg-form-max-w-960 { max-width: 960px; }
.bg-form-max-w-1050 { max-width: 1050px; }
.bg-form-categories-scroll {
    max-height: 300px;
    overflow-y: auto;
}
.bg-form-scroll-300 {
    max-height: 300px;
    overflow-y: auto;
}
.bg-form-phone-code {
    text-align: center;
    width: 70px;
}
.bg-form-phone-number {
    max-width: 200px;
}
.bg-form-nav-crumb {
    vertical-align: middle;
    font-size: 1em;
    font-weight: 500;
    margin-left: 0.25em;
}
.bg-form-clickable {
    cursor: pointer;
    user-select: none;
}
.bg-form-preview {
    min-height: 160px;
    background: #f8f9fa;
}
.bg-form-sep-h-24 { height: 24px; }
.bg-form-text-xs {
    font-size: 0.7rem;
    line-height: 1.2;
}
.bg-form-progress-sm { height: 8px; }
.bg-form-diagram-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    margin-right: 4px;
}
.bg-form-diagram-preview {
    width: 100%;
    height: 400px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}
/* Standard form action bar: include at top and bottom of data-entry forms.
   Alignment-neutral by default (headers place the bar in a flex row).
   Use .form-actions--end when the bar sits alone and should hug the right. */
.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.form-actions--end {
    justify-content: flex-end;
}
.form-actions .btn { min-width: 6rem; }

/* Shared compact MCQ editor used by full forms and assessment list rows. */
.mcq-choice-editor {
    max-width: 40rem;
}
.mcq-editor-feedback {
    margin-bottom: 0.5rem;
}
.mcq-choice-radio {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.mcq-choice-radio--selected::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: currentColor;
}
