/* ==========================================================================
   Forms
   ========================================================================== */

.form-control,
.form-select {
    height: 42px;
    border-radius: var(--radius-md);
    border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.invalid-feedback {
    color: var(--danger);
    font-size: var(--font-size-sm);
}

/* Scrollable checkbox lists */
.app-check-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    background: var(--surface);
}

.app-check-list .form-check {
    margin-bottom: var(--space-2);
}

.app-check-list .form-check:last-child {
    margin-bottom: 0;
}

/* Search form alignment */
.user-search-form .form-control,
.user-search-form .form-select,
.user-search-form .btn {
    height: 42px;
}

/* <button> and <a class="btn"> center their labels differently; use flex
   so Search and Reset share the exact same vertical text position. */
.user-search-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}