.rgu-form-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border: 1px solid #6b7280;
    border-radius: .75rem;
    background: #fff;
    color: #1f2937;
    font: inherit;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.rgu-form-dialog::backdrop { background: rgb(0 0 0 / .45); }
.rgu-form-dialog h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.rgu-form-dialog p { margin: 0 0 1rem; }
.rgu-form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.rgu-form-actions button {
    padding: .65rem 1rem;
    border: 1px solid #100484;
    border-radius: .5rem;
    color: #fff;
    background: #100484;
    font: inherit;
    cursor: pointer;
}
.rgu-form-actions [data-close-dialog] { color: #100484; background: #fff; }
.rgu-form-dialog button:focus-visible { outline: 3px solid #100484; outline-offset: 3px; }
.rgu-form-actions button:disabled { opacity: .6; cursor: wait; }
.rgu-field-error { display: block; color: #b91c1c; margin-top: .35rem; font-size: .875rem; }
.rgu-form-errors { border-left: 4px solid #b91c1c; padding: 1rem; margin-bottom: 1rem; background: #fef2f2; color: #991b1b; }
.rgu-form-errors[hidden] { display: none; }
.rgu-form-errors ul { padding-left: 1.25rem; list-style: disc; }
.rgu-form-errors a { color: inherit; text-decoration: underline; }
.rgu-form-errors:focus { outline: 2px solid #991b1b; outline-offset: 2px; }
form [aria-invalid="true"] { border-color: #b91c1c !important; }
.rgu-review-values dt { font-weight: 700; margin-top: .75rem; }
.rgu-review-values dd { margin: .2rem 0 0; white-space: pre-wrap; }
#dynamic-form .form-check-input:not(:disabled) { border-color: #6b7280; }
#dynamic-form :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #100484; outline-offset: 3px; }
.star-rating-input .star { padding: .1rem; border: 0; background: none; color: #100484; font-size: 2rem; cursor: pointer; }
@media print { .rgu-form-dialog { display: none !important; } }
